variables: {zetony::%player%} = 0 options: tag: &a[&6&lK&e&la&6&ls&e&ly&6&ln&e&lo&a]&f szansa1: 25 wygrana1: 5000 on rightclick on sign: if player has permission "admin.kasyno": if line 1 is "KASYNO": set line 1 to "&6&lK&e&la&6&ls&e&ly&6&ln&e&lo" set line 2 to "&aKoszt 1500 zetonow" send "{@tag} Stworzono kasyno." to player wait 1 second stop on rightclick on sign: if line 1 is "&6&lK&e&la&6&ls&e&ly&6&ln&e&lo": if {zetony::%player%} >= 1500: remove 1500 from {zetony::%player%} loop 2 times: set line 1 to "&6&lK" set line 2 to "&elosowanie" wait 0.5 second set line 1 to "&6&lK&e&la" wait 0.5 second set line 1 to "&6&lK&e&la&6&ls" wait 0.5 second set line 1 to "&6&lK&e&la&6&ls&e&ly" wait 0.5 second set line 1 to "&6&lK&e&la&6&ls&e&ly&6&ln" wait 0.5 second set line 1 to "&6&lK&e&la&6&ls&e&ly&6&ln&e&lo" wait 0.5 second set line 1 to "&6&lK&e&la&6&ls&e&ly&6&ln&e&lo" # bez tego moga wystepowac bledy set line 2 to "&aKoszt 1500 zetonow" chance of {@szansa1}%: add 5000 to {zetony::%player%} send "{@tag} Wygrales {@wygrana1} zetonow! Gratulujemy!" stop else: send "{@tag} Nie tym razem ;)" to player else: send "{@tag} Brak zetonow. Doladuj je teraz komenda /wplac" command /dajzetony [] []: trigger: if player has permission "admin.kasyno": if arg-1 and arg-2 is set: add arg-2 to {zetony::%arg-1%} send "{@tag} Pomyslnie nadano zetony." to player send "{@tag} Do twojego konta dodano %arg-2% zetonow." to arg-1 else: send "{@tag} &4Prawidlowe uzycie: &o/dajzetony [gracz] [ilosc]" to player command /zetony []: trigger: if arg-1 is not set: send "{@tag} Twoje zetony: %{zetony::%player%}%" to player stop if arg-1 is set: if player has permission "sprawdz.zetony": send "{@tag} Zetony uzytkownika %arg-1% == {zetony::%arg-1%}" to player command /wyplac []: trigger: if arg-1 is set: if {zetony::%player%} >= arg-1: remove arg-1 from {zetony::%player%} send "{@tag} Wyplacono!" to player set {_wynik.%player%} to argument 1/10 give {_wynik.%player%} of diamond to player else: send "{@tag} Nie masz tyle zetonow!" to player command /wplac: trigger: if player has 64 diamond: remove 64 diamond from player send "{@tag} Wplacono 64 diamenty o wartosci 640 zetonow." to player add 640 to {zetony::%player%} command /kasyno: trigger: send "{@tag} Komendy:" send "&f&o/Wplac &fWplaca 64 diamenty o wartosci 640 zetonow." send "&f&o/Wyplac &fWyplaca dana ilosc zetonow." send "&f&o/Zetony &fSprawdza stan zetonow."