Advertisement
krzysiekk1

Untitled

Apr 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. # Konkursy
  2.  
  3. variables:
  4. {lotto.hour} = 0
  5. {lotto.udzial.%player%} = false
  6. {code.done} = false
  7.  
  8. # Kod na czacie
  9. every hour:
  10. set {code.done} to false
  11. clear {code.chat}
  12. clear {code.chat.xxx::*}
  13. clear {code.reward}
  14. clear {code.price}
  15. loop 8 times:
  16. 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
  17. 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}%"
  18. set {chat.cpro} to {code.chat}
  19. broadcast "&7[&bCODE&7] &cKOD: &4%{code.chat}%"
  20. broadcast "&7[&bCODE&7] &aJak najszybciej przepisz ten kod na czat!"
  21.  
  22. on chat:
  23. if {code.chat} is set:
  24. if message is {code.chat}:
  25. cancel event
  26. if {code.done} is false:
  27. set {code.done} to true
  28. set {code.price} to a random number between 100 and 1000
  29. add {code.price} to balance of player
  30. clear {code.chat::*}
  31. clear {code.reward}
  32. execute console command "/tm abc &bGracz &c%player%&b przepisal kod i wygral &c$%{code.price}%&b!"
  33. broadcast "&7[&bCODE&7] &aGraacz &c%player%&a pierwszy przepisal kod i wygral &c$%{code.price}%&a!"
  34. clear {code.price}
  35.  
  36. command /kodwymus:
  37. permission: wymuszenie.konkurs
  38. trigger:
  39. set {code.done} to false
  40. clear {code.chat}
  41. clear {code.chat.xxx::*}
  42. clear {code.reward}
  43. clear {code.price}
  44. loop 8 times:
  45. 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
  46. 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}%"
  47. broadcast "&7[&bCODE&7] &cKOD: &4%{code.chat}%"
  48. broadcast "&7[&bCODE&7] &aJak najszybciej przepisz ten kod na czat!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement