command /kod:
permission: admin
trigger:
set {kodchat} to random integer between 111111 and 999999
send "&8&l[&6&lULTRA&e&LPVP&8&l] &eZa &b3 sekundy &erozpocznie sie konkurs! Kto pierwszy wpisze znaki na chacie to wygra &a&lspecjalne nagrody!" to all players
send "&8&l[&6&lULTRA&e&LPVP&8&l] &e3" to all players
wait 1 second
send "&8&l[&6&lULTRA&e&LPVP&8&l] &e2" to all players
wait 1 second
send "&8&l[&6&lULTRA&e&LPVP&8&l] &e1" to all players
wait 1 second
send formatted "<tooltip:&7Kod: &a&l%{kodchat}%>&8&l[&6&lULTRA&e&LPVP&8&l]&e Najedz myszka na ten tekst aby zobaczyc kod, a nastepnie przepisz go jak najszybciej na chacie!" to all players
on chat:
if {kodchat} is not set:
stop
if "%{kodchat}%" is message:
clear {kodchat}
send "&8&l[&6&lULTRA&e&LPVP&8&l] &eGracz &a&l%player% &epierwszy przepisal kod i otrzymuje nagrode!"
cancel event