command /çarkıchest:
aliases: carkichest
trigger:
if player's balance >= 30000:
remove 30000 from player's balance
clear {_slotlar::*}
add 0, 1, 2, 3, 4, 5, 6, 7, 8 to {_slotlar::*}
open virtual chest with size 1 named "&6ÇarkıChest" to player
make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8 of player with Black_Stained_Glass_Pane named ""
set {oyun.%player%} to true
loop 3 times:
wait 0.1 seconds
make gui slot 0 of player with purple_stained_glass named ""
wait 0.1 seconds
make gui slot 1 of player with purple_stained_glass named ""
make gui slot 0 of player with black_stained_glass named ""
wait 0.1 seconds
make gui slot 2 of player with purple_stained_glass named ""
make gui slot 1 of player with black_stained_glass named ""
wait 0.1 seconds
make gui slot 3 of player with purple_stained_glass named ""
make gui slot 2 of player with black_stained_glass named ""
wait 0.1 seconds
make gui slot 4 of player with purple_stained_glass named ""
make gui slot 3 of player with black_stained_glass named ""
wait 0.1 seconds
make gui slot 5 of player with purple_stained_glass named ""
make gui slot 4 of player with black_stained_glass named ""
wait 0.1 seconds
make gui slot 6 of player with purple_stained_glass named ""
make gui slot 5 of player with black_stained_glass named ""
wait 0.1 seconds
make gui slot 7 of player with purple_stained_glass named ""
make gui slot 6 of player with black_stained_glass named ""
wait 0.1 seconds
make gui slot 8 of player with purple_stained_glass named ""
make gui slot 7 of player with black_stained_glass named ""
wait 0.1 seconds
make gui slot 8 of player with black_stained_glass named ""
wait 1 seconds
chance of 100%:
set {_n} to random element out of {_slotlar::*}
make gui slot {_n} of player with purple_stained_glass named ""
chance of 50%:
remove {_n} from {_slotlar::*}
set {_n1} to random element out of {_slotlar::*}
make gui slot {_n1} of player with purple_stained_glass named ""
chance of 25%:
remove {_n1} from {_slotlar::*}
set {_n2} to random element out of {_slotlar::*}
make gui slot {_n2} of player with purple_stained_glass named ""
wait 2 seconds
if {_n2} is set:
loop 4 times:
make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8 of player with Green_Stained_Glass_Pane named ""
wait 0.2 seconds
make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8 of player with Black_Stained_Glass_Pane named ""
wait 0.2 seconds
send "&a&lOYUN &8» &73 tane mor çıkarttığın için &a100000 &7miktarında para kazandın!"
add 100000 to player's balance
wait 1 seconds
close player's inventory
else:
if {_n1} is set:
send "&a&lOYUN &8» &7Oyunu kaybettin."
close player's inventory
else:
if {_n} is set:
send "&a&lOYUN &8» &7Bugün çok şanssızsın. Kaybettin."
close player's inventory
set {oyun.%player%} to false
else:
send "&a&lOYUN &8» &7Bu oyunu oynamak için &a30000 &7paran olmalı. Senin paran: &a%player's balance%"
on command:
if {oyun.%player%} is true:
send "&a&lOYUN &8» &7Oyun esnasında komut kullanamazsın!"
send "&a&lOYUN &8» &7Oyunda olmamana rağmen bu hatayı alıyorsan oyundan çıkıp gir."
cancel event
on join:
set {oyun.%player%} to false