Guest User

NineKod - Skrpyt na kody

a guest
Mar 3rd, 2016
1,735
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. # NineKod by ninecraster
  2. # Wersja: 1.3
  3.  
  4. variables:
  5. {kod} = 0
  6. {wr} = true
  7. {akod} = false
  8. options:
  9. # Tag wiadomosci
  10. tag: &b&lNR&a&lworld
  11. # Wiadomosc informujaca o kodzie
  12. msg1: &7&k:&3&lNine&6&lkod&7&k: &9&lNowy kod Szybko wpisoj! &3&l/kod &c&l%{kod}%
  13. # Wiadomosc gdy nikt nie przepisze kodu
  14. msg2: &7&k:&3&lNine&6&lkod&7&k: &9&lNikt nie przepisal kodu, kolejny za &c&n10 minut!
  15. # Wiadomosc gdy aktualnie nie ma kodu do przepisania
  16. msg3: &7&k:&3&lNine&6&lkod&7&k: &9&lNie ma zadnego kodu!
  17. # Wiadomosc gdy gracz przepisze kod
  18. msg4: &7&k:&3&lNine&6&lkod&7&k: &9&lGracz &f%name of player%&2 &9&lpierwszy przepisal/a kod!
  19. &7&k:&b&lNR&a&lworld&7&k: &9&lWiadomosc gdy kod jest nieprawidlowy
  20. msg5: &7&k:&3&lNR&6&lkod&7&k: &9&lKod jest nieprawidlowy!
  21. # Ilosc itemu ktora ma dac po wpisaniu kodu
  22. ilosc: 1
  23. # Item ktory ma dac np kox lub diax
  24. item: golden apple:1
  25. # Czas w minutach co jaki ma losowac kod
  26. czas: 10
  27. every {@czas} minutes:
  28. set {wr} to true
  29. set {akod} to true
  30. set {a} to a random integer between 0 and 9
  31. set {b} to a random integer between 0 and 9
  32. set {c} to a random integer between 0 and 9
  33. set {d} to a random integer between 0 and 9
  34. set {e} to a random integer between 0 and 9
  35. set {f} to a random integer between 0 and 9
  36. set {g} to a random integer between 0 and 9
  37. set {h} to a random integer between 0 and 9
  38. set {i} to a random integer between 0 and 9
  39. set {kod} to "%{a}%%{b}%%{c}%%{d}%%{e}%%{f}%%{g}%%{h}%%{i}%"
  40. broadcast "{@msg1}"
  41. wait 1 minute
  42. if {wr} is true:
  43. broadcast "{@msg2}"
  44. set {akod} to false
  45.  
  46. command /kod [<text>]:
  47. trigger:
  48. arg 1 is empty:
  49. if {akod} is true:
  50. send "&7&k:&3&lNR&a&lworld&7&k: &cUzyj /kod <kod>"
  51. if {akod} is false:
  52. send "{@msg3}"
  53. arg 1 is "%{kod}%":
  54. if {akod} is false:
  55. send "{@msg3}"
  56. if {akod} is true:
  57. set {wr} to false
  58. broadcast "{@msg4}"
  59. add {@ilosc} {@item} to player
  60. set {akod} to false
  61. arg 1 is not "%{kod}%":
  62. if {akod} is false:
  63. send "{@msg3}"
  64. if {akod} is true:
  65. send "{@msg5}"
Advertisement
Add Comment
Please, Sign In to add comment