Randall123459

OpenPvP Arena Skript

Feb 12th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.72 KB | None | 0 0
  1. options:
  2. p: &7[&b&lIronyUHC&7]
  3.  
  4. command /pvparena <text>:
  5. usage: /pvparena <enable:disable:toggle>
  6. permission: skript.op
  7. trigger:
  8. if arg 1 is "enable":
  9. set {pvparena} to true
  10. message "&cPVPArena Enabled!"
  11. execute console command "/feature toggle DeathLightning"
  12. execute console command "/feature toggle PlayerHeads"
  13. execute console command "/killboard"
  14. if arg 1 is "disable":
  15. set {pvparena} to false
  16. message "&cPVPArena Disabled!"
  17. execute console command "/feature toggle DeathLightning"
  18. execute console command "/feature toggle PlayerHeads"
  19. execute console command "/killboardoff"
  20. if arg 1 is "toggle":
  21. if {pvparena} is false:
  22. set {pvparena} to true
  23. message "&cPVPArena Enabled!"
  24. if {pvparena} is true:
  25. set {pvparena} to false
  26. message "&cPVPArena Disabled!"
  27.  
  28. command /p:
  29. trigger:
  30. if {pvparena} is true:
  31. send "{@p} &eYou entered PvP!" to the player
  32. heal the player
  33. clear inventory of player
  34. execute console command "warp arena%random integer between 1 and 20% %player%"
  35. give player iron sword
  36. give player bow
  37. give player 32 arrows
  38. give player golden apple
  39. give player ender pearl
  40. set the chestplate of player to a iron chestplate
  41. set the leggings of player to iron leggings
  42. set the boots of player to iron boots
  43. set the helmet of player to a iron helmet
  44.  
  45. on command "/p":
  46. player is in world "PVPArena"
  47. cancel the event
  48.  
  49. on command "/p":
  50. if {pvparena} is false:
  51. cancel the event
  52.  
  53. on damage:
  54. damage was caused by fall
  55. victim is a player
  56. victim is in the world "PVPArena"
  57. cancel the event
  58.  
  59. on death:
  60. if {pvparena} is true:
  61. victim is a player
  62. attacker is a player
  63. chance of 100%
  64. give attacker golden apple
  65.  
  66. on death:
  67. if {pvparena} is true:
  68. clear inventory of player
  69.  
  70. on death:
  71. if {pvparena} is true:
  72. execute console command "/scoreboard players reset %player%"
  73.  
  74. on death:
  75. if {pvparena} is true:
  76. set the death message to ""
  77.  
  78. on death:
  79. if {pvparena} is true:
  80. attacker is a player
  81. victim is a player
  82. send "{@p} &eYou killed &b&l%victim%!" to the attacker
  83. send "{@p} &eYou were killed by &b&l%attacker%!" to the victim
  84.  
  85. on death:
  86. if {pvparena} is true:
  87. victim is a player
  88. attacker is a player
  89. chance of 100%
  90. give attacker 25 arrows
  91.  
  92. on hunger meter change:
  93. if {pvparena} is true:
  94. set player's hunger meter to 10
  95.  
  96. on death:
  97. if {pvparena} is true:
  98. attacker is a player
  99. if damage was caused by projectile:
  100. loop items in attacker's inventory:
  101. if loop-item is a bow of power 0:
  102. enchant loop-item with power 1
  103. send "{@p} &bYour bow has upgraded to power 1!" to the attacker
  104. else if loop-item is a bow of power 1:
  105. enchant loop-item with power 2
  106. send "{@p} &bYour bow has upgraded to power 2!" to the attacker
  107. else if loop-item is a bow of power 2:
  108. enchant loop-item with power 3
  109. send "{@p} &bYour bow has upgraded to power 3!" to the attacker
  110. else if loop-item is a bow of power 3:
  111. enchant loop-item with power 4
  112. send "{@p} &bYour bow has upgraded to power 4!" to the attacker
  113. else if loop-item is a bow of power 4:
  114. enchant loop-item with power 5
  115. send "{@p} &bYour bow has upgraded to power 5!" to the attacker
  116. else if loop-item is a bow of power 5:
  117. send "{@p} &bYour bow is maxed out!" to the attacker
  118. else if damage was caused by attack:
  119. loop items in attacker's inventory:
  120. if loop-item is a sword of sharpness 0:
  121. enchant loop-item with sharpness 1
  122. send "{@p} &bYour sword has upgraded to sharpness 1!" to the attacker
  123. else if loop-item is a sword of sharpness 1:
  124. enchant loop-item with sharpness 2
  125. send "{@p} &bYour sword has upgraded to sharpness 2!" to the attacker
  126. else if loop-item is a sword of sharpness 2:
  127. enchant loop-item with sharpness 3
  128. send "{@p} &bYour sword has upgraded to sharpness 3!" to the attacker
  129. else if loop-item is a sword of sharpness 3:
  130. enchant loop-item with sharpness 4
  131. send "{@p} &bYour sword has upgraded to sharpness 4!" to the attacker
  132. else if loop-item is a sword of sharpness 4:
  133. enchant loop-item with sharpness 5
  134. send "{@p} &bYour sword has upgraded to sharpness 5!" to the attacker
  135. else if loop-item is a sword of sharpness 5:
  136. send "{@p} &bYour sword is maxed out!" to the attacker
  137. else if loop-item is a sword of sharpness 2:
  138. spawn an unique "horse" horse colored "chestnut" with patterns of "whitefield" at player
  139. make player ride last spawned unique horse
  140. send "{@p} &bYou have been given a horse!" to the attacker
  141. else if loop-item is a sword of sharpness 3:
  142. equip last spawned unique horse with Diamond Horse Armor
Advertisement
Add Comment
Please, Sign In to add comment