options: wygasnieciekodu: 60 seconds automatycznykodza: 5 minute tag: &8* &b&nControl&4&nCore &8» &7 iloscmonetzakod: 50 iloscmonetzakodautomatyczny: 25 command /kod []: trigger: if arg 1 is "generuj": if player has permission "kod.generuj": set {_a} to a random integer between 0 and 5 set {_b} to a random integer between 0 and 5 set {_c} to a random integer between 0 and 5 set {_d} to a random integer between 0 and 5 set {_e} to a random integer between 0 and 5 set {kod} to "%{_a}%%{_b}%%{_c}%%{_d}%%{_e}%" broadcast "&8&m-------------------------" broadcast "" broadcast " &9&lAUTO-EVENT" broadcast "" broadcast "&8» &7Napisz na chacie:" broadcast " &8» &6/kod %{kod}%" broadcast "" broadcast "&8» &7Wygrany otrzyma: &aEPICCASE &8(&a3szt.&8)" broadcast "" broadcast "&8&m-------------------------" wait {@wygasnieciekodu} if {kod} is set: broadcast "{@tag}&7Nikt nie przepisal kodu!" delete {kod} stop stop else: send "&cNie posiadasz uprawnien aby uzyc tej komendy!" stop if {kod} is set: if arg 1 is "%{kod}%": if {automatycznykod} is true: broadcast "&8&m-------------------------" broadcast "" broadcast " &9&lAUTO-EVENT" broadcast "" broadcast "&8» &7Gracz &6%name of player% &7przepisal jako pierwszy kod" broadcast "&8» &7i otrzymal: &aEPICCASE &8(&a3szt.&8)" broadcast "" broadcast "&8&m-------------------------" give 3 54 named "&9&lEpicCase" with lore " ||&2» &9&lEpicCase &7Jest to magiczna skrzynka z ktorej||&2» &7moga wyleciec ci bardzo &acenne przedmioty!||&2» &7Miedzy innymi takie jak &9&lB&E&LE&2&LA&C&LC&6&LO&E&LN" to the player delete {kod} delete {automatycznykod} stop else: broadcast "&8&m-------------------------" broadcast "" broadcast " &9&lAUTO-EVENT" broadcast "" broadcast "&8» &7Gracz &6%name of player% &7przepisal jako pierwszy kod" broadcast "&8» &7i otrzymal: &aEPICCASE &8(&a3szt.&8)" broadcast "" broadcast "&8&m-------------------------" give 3 54 named "&9&lEpicCase" with lore " ||&2» &9&lEpicCase &7Jest to magiczna skrzynka z ktorej||&2» &7moga wyleciec ci bardzo &acenne przedmioty!||&2» &7Miedzy innymi takie jak &9&lB&E&LE&2&LA&C&LC&6&LO&E&LN" to the player delete {kod} stop else: send "{@tag}&7Kod jest nieprawidlowy!" stop else: send "{@tag}&7Aktualnie nie ma zadnego kodu!" stop every {@automatycznykodza}: set {automatycznykod} to true set {_a} to a random integer between 0 and 5 set {_b} to a random integer between 0 and 5 set {_c} to a random integer between 0 and 5 set {_d} to a random integer between 0 and 5 set {_e} to a random integer between 0 and 5 set {kod} to "%{_a}%%{_b}%%{_c}%%{_d}%%{_e}%" broadcast "&8&m-------------------------" broadcast "" broadcast " &9&lAUTO-EVENT" broadcast "" broadcast "&8» &7Napisz na chacie:" broadcast " &8» &6/kod %{kod}%" broadcast "" broadcast "&8» &7Wygrany otrzyma: &aEPICCASE &8(&a3szt.&8)" broadcast "" broadcast "&8&m-------------------------" wait {@wygasnieciekodu} if {kod} is set: broadcast "{@tag}&7Nikt nie przepisal kodu!" delete {kod} delete {automatycznykod} stop stop