ItachiStudio

Skrypt na pandory

Jun 1st, 2016
3,865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.10 KB | None | 0 0
  1. options:
  2. pandoraname: &8&l>> &4&lPUSZKA PANDORY &8&l<<
  3. pandoralore: ||&8» &ePostaw Na Ziemi Aby Otrzymac Item||&8» &eMozna Kupic Na Stronie Serwera /sklep
  4. item11: diamond sword of sharpness 5 and fire aspect 2
  5. item21: diamond pickaxe of efficiency 5 and unbreaking 3 and fortune 3
  6. item31: diamond helmet of protection 4 and unbreaking 3
  7. item41: Diamond Chestplate of protection 4 and unbreaking 3
  8. item51: Diamond Leggings of protection 4 and unbreaking 3
  9. item61: Diamond Boots of protection 4 and unbreaking 3
  10. item71: emerald block
  11. item81: enchanted golden apple
  12. item91: golden apple
  13. item101: ender pearl
  14.  
  15.  
  16. command /8stronapierozek [<player>]:
  17. permission: Itachi.skrzynki
  18. trigger:
  19. if arg is set:
  20. broadcast "&7&lGracz &6&l%player-arg% &7&lZakupil: &6&lx8 Pierozkow"
  21. loop 8 times:
  22. give player-arg Dragon Egg named "{@pandoraname}" with lore "{@pandoralore}"
  23. if arg is not set:
  24. send "nick?"
  25.  
  26. command /16stronapierozek [<player>]:
  27. permission: Itachi.skrzynki
  28. trigger:
  29. if arg is set:
  30. broadcast "&7&lGracz &6&l%player-arg% &7&lZakupil: &6&lx16 Pierozkow"
  31. loop 16 times:
  32. give player-arg Dragon Egg named "{@pandoraname}" with lore "{@pandoralore}"
  33. if arg is not set:
  34. send "nick?"
  35.  
  36. command /ipandora [<text>]:
  37. permission: Itachi.skrzynki
  38. trigger:
  39. if arg 1 is "daj":
  40. give player Dragon Egg named "{@pandoraname}" with lore "{@pandoralore}"
  41. send "&eDostales pandorke"
  42. stop
  43. if arg 1 is "all":
  44. broadcast "&4Za 30 sek kazdy dostanie Puszke Pandory &8(&6Mususz Miec 1 Wolne Miejsce W EQ&8)"
  45. wait 600 ticks
  46. set {pierozekall} to false
  47. loop all players:
  48. loop 2 times:
  49. give loop-player Dragon Egg named "{@pandoraname}" with lore "{@pandoralore}"
  50. stop
  51. if arg 1 is "on":
  52. broadcast "&ePuszki pandory zostaly &awlaczone&e."
  53. clear {puszki.kithc.on}
  54. stop
  55. if arg 1 is "off":
  56. broadcast "&ePuszki pandory zostaly &cwylaczone&e."
  57. set {puszki.kithc.on} to false
  58. stop
  59. else:
  60. send "&cPoprawne uzycie: /ipandora daj|all|on|off"
  61. stop
  62.  
  63.  
  64.  
  65.  
  66. on place Dragon Egg:
  67. cancel event
  68. if player is holding a Dragon Egg named "{@pandoraname}" with lore "{@pandoralore}":
  69. if {puszki.kithc.on} is not set:
  70. remove 1 Dragon Egg named "{@pandoraname}" with lore "{@pandoralore}" from the player
  71. chance of 15%:
  72. if player can hold diamond sword:
  73. give player {@item11}
  74. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &cDiax Miecz 5/2 &a&l***"
  75. stop
  76. else:
  77. drop {@item11}
  78. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &cDiax Miecz 5/2 &a&l***"
  79. stop
  80. chance of 10%:
  81. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &c24x Kopacz fosy &a&l***"
  82. loop 24 times:
  83. if player can hold 1 enchantment table of infinity 1 named "&cKOPACZ FOSY" with lore "&5-&7Poloz Na Ziemi A Wykopie Dziure Do &8Bedroka":
  84. give player enchantment table of infinity 1 named "&cKOPACZ FOSY" with lore "&5-&7Poloz Na Ziemi A Wykopie Dziure Do &8Bedroka"
  85. else:
  86. drop enchantment table of infinity 1 named "&cKOPACZ FOSY" with lore "&5-&7Poloz Na Ziemi A Wykopie Dziure Do &8Bedroka"
  87. stop
  88. chance of 30%:
  89. if player can hold diamond pickaxe:
  90. give player {@item21}
  91. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &cDiax Kilof 5/3/3 &a&l***"
  92. stop
  93. else:
  94. drop {@item21}
  95. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &cDiax Kilof 5/3/3 &a&l***"
  96. stop
  97. chance of 30%:
  98. if player can hold diamond helmet:
  99. give player {@item31}
  100. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &cDiax Helm 4/3 &a&l***"
  101. stop
  102. else:
  103. drop {@item31}
  104. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &cDiax Helm 4/3 &a&l***"
  105. stop
  106. chance of 30%:
  107. if player can hold diamond chestplate:
  108. give player {@item41}
  109. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &cDiax Klate 4/3 &a&l***"
  110. stop
  111. else:
  112. drop {@item41}
  113. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &cDiax Klate 4/3 &a&l***"
  114. stop
  115. chance of 30%:
  116. if player can hold diamond Leggings:
  117. give player {@item51}
  118. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &cDiax Spodnie 4/3 &a&l***"
  119. stop
  120. else:
  121. drop {@item51}
  122. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &cDiax Spodnie 4/3 &a&l***"
  123. stop
  124. chance of 30%:
  125. if player can hold diamond boots:
  126. give player {@item61}
  127. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &cDiax Buty 4/3 &a&l***"
  128. stop
  129. else:
  130. drop {@item61}
  131. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &cDiax Buty 4/3 &a&l***"
  132. stop
  133. chance of 30%:
  134. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &c16x Bloki Szmaragdow &a&l***"
  135. loop 16 times:
  136. if player can hold emerald block:
  137. give player {@item71}
  138. else:
  139. drop {@item71}
  140. stop
  141. chance of 25%:
  142. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &c3x Kox &a&l***"
  143. loop 3 times:
  144. if player can hold enchanted golden apple:
  145. give player {@item81}
  146. else:
  147. drop {@item81}
  148. stop
  149. chance of 25%:
  150. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &c15x Refow &a&l***"
  151. loop 15 times:
  152. if player can hold golden apple:
  153. give player {@item91}
  154. else:
  155. drop {@item91}
  156. stop
  157. chance of 10%:
  158. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &c3x Enderpearl &a&l***"
  159. loop 3 times:
  160. if player can hold ender pearl:
  161. give player {@item101}
  162. else:
  163. drop {@item101}
  164. stop
  165. chance of 100%:
  166. if player can hold Dragon Egg named "{@pandoraname}" with lore "{@pandoralore}":
  167. give player Dragon Egg named "{@pandoraname}" with lore "{@pandoralore}"
  168. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &c Puszke Pandory &a&l***"
  169. stop
  170. else:
  171. drop Dragon Egg named "{@pandoraname}" with lore "{@pandoralore}"
  172. broadcast "&a&l*** &6Gracz &e%player% &6Wylosowal: &c Puszke Pandory &a&l***"
  173. stop
  174. if {puszki.kithc.on} is set:
  175. send "&cBLAD: &4puszki pandory sa wylaczone." to player
Advertisement
Add Comment
Please, Sign In to add comment