Advertisement
fleft17

Untitled

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