options:
slot-ucreti: 1000
slot-kazanma: 5000
slot-uc: 10000
ver: 1.2
tag: &7[ &aMC-TR &7]
on sign change:
player has permission "slot.yarat"
if line 1 of block is "[Makine]":
set line 1 of block to "&7[- &aSlotlar &7-]"
set line 4 of block to " &a&lHAZIR "
on right click on sign:
if line 1 of block is "&7[- &aSlotlar &7-]":
line 4 of block is " &a&lHAZIR "
if player's money is less than {@slot-ucreti}:
message "&7{@tag} &3Yeterli paran bulunmamaktadır."
stop
remove {@slot-ucreti} from player's money
message "{@tag} &aBaşarıyla slotu çevirdin. Kesilen para &c{@slot-ucreti}TL"
set line 4 of block to "&4-[ ÇEVRILIYOR ]-"
set line 3 of block to ""
loop 60 times:
set {_degisme} to a random integer between 1 and 10
set {_degisme2} to a random integer between 1 and 10
set {_degisme3} to a random integer between 1 and 10
if {_degisme} is 1:
set {_degisme} to "&ax&r"
if {_degisme} is 2:
set {_degisme} to "&c-&r"
if {_degisme} is 3:
set {_degisme} to "&c-&r"
if {_degisme} is 4:
set {_degisme} to "-"
if {_degisme} is 5:
set {_degisme} to "-"
if {_degisme} is 6:
set {_degisme} to "0"
if {_degisme} is 7:
set {_degisme} to "*"
if {_degisme} is 8:
set {_degisme} to "&40&r"
if {_degisme} is 9:
set {_degisme} to "&6^&r"
if {_degisme} is 10:
set {_degisme} to "&9!&r"
if {_degisme2} is 1:
set {_degisme2} to "&ax&r"
if {_degisme2} is 2:
set {_degisme2} to "&c-&r"
if {_degisme2} is 3:
set {_degisme2} to "&c-&r"
if {_degisme2} is 4:
set {_degisme2} to "-"
if {_degisme2} is 5:
set {_degisme2} to "-"
if {_degisme2} is 6:
set {_degisme2} to "0"
if {_degisme2} is 7:
set {_degisme2} to "*"
if {_degisme2} is 8:
set {_degisme2} to "&40&r"
if {_degisme2} is 9:
set {_degisme2} to "&6^&r"
if {_degisme2} is 10:
set {_degisme2} to "&9!&r"
if {_degisme3} is 1:
set {_degisme3} to "&ax&r"
if {_degisme3} is 2:
set {_degisme3} to "&c-&r"
if {_degisme3} is 3:
set {_degisme3} to "&c-&r"
if {_degisme3} is 4:
set {_degisme3} to "-"
if {_degisme3} is 5:
set {_degisme3} to "-"
if {_degisme3} is 6:
set {_degisme3} to "0"
if {_degisme3} is 7:
set {_degisme3} to "*"
if {_degisme3} is 8:
set {_degisme3} to "&40&r"
if {_degisme3} is 9:
set {_degisme3} to "&6^&r"
if {_degisme3} is 10:
set {_degisme3} to "&9!&r"
set line 2 of block to "&f>&r %{_degisme}% %{_degisme2}% %{_degisme3}% &f<"
wait 1 tick
set line 4 of block to " &a&lHAZIR "
set line 3 of block to " "
if {_degisme} is {_degisme2}:
if {_degisme} is {_degisme3}:
add {@slot-uc} to player's money
message "&a+ ${@slot-uc}"
broadcast "&8[&4Slot Makine8] &e%player% &6{@slot-uc}TL &akadar para kazandı!"
stop
add {@slot-kazanma} to player's money
message "{@tag} &3{@slot-kazanma}TL &7kazandın! Slot makinesine teşekkürler!"
stop