Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Konkursy
- variables:
- {lotto.hour} = 0
- {lotto.udzial.%player%} = false
- {code.done} = false
- # Kod na czacie
- every hour:
- set {code.done} to false
- clear {code.chat}
- clear {code.chat.xxx::*}
- clear {code.reward}
- clear {code.price}
- loop 8 times:
- set {code.chat.xxx.%loop-number%} to "A" or "B" or "C" or "D" or "E" or "F" or "G" or "H" or "I" or "J" or "K" or "L" or "M" or "N" or "O" or "P" or "R" or "S" or "T" or "U" or "W" or "X" or "Y" or "Z" or 1 or 2 or 3 or 5 or 6 or 7 or 8 or 9 or 0
- set {code.chat} to "%{code.chat.xxx.1}%%{code.chat.xxx.2}%%{code.chat.xxx.3}%%{code.chat.xxx.4}%%{code.chat.xxx.5}%%{code.chat.xxx.6}%%{code.chat.xxx.7}%%{code.chat.xxx.8}%"
- set {chat.cpro} to {code.chat}
- broadcast "&7[&bCODE&7] &cKOD: &4%{code.chat}%"
- broadcast "&7[&bCODE&7] &aJak najszybciej przepisz ten kod na czat!"
- on chat:
- if {code.chat} is set:
- if message is {code.chat}:
- cancel event
- if {code.done} is false:
- set {code.done} to true
- set {code.price} to a random number between 100 and 1000
- add {code.price} to balance of player
- clear {code.chat::*}
- clear {code.reward}
- execute console command "/tm abc &bGracz &c%player%&b przepisal kod i wygral &c$%{code.price}%&b!"
- broadcast "&7[&bCODE&7] &aGraacz &c%player%&a pierwszy przepisal kod i wygral &c$%{code.price}%&a!"
- clear {code.price}
- command /kodwymus:
- permission: wymuszenie.konkurs
- trigger:
- set {code.done} to false
- clear {code.chat}
- clear {code.chat.xxx::*}
- clear {code.reward}
- clear {code.price}
- loop 8 times:
- set {code.chat.%loop-number%} to "A" or "B" or "C" or "D" or "E" or "F" or "G" or "H" or "I" or "J" or "K" or "L" or "M" or "N" or "O" or "P" or "R" or "S" or "T" or "U" or "W" or "X" or "Y" or "Z" or 1 or 2 or 3 or 5 or 6 or 7 or 8 or 9 or 0
- set {code.chat} to "%{code.chat.1}%%{code.chat.2}%%{code.chat.3}%%{code.chat.4}%%{code.chat.5}%%{code.chat.6}%%{code.chat.7}%%{code.chat.8}%"
- broadcast "&7[&bCODE&7] &cKOD: &4%{code.chat}%"
- broadcast "&7[&bCODE&7] &aJak najszybciej przepisz ten kod na czat!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement