Advertisement
Kacperski89

Pierogy

Mar 4th, 2016
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. variables:
  2. pierozek::items::* = 0
  3.  
  4. on right click with dragon egg named "&bPierozek":
  5. if size of {pierozek::items::*} is less than 5:
  6. cancel event
  7. send "&cPierozek tymczasowo niedostepny z braku przedmiotow" to player
  8. send "&cPoinformuj o tym administratora!" to player
  9. else:
  10. set {_item} to a random element of {pierozek::items::*}
  11. if player's tool is air:
  12. give {_item} to player
  13. send "&aWylosowales &b%{_item}%&a!" to player
  14. else:
  15. drop "%{_item}%" at player
  16. send "&aWylosowales &b%{_item}%&a!" to player
  17. send "&aWypadl on na ziemie, poniewaz nie masz miejsca w EQ ;)" to player
  18.  
  19. # Komendy
  20.  
  21. command /pierozki [<text="pomoc">] [<items>]:
  22. permission: pierozki.admin
  23. trigger:
  24. argument 1 is not "pomoc", "add" or "remove":
  25. send "&4Blad: &cNieznana komenda, lub zla nazwa item'u !"
  26. stop
  27. argument 1 is "pomoc":
  28. send " &1######## &e&L Pierozki &1########"
  29. send "&c» &3/Pierozki add nazwaitemu &8- Dodaje item do dropu!&6"
  30. send "&c» &3/Pierozki remove nazwaitemu &8- Usuwa item z dropu!"
  31. send "&c» &3/Pierozki pomoc &8- Pokazuje wszystkie komendy!&6"
  32. send "&c» &3/Pierozkidaj <ilosc>&8 Dostajesz pierozki! (Ilosc co 5)"
  33. send "&c» &3/Pierozkiall &8- Daje wszystkim graczom Pierozka!&6 "
  34. send "&c» &3Lista item'ow z dropu:&6 %{pierozeklose::*}%"
  35. send " &1######## &e&L Pierozki &1########"
  36. stop
  37. if arg 1 is "add":
  38. if player's tool is air:
  39. send "&cMusisz trzymac item w rece!" to player
  40. else:
  41. if {pierozek::items::*} contains player's tool:
  42. send "&cTen item juz znajduje sie na liscie!" to player
  43. else:
  44. set {_item} to player's tool
  45. add {_item} to {pierozek::items::*}
  46. send "&aDodano &b%player's tool% &ado listy!" to player
  47. argument 1 is "remove":
  48. if argument 2 is not set:
  49. send "&4Blad:&cMusisz wpisac nazwe przedmiotu!"
  50. else:
  51. remove argument 2 from {pierozeklose::*}
  52. send "&cUsunieto ' %arg 2% ' z dropu!"
  53.  
  54. command /pierozkidaj [<text>]:
  55. permission: pierozki.me
  56. permission message: Nie masz dostepu do tej komendy!
  57. trigger:
  58. if arg 1 is "5":
  59. send "&6» &9Dostales &a5 &cPierozkow!"
  60. give 5 Dragon Egg named "&6&lPierozek"to player
  61. if arg 1 is "10":
  62. send "&6» &9Dostales &a10 &cPierozkow!"
  63. give 10 Dragon Egg named "&6&lPierozek"to player
  64. if arg 1 is "15":
  65. send "&6» &9Dostales &a15 &cPierozkow!"
  66. give 15 Dragon Egg named "&6&lPierozek"to player
  67. if arg 1 is "20":
  68. send "&6» &9Dostales &a20 &cPierozkow!"
  69. give 20 Dragon Egg named "&6&lPierozek"to player
  70. if arg 1 is "25":
  71. send "&6» &9Dostales &a25 &cPierozkow!"
  72. give 25 Dragon Egg named "&6&lPierozek"to player
  73. if arg 1 is "30":
  74. send "&6» &9Dostales &a30 &cPierozkow!"
  75. give 30 Dragon Egg named "&6&lPierozek"to player
  76. if arg 1 is "35":
  77. send "&6» &9Dostales &a35 &cPierozkow!"
  78. give 35 Dragon Egg named "&6&lPierozek"to player
  79. if arg 1 is "40":
  80. send "&6» &9Dostales &a40 &cPierozkow!"
  81. give 40 Dragon Egg named "&6&lPierozek"to player
  82. if arg 1 is "45":
  83. send "&6» &9Dostales &a45 &cPierozkow!"
  84. give 45 Dragon Egg named "&6&lPierozek"to player
  85. if arg 1 is "50":
  86. send "&6» &9Dostales &a50 &cPierozkow!"
  87. give 50 Dragon Egg named "&6&lPierozek"to player
  88. if arg 1 is "55":
  89. send "&6» &9Dostales &a55 &cPierozkow!"
  90. give 55 Dragon Egg named "&6&lPierozek"to player
  91. if arg 1 is "60":
  92. send "&6» &9Dostales &a60 &cPierozkow!"
  93. give 60 Dragon Egg named "&6&lPierozek"to player
  94. if arg 1 is "64":
  95. send "&6» &9Dostales &a64 &cPierozkow!"
  96. give Dragon Egg named "&6&lPierozek"to player
  97. command /pierozkiall:
  98. permission: pierozkiall.me
  99. permission message: Nie masz dostepu do tej komendy!
  100. trigger:
  101. loop all players:
  102. give Dragon Egg named "&6&lPierozek" to players
  103. send "&6» &9Dostales &aPierozka od Admina!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement