Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {kod} = 0 # NIE ZMIENIAJ
- {wr} = true # NIE ZMIENIAJ
- {akod} = false # NIE ZMIENIAJ
- # CHYBA, ŻE SIĘ NA TYM ZNASZ
- options:
- tag: &4&l[AIO]&r
- # Ilosc itemu ktora ma dac po wpisaniu kodu
- ilosc: 1
- # Item ktory ma dac
- item: gold
- # TUTAJ WPISZ CZAS CO ILE MA WYŚWIETLAĆ KOD
- # DOMYŚLNIE JEST W MINUTACH, MOŻNA ZMIENIĆ NIŻEJ!
- czas: 15
- # CZAS PODAWANY W MINUTACH: minutes
- # sekudny: seconds
- # godziny: hours
- # inne sprawdź w GOOGLE
- czasm: minutes
- # GENERACJA KODU :)
- every {@czas} {@czasm}:
- set {wr} to true
- set {akod} to true
- set {1} to a random integer between 0 and 9
- set {2} to a random integer between 0 and 9
- set {3} to a random integer between 0 and 9
- set {4} to a random integer between 0 and 9
- set {5} to a random integer between 0 and 9
- set {6} to a random integer between 0 and 9
- set {7} to a random integer between 0 and 9
- set {8} to a random integer between 0 and 9
- set {9} to a random integer between 0 and 9
- set {kod} to "%{1}%%{2}%%{3}%%{4}%%{5}%%{6}%%{7}%%{8}%%{9}%"
- broadcast "{@tag} &4UWAGA! &2Kto pierwszy przepisze kod &c%{kod}%&2 dostanie &b5 diaxow! Wpisz &c/kod <podany kod>&2 aby go uzyc!"
- wait 1 minute
- if {wr} is true:
- broadcast "{@tag} Nikt nie przepisal kodu, nastepny za 15 minut!"
- set {akod} to false
- command /konkurs [<text>]:
- trigger:
- arg 1 is empty:
- if {akod} is true:
- send "{@tag} Uzyj /kod <kod>"
- if {akod} is false:
- send "{@tag}&c Aktualnie nie ma zadnego kodu!"
- arg 1 is "%{kod}%":
- if {akod} is false:
- send "{@tag}&c Aktualnie nie ma zadnego kodu!"
- if {akod} is true:
- set {wr} to false
- broadcast "{@tag} Gracz &c%name of player%&2 pierwszy przepisal kod i dostal &e1 sztabke zlota&2!"
- add {@ilosc} {@item} to player
- set {akod} to false
- arg 1 is not "%{kod}%":
- if {akod} is false:
- send "{@tag}&c Aktualnie nie ma zadnego kodu!"
- if {akod} is true:
- send "{@tag}&c Kod jest nieprawidlowy!"
Advertisement
Add Comment
Please, Sign In to add comment