Guest User

Untitled

a guest
Apr 1st, 2014
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. variables:
  2. {kod} = 0 # NIE ZMIENIAJ
  3. {wr} = true # NIE ZMIENIAJ
  4. {akod} = false # NIE ZMIENIAJ
  5. # CHYBA, ŻE SIĘ NA TYM ZNASZ
  6.  
  7. options:
  8. tag: &4&l[AIO]&r
  9. # Ilosc itemu ktora ma dac po wpisaniu kodu
  10. ilosc: 1
  11. # Item ktory ma dac
  12. item: gold
  13. # TUTAJ WPISZ CZAS CO ILE MA WYŚWIETLAĆ KOD
  14. # DOMYŚLNIE JEST W MINUTACH, MOŻNA ZMIENIĆ NIŻEJ!
  15. czas: 15
  16. # CZAS PODAWANY W MINUTACH: minutes
  17. # sekudny: seconds
  18. # godziny: hours
  19. # inne sprawdź w GOOGLE
  20. czasm: minutes
  21. # GENERACJA KODU :)
  22. every {@czas} {@czasm}:
  23. set {wr} to true
  24. set {akod} to true
  25. set {1} to a random integer between 0 and 9
  26. set {2} to a random integer between 0 and 9
  27. set {3} to a random integer between 0 and 9
  28. set {4} to a random integer between 0 and 9
  29. set {5} to a random integer between 0 and 9
  30. set {6} to a random integer between 0 and 9
  31. set {7} to a random integer between 0 and 9
  32. set {8} to a random integer between 0 and 9
  33. set {9} to a random integer between 0 and 9
  34. set {kod} to "%{1}%%{2}%%{3}%%{4}%%{5}%%{6}%%{7}%%{8}%%{9}%"
  35. broadcast "{@tag} &4UWAGA! &2Kto pierwszy przepisze kod &c%{kod}%&2 dostanie &b5 diaxow! Wpisz &c/kod <podany kod>&2 aby go uzyc!"
  36. wait 1 minute
  37. if {wr} is true:
  38. broadcast "{@tag} Nikt nie przepisal kodu, nastepny za 15 minut!"
  39. set {akod} to false
  40.  
  41. command /konkurs [<text>]:
  42. trigger:
  43. arg 1 is empty:
  44. if {akod} is true:
  45. send "{@tag} Uzyj /kod <kod>"
  46. if {akod} is false:
  47. send "{@tag}&c Aktualnie nie ma zadnego kodu!"
  48. arg 1 is "%{kod}%":
  49. if {akod} is false:
  50. send "{@tag}&c Aktualnie nie ma zadnego kodu!"
  51. if {akod} is true:
  52. set {wr} to false
  53. broadcast "{@tag} Gracz &c%name of player%&2 pierwszy przepisal kod i dostal &e1 sztabke zlota&2!"
  54. add {@ilosc} {@item} to player
  55. set {akod} to false
  56. arg 1 is not "%{kod}%":
  57. if {akod} is false:
  58. send "{@tag}&c Aktualnie nie ma zadnego kodu!"
  59. if {akod} is true:
  60. send "{@tag}&c Kod jest nieprawidlowy!"
Advertisement
Add Comment
Please, Sign In to add comment