Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # NineKod by ninecraster
- # Wersja: 1.3
- variables:
- {kod} = 0
- {wr} = true
- {akod} = false
- options:
- # Tag wiadomosci
- tag: &b&lNR&a&lworld
- # Wiadomosc informujaca o kodzie
- msg1: &7&k:&3&lNine&6&lkod&7&k: &9&lNowy kod Szybko wpisoj! &3&l/kod &c&l%{kod}%
- # Wiadomosc gdy nikt nie przepisze kodu
- msg2: &7&k:&3&lNine&6&lkod&7&k: &9&lNikt nie przepisal kodu, kolejny za &c&n10 minut!
- # Wiadomosc gdy aktualnie nie ma kodu do przepisania
- msg3: &7&k:&3&lNine&6&lkod&7&k: &9&lNie ma zadnego kodu!
- # Wiadomosc gdy gracz przepisze kod
- msg4: &7&k:&3&lNine&6&lkod&7&k: &9&lGracz &f%name of player%&2 &9&lpierwszy przepisal/a kod!
- &7&k:&b&lNR&a&lworld&7&k: &9&lWiadomosc gdy kod jest nieprawidlowy
- msg5: &7&k:&3&lNR&6&lkod&7&k: &9&lKod jest nieprawidlowy!
- # Ilosc itemu ktora ma dac po wpisaniu kodu
- ilosc: 1
- # Item ktory ma dac np kox lub diax
- item: golden apple:1
- # Czas w minutach co jaki ma losowac kod
- czas: 10
- every {@czas} minutes:
- set {wr} to true
- set {akod} to true
- set {a} to a random integer between 0 and 9
- set {b} to a random integer between 0 and 9
- set {c} to a random integer between 0 and 9
- set {d} to a random integer between 0 and 9
- set {e} to a random integer between 0 and 9
- set {f} to a random integer between 0 and 9
- set {g} to a random integer between 0 and 9
- set {h} to a random integer between 0 and 9
- set {i} to a random integer between 0 and 9
- set {kod} to "%{a}%%{b}%%{c}%%{d}%%{e}%%{f}%%{g}%%{h}%%{i}%"
- broadcast "{@msg1}"
- wait 1 minute
- if {wr} is true:
- broadcast "{@msg2}"
- set {akod} to false
- command /kod [<text>]:
- trigger:
- arg 1 is empty:
- if {akod} is true:
- send "&7&k:&3&lNR&a&lworld&7&k: &cUzyj /kod <kod>"
- if {akod} is false:
- send "{@msg3}"
- arg 1 is "%{kod}%":
- if {akod} is false:
- send "{@msg3}"
- if {akod} is true:
- set {wr} to false
- broadcast "{@msg4}"
- add {@ilosc} {@item} to player
- set {akod} to false
- arg 1 is not "%{kod}%":
- if {akod} is false:
- send "{@msg3}"
- if {akod} is true:
- send "{@msg5}"
Advertisement
Add Comment
Please, Sign In to add comment