Advertisement
fleft17

Untitled

Jul 17th, 2014
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.90 KB | None | 0 0
  1.  
  2. command /randomkits [<player>]:
  3. permission: skript.op
  4. trigger:
  5. if arg-1 is not set:
  6. loop all players:
  7. loop-player is in world "arena" or "arena1" or "arena2":
  8.  
  9. execute console command "/randomkits %loop-player%"
  10.  
  11.  
  12. if arg-1 is set:
  13. clear arg-1's inventory
  14. execute console command "/xp -500L %arg-1%"
  15. set {pvpgear.%arg-1%} to a random integer between 1 and 17
  16. set {pvpgold.%arg-1%} to a random integer between 1 and 4
  17. set {pvparrow.%arg-1%} to a random integer between 16 and 64
  18. set {pvppot.%arg-1%} to a random integer between 1 and 75
  19. set {pvpchest.%arg-1%} to a random integer between 1 and 30
  20. if {pvpgear.%arg-1%} is 1:
  21. equip arg-1 with iron helmet of protection 1
  22. equip arg-1 with iron chestplate of protection 1
  23. equip arg-1 with iron leggings of protection 1
  24. equip arg-1 with iron boots of protection 1
  25. give arg-1 diamond sword of sharpness 1 named "Sharpness I"
  26. give arg-1 bow of power 1 named "Power I"
  27. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  28. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  29. if {pvpgear.%arg-1%} is 2:
  30. equip arg-1 with iron helmet
  31. equip arg-1 with iron chestplate
  32. equip arg-1 with iron leggings
  33. equip arg-1 with iron boots
  34. give arg-1 diamond sword named "Unenchanted"
  35. give arg-1 bow named "Unenchanted"
  36. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  37. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  38. if {pvpgear.%arg-1%} is 3:
  39. equip arg-1 with iron helmet of protection 1
  40. equip arg-1 with diamond chestplate of projectile protection 1
  41. equip arg-1 with iron leggings of protection 1
  42. equip arg-1 with iron boots of protection 1
  43. give arg-1 diamond sword of sharpness 1 named "Sharpness I"
  44. give arg-1 bow of power 2 named "Power II"
  45. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  46. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  47. if {pvpgear.%arg-1%} is 4:
  48. equip arg-1 with iron helmet
  49. equip arg-1 with iron chestplate
  50. equip arg-1 with iron leggings
  51. equip arg-1 with diamond boots
  52. give arg-1 iron sword named "Unenchanted"
  53. give arg-1 bow named "Unenchanted"
  54. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  55. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  56. if {pvpgear.%arg-1%} is 5:
  57. equip arg-1 with iron helmet
  58. equip arg-1 with iron chestplate
  59. equip arg-1 with iron leggings
  60. equip arg-1 with diamond boots
  61. give arg-1 diamond sword named "Unenchanted"
  62. give arg-1 bow named "Unenchanted"
  63. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  64. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  65. if {pvpgear.%arg-1%} is 6:
  66. equip arg-1 with iron helmet
  67. equip arg-1 with iron chestplate
  68. equip arg-1 with iron leggings
  69. equip arg-1 with iron boots
  70. give arg-1 iron sword named "Unenchanted"
  71. give arg-1 bow named "Unenchanted"
  72. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  73. give arg-1 4 golden apples
  74. if {pvpgear.%arg-1%} is 7:
  75. equip arg-1 with iron helmet of projectile protection 1
  76. equip arg-1 with iron chestplate of projectile protection 1
  77. equip arg-1 with iron leggings of projectile protection 1
  78. equip arg-1 with iron boots of projectile protection 1
  79. give arg-1 diamond sword of sharpness 1 named "Sharpness I"
  80. give arg-1 bow of power 3 named "Power III"
  81. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  82. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  83. if {pvpgear.%arg-1%} is 8:
  84. equip arg-1 with iron helmet
  85. equip arg-1 with iron chestplate
  86. equip arg-1 with iron leggings
  87. equip arg-1 with iron boots
  88. give arg-1 diamond sword named "Unenchanted"
  89. give arg-1 bow of power 4 named "Power IV"
  90. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  91. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  92. if {pvpgear.%arg-1%} is 9:
  93. equip arg-1 with iron helmet
  94. equip arg-1 with iron chestplate
  95. equip arg-1 with iron leggings
  96. equip arg-1 with iron boots
  97. give arg-1 iron sword of sharpness 4 named "Sharpness IV"
  98. give arg-1 bow named "Unenchanted"
  99. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  100. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  101. if {pvpgear.%arg-1%} is 10:
  102. equip arg-1 with iron helmet of protection 1
  103. equip arg-1 with diamond chestplate of protection 1
  104. equip arg-1 with iron leggings of protection 1
  105. equip arg-1 with diamond boots of projectile protection 1
  106. give arg-1 diamond sword of sharpness 2 named "Sharpness II"
  107. give arg-1 bow of power 2 named "Power II"
  108. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  109. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  110. if {pvpgear.%arg-1%} is 11:
  111. equip arg-1 with iron helmet of projectile protection 1
  112. equip arg-1 with iron chestplate of protection 2
  113. equip arg-1 with iron leggings of protection 1
  114. equip arg-1 with iron boots of protection 2
  115. give arg-1 diamond sword of sharpness 1 named "Sharpness I"
  116. give arg-1 bow of power 1 named "Power I"
  117. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  118. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  119. if {pvpgear.%arg-1%} is 12:
  120. equip arg-1 with iron helmet
  121. equip arg-1 with iron chestplate of protection 4
  122. equip arg-1 with iron leggings
  123. equip arg-1 with iron boots
  124. give arg-1 diamond sword named "Unenchanted"
  125. give arg-1 bow named "Unenchanted"
  126. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  127. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  128. if {pvpgear.%arg-1%} is 13:
  129. equip arg-1 with diamond helmet of projectile protection 1
  130. equip arg-1 with diamond chestplate of projectile protection 2
  131. equip arg-1 with iron leggings of protection 1
  132. equip arg-1 with iron boots of projectile protection
  133. give arg-1 diamond sword of sharpness 3 named "Sharpness III"
  134. give arg-1 bow of power 2 named "Power II"
  135. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  136. if {pvpgear.%arg-1%} is 14:
  137. equip arg-1 with diamond helmet of protection 1
  138. equip arg-1 with diamond chestplate of protection 1
  139. equip arg-1 with iron leggings of protection 1
  140. equip arg-1 with iron boots of protection 1
  141. give arg-1 diamond sword of sharpness 1 and knockback 1 named "Sharpness I Knockback 1"
  142. give arg-1 bow of power 1 named "Power I"
  143. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  144. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  145. if {pvpgear.%arg-1%} is 15:
  146. equip arg-1 with iron helmet
  147. equip arg-1 with iron chestplate
  148. equip arg-1 with iron leggings
  149. equip arg-1 with iron boots
  150. give arg-1 diamond sword named "Unenchanted"
  151. give arg-1 bow of punch 2 named "Punch II"
  152. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  153. execute console command "/give %arg-1% 322 %{pvpgold.%arg-1%}%"
  154. if {pvpgear.%arg-1%} is 16:
  155. equip arg-1 with iron helmet
  156. equip arg-1 with iron chestplate
  157. equip arg-1 with iron leggings
  158. equip arg-1 with iron boots
  159. give arg-1 iron sword named "Unenchanted"
  160. give arg-1 bow of flame 1 and power 1 named "Flame I Power I"
  161. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  162. if {pvpgear.%arg-1%} is 17:
  163. equip arg-1 with iron helmet of projectile protection 1
  164. equip arg-1 with iron chestplate of projectile protection 1
  165. equip arg-1 with iron leggings of projectile protection 1
  166. equip arg-1 with iron boots of projectile protection 1
  167. give arg-1 diamond sword of fire aspect 1 and Sharpness 1 named "Fire Aspect I Sharpness I"
  168. give arg-1 bow of power 1 named "Power I"
  169. execute console command "/give %arg-1% arrow %{pvparrow.%arg-1%}%"
  170. chance of 40%:
  171. give arg-1 1 ender pearl
  172. if {pvppot.%arg-1%} is 30:
  173. give 1 unextended health potion II item to the arg-1
  174. give 1 unextended health potion II item to the arg-1
  175. give 1 unextended health potion II item to the arg-1
  176. if {pvppot.%arg-1%} is 15:
  177. give 1 unextended strength potion I item to the arg-1
  178. give 1 unextended strength potion I item to the arg-1
  179. give 1 unextended strength potion I item to the arg-1
  180. if {pvppot.%arg-1%} is 2:
  181. give 1 unextended speed potion I item to the arg-1
  182. give 1 unextended speed potion I item to the arg-1
  183. give 1 unextended speed potion I item to the arg-1
  184. if {pvpchest.%arg-1%} is 5:
  185. enchant the arg-1's chestplate with protection 3
  186. if {pvpchest.%arg-1%} is 10:
  187. enchant the player's chestplate with protection 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement