Advertisement
fleft17

Untitled

May 17th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.64 KB | None | 0 0
  1. command /pvparena <text>:
  2. permission: skript.uhcbasic
  3. usage: /pvparena <on:off>
  4. trigger:
  5. if arg 1 is "on":
  6. set {PvPArena} to true
  7. execute console command "/pvp global on"
  8. if arg 1 is "off":
  9. set {PvPArena} to false
  10. execute console command "/pvp global off"
  11.  
  12.  
  13.  
  14. command /arena:
  15. usage: /arena
  16. trigger:
  17. player is in "FleftSpawn":
  18. {PvPArena} is true:
  19. heal the player
  20. execute console command "/ci %player%"
  21. execute console command "/gms %player%"
  22. remove night vision from the player
  23. set {pvpgear.%player%} to a random integer between 1 and 15
  24. set {pvpgold.%player%} to a random integer between 1 and 4
  25. set {pvparrow.%player%} to a random integer between 16 and 64
  26. set {pvppot.%player%} to a random integer between 1 and 100
  27. set {pvpchest.%player%} to a random integer between 1 and 50
  28. if {pvpgear.%player%} is 1:
  29. equip player with iron helmet of protection 1
  30. equip player with iron chestplate of protection 1
  31. equip player with iron leggings of protection 1
  32. equip player with iron boots of protection 1
  33. give player diamond sword of sharpness 1
  34. give player bow of power 1
  35. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  36. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  37. if {pvpgear.%player%} is 2:
  38. equip player with iron helmet
  39. equip player with iron chestplate
  40. equip player with iron leggings
  41. equip player with iron boots
  42. give player diamond sword
  43. give player bow
  44. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  45. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  46. if {pvpgear.%player%} is 3:
  47. equip player with iron helmet of protection 2
  48. equip player with diamond chestplate of projectile protection 1
  49. equip player with iron leggings of protection 1
  50. equip player with iron boots of protection 1
  51. give player diamond sword of sharpness 2
  52. give player bow of power 2
  53. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  54. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  55. if {pvpgear.%player%} is 4:
  56. equip player with iron helmet
  57. equip player with iron chestplate
  58. equip player with iron leggings
  59. equip player with diamond boots
  60. give player iron sword
  61. give player bow
  62. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  63. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  64. if {pvpgear.%player%} is 5:
  65. equip player with iron helmet
  66. equip player with iron chestplate
  67. equip player with iron leggings
  68. equip player with diamond boots
  69. give player diamond sword
  70. give player bow
  71. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  72. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  73. if {pvpgear.%player%} is 6:
  74. equip player with iron helmet
  75. equip player with iron chestplate
  76. equip player with iron leggings
  77. equip player with iron boots
  78. give player iron sword
  79. give player 1 ender pearl
  80. give player 4 golden apples
  81. if {pvpgear.%player%} is 7:
  82. equip player with iron helmet of projectile protection 1
  83. equip player with iron chestplate of projectile protection 1
  84. equip player with iron leggings of projectile protection 1
  85. equip player with iron boots of projectile protection 1
  86. give player diamond sword of sharpness 2
  87. give player bow of power 3
  88. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  89. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  90. if {pvpgear.%player%} is 8:
  91. equip player with iron helmet
  92. equip player with iron chestplate
  93. equip player with iron leggings
  94. equip player with iron boots
  95. give player diamond sword
  96. give player bow of power 4
  97. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  98. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  99. if {pvpgear.%player%} is 9:
  100. equip player with iron helmet
  101. equip player with iron chestplate
  102. equip player with iron leggings
  103. equip player with iron boots
  104. give player diamond sword of sharpness 4
  105. give player bow
  106. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  107. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  108. if {pvpgear.%player%} is 10:
  109. equip player with iron helmet of protection 1
  110. equip player with diamond chestplate of protection 2
  111. equip player with iron leggings of protection 1
  112. equip player with diamond boots of projectile protection 1
  113. give player diamond sword of sharpness 2
  114. give player bow of power 2
  115. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  116. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  117. if {pvpgear.%player%} is 11:
  118. equip player with iron helmet of projectile protection 2
  119. equip player with iron chestplate of protection 2
  120. equip player with iron leggings of protection 1
  121. equip player with iron boots of protection 2
  122. give player diamond sword of sharpness 2
  123. give player bow of power 2
  124. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  125. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  126. if {pvpgear.%player%} is 12:
  127. equip player with iron helmet
  128. equip player with iron chestplate of protection 4
  129. equip player with iron leggings
  130. equip player with iron boots
  131. give player diamond sword
  132. give player bow
  133. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  134. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  135. if {pvpgear.%player%} is 13:
  136. equip player with diamond helmet of projectile protection 1
  137. equip player with diamond chestplate of projectile protection 2
  138. equip player with iron leggings of protection 1
  139. equip player with iron boots of projectile protection
  140. give player diamond sword of sharpness 3
  141. give player bow of power 2
  142. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  143. if {pvpgear.%player%} is 14:
  144. equip player with diamond helmet of protection 1
  145. equip player with diamond chestplate of protection 1
  146. equip player with iron leggings of protection 1
  147. equip player with iron boots of protection 1
  148. give player diamond sword of sharpness 1 and knockback 1
  149. give player bow of power 1
  150. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  151. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  152. if {pvpgear.%player%} is 15:
  153. equip player with iron helmet
  154. equip player with iron chestplate
  155. equip player with iron leggings
  156. equip player with iron boots
  157. give player diamond sword
  158. give player bow of punch 2
  159. execute console command "/give %player% arrow %{pvparrow.%player%}%"
  160. execute console command "/give %player% 322 %{pvpgold.%player%}%"
  161. set {pvpwarp.%player%} to a random integer between 1 and 10
  162. wait 0.1 seconds
  163. execute console command "/warp pvp%{pvpwarp.%player%}% %player%"
  164. if {pvppot.%player%} is 17:
  165. give 1 unextended health potion II item to the player
  166. give 1 unextended health potion II item to the player
  167. give 1 unextended health potion II item to the player
  168. if {pvppot.%player%} is 42:
  169. give 1 unextended strength potion I item to the player
  170. give 1 unextended strength potion I item to the player
  171. give 1 unextended strength potion I item to the player
  172. if {pvpchest.%player%} is 5:
  173. enchant the player's chestplate with protection 3
  174. message "&7&l[&9Favonius&7&l]&e /longshot !"
  175. command /autopvp <text>:
  176. usage: /autopvp <on:off>
  177. trigger:
  178. if arg 1 is "on":
  179. set {AutoPVP.%player%} to true
  180. message "&7&l[&9Favonius&7&l]&r&e AutoPVP on!" to the player
  181. if arg 1 is "off":
  182. set {AutoPVP.%player%} to false
  183. message "&7&l[&9Favonius&7&l]&r&e AutoPVP off!" to the player
  184.  
  185.  
  186. on projectile hit:
  187. {PVPArena} is true
  188. delete the arrow
  189.  
  190.  
  191. command /arenaleave:
  192. usage: /arenaleave
  193. trigger:
  194. execute console command "/spawn %player%"
  195. execute console command "/ci %player%"
  196. execute console command "/scoreboard teams leave %player%"
  197. heal the player
  198. player is op:
  199. execute console command "/scoreboard teams join UHC15 %player%"
  200.  
  201.  
  202. command /longshot:
  203. trigger:
  204. message "&7&l[&9Favonius&7&l]&e Your longest shot is &3%{BestLongshot.%player%}%&e blocks!" to the player
  205.  
  206.  
  207. on login:
  208. if {BestLongshot.%player%} is not set:
  209. set {BestLongshot.%player%} to 0
  210. if {kills.%player%} is not set:
  211. set {kills.%player%} to 0
  212. if {deaths.%player%} is not set:
  213. set {deaths.%player%} to 0
  214. if {bestkillstreak.%player%} is not set:
  215. set {killstreak.%player%} to 0
  216. if {bestkillstreak.%player%} is not set:
  217. set {bestkillstreak.%player%} to 0
  218.  
  219. on death of player:
  220. {PvPArena} is true
  221. player is in world "arena":
  222. set {pvpgold.%attacker%} to a random integer between 1 and 3
  223. execute console command "/give %attacker% 322 %{pvpgold.%attacker%}%"
  224. {PvPArena} is true
  225. player is in world "arena":
  226. set {pvparrow.%attacker%} to a random integer between 5 and 20
  227. execute console command "/give %attacker% arrow %{pvparrow.%attacker%}%"
  228.  
  229. wait 0.5 seconds
  230. message "&a&lYou killed %victim%!" to the attacker
  231. message "&c&lYou were killed by %attacker%!" to the victim
  232.  
  233. on player respawning:
  234. wait 1 second
  235. {PVPArena} is true
  236. {AutoPVP.%player%} is true
  237. make player execute command "/arena"
  238.  
  239. on damage of player:
  240. {PVPArena} is true
  241. damage was caused by projectile:
  242. set {_loc.%attacker%} to the location at the attacker
  243. set {_loc.%victim%} to the location at the victim
  244.  
  245. set {LastShotDistance.%attacker%} to a round distance between {_loc.%attacker%} and {_loc.%victim%}
  246.  
  247. if {LastShotDistance.%attacker%} is greater than 50:
  248. broadcast "&7&l[&r&9Favonius&7&l]&r &c&l%attacker% &r&egot a longshot of &3&l%{LastShotDistance.%attacker%}%&e blocks!"
  249.  
  250. {LastShotDistance.%attacker%} is greater than {BestLongshot.%attacker%}:
  251. set {BestLongshot.%attacker%} to {LastShotDistance.%attacker%}
  252.  
  253.  
  254. on drop:
  255. {PVPArena} is true:
  256. player is in "arena" or "FleftSpawn":
  257. player is not op
  258. cancel the event
  259.  
  260.  
  261. on death:
  262. {PVPArena} is true
  263. victim is player
  264. add 1 to {killstreak.%attacker%}
  265. add 1 to {kills.%attacker%}
  266. add 1 to {deaths.%victim%}
  267. if {killstreak.%attacker%} is less than 5:
  268. message "&7&l[&9Favonius&7&l]&e You are on a &3%{killstreak.%attacker%}%&e killstreak!" to the attacker
  269. wait 0.1 second
  270. if {killstreak.%attacker%} is greater than 4:
  271. broadcast "&7&l[&9Favonius&7&l]&e %attacker% is on a &3%{killstreak.%attacker%}%&e killstreak!"
  272. if {killstreak.%victim%} is greater than 4:
  273. broadcast "&7&l[&9Favonius&7&l]&e %victim% was shut down by &3%attacker%!"
  274. if {killstreak.%attacker%} is greater than {bestkillstreak.%player%}:
  275. set {bestkillstreak.%player%} to {killstreak.%attacker%}
  276.  
  277.  
  278. command /stats:
  279. trigger:
  280. message "&a&l------------------------------" to the player
  281. message "&c&lKills:&r %{kills.%player%}%" to the player
  282. message "&7&lDeaths:&r %{deaths.%player%}%" to the player
  283. message "&6&lKDR:&R %{kills.%player%}%/%{deaths.%player%}%" to the player
  284. message "&3&lLongshot:&R %{BestLongshot.%player%}%" to the player
  285. message "&9&lKillstreak:&r %{bestkillstreak.%player%}%" to the player
  286. message "&a&l------------------------------" to the player
  287.  
  288. on death:
  289. {PVPArena} is true
  290. wait 0.5 seconds
  291. set {killstreak.%victim%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement