pizm.
Örümcek Hoşt!
- Katılım
- 25 Haziran 2020
- Mesajlar
- 342
- Elmaslar
- 219
- Puan
- 3.950
Discord:
pizm.#2222
JavaScript:
options:
P: &2[&aOylama&2]
command /oyla <integer> <text>:
permission: skript.op
usage: &b/oyla &3<&bSure&3> <&bKonu&3>
trigger:
set {yes} to 0
set {no} to 0
loop all players:
set {oyla.%loop-player%} to false
broadcast "{@P} &c%player% &8adli oyuncu oylama baslatti"
broadcast "&6[&eSoru&6]: &6%arg-2%"
broadcast "{@P} &7Kabul etmek icin,&a/evet&7,reddetmek icin &c/hayır &7yazınız."
broadcast "&3[&bZaman&3] &7Oylamanin bitmesine kalan sure &2%arg-1%&7 saniye"
set {OylamaBitis} to true
loop arg-1 times:
wait 1 second
broadcast "{@P} &6Oylama tamamlandi"
broadcast "{@P} &aEvet&7 sayısı &6%{yes}%"
broadcast "{@P} &cHayır&7 sayısı &6%{no}%"
set {OylamaBitis} to false
command /evet:
trigger:
if {OylamaBitis} is true:
if {oyla.%player%} is false:
add 1 to {yes}
message "{@P} &3Oyunuzu basariyla kullandiniz"
set {oyla.%player%} to true
else:
message "{@P} &cZaten oyunuzu kullanmissiniz."
else:
message "{@P} &cSuanda yururlukte olan bir oylama yok"
command /hayır:
trigger:
if {OylamaBitis} is true:
if {oyla.%player%} is false:
add 1 to {no}
message "{@P} &3Oyunuzu basariyla kullandiniz"
set {oyla.%player%} to true
else:
message "{@P} &cZaten oyunuzu kullanmissiniz."
else:
message "{@P} &cSuanda yururlukte olan bir oylama yok"
command /sohbet <text>:
permission: sohbet.kilit
trigger:
if arg 1 is "kapat":
set {kilitli} to true
broadcast "&3Skyblock &8» &eSohbet &6%player% &etarafından kapatıldı."
if arg 1 is "aç":
set {kilitli} to false
broadcast "&3Skyblock &8» &eSohbet &6%player% &etarafından açıldı."
on chat:
{kilitli} is true:
if player doesn't have permission "sohbetkilit.konusma":
cancel event
send "&3Skyblock &8» &cSohbet kapalıyken konuşamazsın." to player
variables:
{komutkullandi::%player%} = false
on first join:
set join message to ""
on join:
player has played before
set join message to ""
on quit:
set quit message to ""
JavaScript:
options:
remainingTime: &3Rulet &8▶ &7Rulet &a%{_i}% saniye&7 sonra çekilecek katılmak için &a<ttp:&dTıkla ve rulet macerasına atıl!><sgt:/rulet yatır (miktar)>&atıkla&7.<reset>
rolling: &3Rulet &8▶ &7Rulet çekiliyor, izlemek için §a<ttp:&dTıkla ve rulet çekilirken izle!><cmd:/rulet>&atıkla&7.
already: &3Rulet &8▶ &7Paranı zaten %{_x}%&7 tarafa yatırmışsın!
notEnoughMoney: &3Rulet &8▶ &7Gerekli paraya sahip değilsin! Gereken miktar: &a%{_x}%
winned: &3Rulet &8▶ &7Tebrikler! Ruletten, &a%{_i}%&a TL &7kazandın!
losted: &3Rulet &8▶ &7Üzgünüm, ruletten &a%{_i}%&a TL &7kaybettin!
header: &8&m-----------------------------------------------------
line1: &7
line2: &7 Rulete para yatırmak için,
line3: &a &a-/rulet yatır <miktar>
line4: &7
line5: &7 Rulet menüsüne bakmak için,
line6: &a &a-/rulet
line7: &7
line8: &8&m-----------------------------------------------------
selected: &3Rulet &8▶ &7Dikkat, %{_x}%&7 &a%{_i}%&a TL &7yatırdın, bol şans!
ruletGuiName: Rulet izleme menüsü
ruletChooseGuiName: Tarafını seç!
rollSound: note.pling
selectedSound: note.pling
slowPercent: 70 # Rulet, %70 döndüğünde slowSpinTick devreye girer.
slowSpinTick: 15
normalSpinTick: 10
on load:
create a gui with id "rulet" with chest with 3 rows named "{@ruletGuiName}":
loop 27 times:
make gui slot (loop-value - 1) with gray stained glass pane named " "
make gui slot 4, 22 with green stained glass pane named " "
resetGui("rulet")
create a gui with id "ruletChoose" with chest with 3 rows named "{@ruletChooseGuiName}":
loop 27 times:
make gui slot (loop-value - 1) with gray stained glass pane named " "
make gui slot 12 with black wool named "&8Siyah" with lore "&7||&7Yatırdığınız paranın &a2 &7katını verir,||&a49.5&7 oranında kazanma şansı vardır.||&7" :
set {rulet::black_wool::%player%} to {rulet::balances::%player%}
set {_x} to "&8siyah"
set {_i} to {rulet::balances::%player%}
send "{@selected}" to player
remove {_i} from player's balance
close player's inventory
make gui slot 13 with light green wool named "&aYeşil" with lore "&7||&7Yatırdığınız paranın &a4 &7katını verir,||&a01&7 oranında kazanma şansı vardır.||&7" :
set {rulet::light green wool::%player%} to {rulet::balances::%player%}
set {_x} to "&ayeşil"
set {_i} to {rulet::balances::%player%}
send "{@selected}" to player
remove {_i} from player's balance
close player's inventory
make gui slot 14 with red wool named "&cKırmızı" with lore "&7||&7Yatırdığınız paranın &a2 &7katını verir,||&a49.5&7 oranında kazanma şansı vardır.||&7" :
set {rulet::red_wool::%player%} to {rulet::balances::%player%}
set {_x} to "&ckırmızı"
set {_i} to {rulet::balances::%player%}
send "{@selected}" to player
remove {_i} from player's balance
close player's inventory
run when close gui:
delete {rulet::balances::%player%}
if {rulet::active} is false:
set {rulet::active} to false
resetGui("rulet")
start()
on unload:
set {rulet::active} to false
delete {rulet::red_wool::*}
delete {rulet::black_wool::*}
delete {rulet::light green wool::*}
function rulet():
if {rulet::active} is true:
stop
set {rulet::active} to true
set {_x} to random integer between 25 and 35
loop {_x} times:
loop 9 times:
set {_i} to (loop-value-2) + 8
set {_item} to slot {_i} of gui "rulet"
set {_%{_i}%} to {_item}
edit gui "rulet":
make gui slot 17 to {_9}
loop 8 times:
make gui slot (loop-value-2) + 8 to {_%(loop-value-2) + 9%}
set {_x::*} to (gui "rulet")'s viewers
loop {_x::*}:
if loop-value >= ({_x} * {@slowPercent}) / 100:
wait {@slowSpinTick} tick
else:
wait {@normalSpinTick} tick
set {_item} to (slot 13 of gui "rulet")
if {_item} is light green wool:
loop {rulet::light green wool::*}:
set {_i} to loop-value * 4
add {_i} to (loop-index parsed as offlineplayer)'s balance
send "{@winned}" to loop-index parsed as player
loop {rulet::black_wool::*}:
set {_i} to loop-value
send "{@losted}" to loop-index parsed as player
loop {rulet::red_wool::*}:
set {_i} to loop-value
send "{@losted}" to loop-index parsed as player
else if {_item} is black wool:
loop {rulet::black_wool::*}:
set {_i} to loop-value * 2
add {_i} to (loop-index parsed as offlineplayer)'s balance
send "{@winned}" to loop-index parsed as player
loop {rulet::red_wool::*}:
set {_i} to loop-value
send "{@losted}" to loop-index parsed as player
loop {rulet::light green wool::*}:
set {_i} to loop-value
send "{@losted}" to loop-index parsed as player
else if {_item} is red wool:
loop {rulet::red_wool::*}:
set {_i} to loop-value * 2
add {_i} to (loop-index parsed as offlineplayer)'s balance
send "{@winned}" to loop-index parsed as player
loop {rulet::black_wool::*}:
set {_i} to loop-value
send "{@losted}" to loop-index parsed as player
loop {rulet::light green wool::*}:
set {_i} to loop-value
send "{@losted}" to loop-index parsed as player
delete {rulet::red_wool::*}
delete {rulet::black_wool::*}
delete {rulet::light green wool::*}
set {rulet::active} to false
start()
function start():
if {rulet::active} is true:
stop
wait 60 seconds
set {_i} to 120
send "{@remainingTime}" to players
wait 60 seconds
set {_i} to 60
send "{@remainingTime}" to players
wait 40 seconds
set {_i} to 20
send "{@remainingTime}" to players
wait 5 seconds
set {_i} to 15
send "{@remainingTime}" to players
wait 5 seconds
set {_i} to 10
send "{@remainingTime}" to players
wait 5 seconds
set {_i} to 5
send "{@remainingTime}" to players
wait 5 seconds
send "{@rolling}" to players
rulet()
function resetGui(name : string):
edit gui {_name}:
make gui slot 9 to light green wool named "&aYeşil"
make gui slot 10 to black wool named "&7Siyah"
make gui slot 11 to red wool named "&cKırmızı"
make gui slot 12 to black wool named "&7Siyah"
make gui slot 13 to red wool named "&cKırmızı"
make gui slot 14 to black wool named "&7Siyah"
make gui slot 15 to red wool named "&cKırmızı"
make gui slot 16 to black wool named "&7Siyah"
make gui slot 17 to red wool named "&cKırmızı"
command /rulet [<text>] [<integer>]:
trigger:
if arg-1 isn't set:
open gui "rulet" to player
stop
else if arg-1 is "gui" or "menu" or "menü":
open gui "rulet" to player
stop
else if arg-1 is "yatır":
if {rulet::black_wool::%player%} is set:
set {_x} to "&8siyah"
send "{@already}" to player
stop
if {rulet::red_wool::%player%} is set:
set {_x} to "&ckırmızı"
send "{@already}" to player
stop
if {rulet::light green wool::%player%} is set:
set {_x} to "&ayeşil"
send "{@already}" to player
stop
if arg-2 isn't set:
send "&3Rulet &8▶ &7Yatıracak bir &amiktar&7 girmelisin!"
stop
if arg-2 <= 0:
send "&3Rulet &8▶ &7Bu miktar çok düşük!"
stop
if arg-2 >= 5000000:
send "&3Rulet &8▶ &7Bu miktar çok fazla! (Max 5m)"
stop
if player's balance >= arg-2:
open gui "ruletChoose" to player
set {rulet::balances::%player%} to arg-2
stop
set {_x} to ((arg-2) - player's money)
send "{@notEnoughMoney}" to player
else:
send "{@header}"
send "{@line1}"
send "{@line2}"
send "{@line3}"
send "{@line4}"
send "{@line5}"
send "{@line6}"
send "{@line7}"
send "{@line8}"
Bu şekilde denermisin.