ArtzifyHD

Warzone Skript

Jul 20th, 2017
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.40 KB | None | 0 0
  1. #====================================#
  2. # Warzone Note #
  3. #====================================#
  4. #Please only reconfigure the messages, if you modify the code
  5. #and it doesnt work, then please redowload the skript again
  6. #from Spigotmc.org
  7. #Configuration comming soon!
  8. #
  9. #Thx Cardos
  10. variables:
  11. {pvp.%player%.killstreak} = 0
  12. {pvp.%player%.kills} = 0
  13. {pvp.%player%.deaths} = 0
  14. options:
  15. prefix: &e&lWarzone &8>&f
  16. #====================================#
  17. # Player Messages #
  18. #====================================#
  19. helpplayer: &e&lPlayer Commands
  20. nopermission: &fYou dont have permission.
  21. helpforhelp: &ffor help type &b/warzone help
  22. warzonejoin: &e/Warzone &8- &fJoin
  23. warzoneleave: &e/Warzone &8- &fLeave
  24. warzonehelpstats: &e/Warzone &8- &fStats
  25. warzonestats: &e&lWarzone Stats
  26. warzoneleavecommand: &fYou have left the arena!
  27. warzonestatskills: &fKills&8: &b%{pvp.%player%.kills}%
  28. warzonestatsdeaths: &fDeaths&8: &b%{pvp.%player%.deaths}%
  29. header: &8&m-----------------------------
  30. footer: &8&m-----------------------------
  31. #====================================#
  32. # Admin Messages #
  33. #====================================#
  34. helpadmin: &e&lAdmin commands
  35. contactadmin: &fContact an Administrator because the arena is not setup
  36. adminhelp: For Admin Help Type &b/warzoneadmin help
  37. warzoneasetspawn: &e/warzoneadmin &8- &fsetspawn
  38. warzoneasetleave: &e/warzoneadmin &8- &fsetleave
  39. warzoneaspawnset: &fSpawn set
  40. warzoneaspawnleave: &fLeave set
  41. #====================================#
  42. # Scoreboard Messages #
  43. #====================================#
  44. warzonescoreboardtitle: &e&lWarzone
  45. warzonescoreboardkills: &fKills&8: &b%{kill counter.%player%.kills_total}%
  46. warzonescoreboarddeaths: &fDeaths&8: &b%{death counter.%player%.kills_total}%
  47. warzonescoreboardfooter: &8&m------------
  48. #============================================================================================================#
  49. # Please Do Not modify the skript bellow this section, because changes made may not work #
  50. #============================================================================================================#
  51. command /warzoneadmin <text>:
  52. description: Sets the spawn point
  53. permission: warzone.Player
  54. trigger:
  55. if arg 1 is "help":
  56. message "{@header}"
  57. message "{@helpadmin}"
  58. message "{@header}"
  59. message "{@warzoneasetspawn}"
  60. message "{@warzoneasetleave}"
  61. message "{@header}"
  62. if arg 1 is "setspawn":
  63. if player has permission "warzone.setspawn":
  64. set variable {pvp.warp} to location of player
  65. message "{@prefix} {@warzoneaspawnset}"
  66. stop
  67. else:
  68. message "{@prefix} {@nopermission}"
  69. stop
  70. if arg 1 is "setleave":
  71. player has permission "warzone.setleave":
  72. message "{@prefix} {@warzoneaspawnleave}"
  73. set {pvp.leave} to location of player
  74. if {pvp.warp} is not set:
  75. message "{@prefix} {@contactadmin}"
  76. if arg 1 is not "SetLeave" or "setwarp" or "Help":
  77. message "{@prefix} {@adminhelp}"
  78. command /Warzone <text>:
  79. description: sets the spawn point
  80. permission: warzone.Player
  81. trigger:
  82. if arg 1 is "help":
  83. message "{@header}"
  84. message "{@helpplayer}"
  85. message "{@header}"
  86. message "{@warzonejoin}"
  87. message "{@warzoneleave}"
  88. message "{@warzonehelpstats}"
  89. message "{@footer}"
  90. if arg 1 is "Stats":
  91. message "{@header}"
  92. message "{@warzonestats}"
  93. message "{@footer}"
  94. message "{@warzonestatskills}"
  95. message "{@warzonestatsdeaths}"
  96. message "{@footer}"
  97. if argument 1 is "Join":
  98. if {warzone.players::%player%} is true:
  99. send "{@prefix} &fYou are already in the game"
  100. stop
  101. set {warzone.players::%player%} to true
  102. send "{@prefix}&f Teleporting To Warzone In 5..."
  103. wait 1 second
  104. send "{@prefix}&f Teleporting To Warzone In 4..."
  105. wait 1 second
  106. send "{@prefix}&f Teleporting To Warzone In 3..."
  107. wait 1 second
  108. send "{@prefix}&f Teleporting To Warzone In 2..."
  109. wait 1 second
  110. send "{@prefix}&f Teleporting To Warzone In 1..."
  111. wait 1 second
  112. broadcast "{@prefix} &b%player%&f joined The Warzone"
  113. teleport player to {pvp.warp}
  114. open chest with 1 rows named "&8&lSelect Kit" to player
  115. format slot 0 of player with diamond sword named "&8> &e&lKnight" to close then run [make player execute command "warzonekit Knight"]
  116. format slot 1 of player with bow named "&8> &e&lSniper" to close then run [make player execute command "Warzonekit Sniper"]
  117. format slot 2 of player with blaze powder named "&8> &e&lSummoner" to close then run [make player execute command "Warzonekit summoner"]
  118. format slot 3 of player with iron axe named "&8> &e&lThor" to close then run [make player execute command "Warzonekit Thor"]
  119. format slot 4 of player with ender pearl named "&8> &e&lSurvivalist" to close then run [make player execute command "Warzonekit Survivalist"]
  120. format slot 5 of player with fire charge named "&8> &e&lDestruction" to close then run [make player execute command "Warzonekit Destruction"]
  121. format slot 8 of player with redstone named "&8> &e&lClose Menu" to close then run [make player execute command "Warzone leave"]
  122. make player execute command "/warzonesidebar on"
  123. else if arg 1 is "leave":
  124. if {warzone.players::%player%} is not set:
  125. send "{@prefix} &fYou are not in the game"
  126. stop
  127. delete {warzone.players::%player%}
  128. size of {warzone.players::*} is 0
  129. broadcast "{@prefix} &fWarzone ended"
  130. loop {warzone.rollback::*}:
  131. if loop-value is a location:
  132. set {_loc} to loop-value
  133. else:
  134. set {_block} to loop-value
  135. set block at {_loc} to loop-value
  136. delete {warzone.rollback::*}
  137. clear the player's inventory
  138. teleport player to {pvp.leave}
  139. broadcast "{@prefix} &b%player%&f Left The Warzone"
  140. if arg 1 is not "Leave" or "Stats" or "Join" or "Help":
  141. message "{@prefix} {@helpforhelp}"
  142. on damage:
  143. apply swiftness 2 to the attacker for 3 seconds
  144. on death of player:
  145. broadcast "&b%attacker% &fKilled &b%victim%"
  146. on death:
  147. clear the player's inventory
  148. attacker is a player
  149. add 1 to {kill counter.%attacker%.kills_total}
  150. on death:
  151. clear the player's inventory
  152. victim is a player
  153. add 1 to {death counter.%victim%.kills_total}
  154. on rightclick holding a iron sword:
  155. heal the player by 2 hearts
  156. wait 10 seconds
  157. message "{@prefix} &fYou can Only Do This Every &b10 Seconds&7"
  158. on command "warzone join":
  159. player's gamemode is survival
  160. on death of player:
  161. make player execute command "/warzonesiderbar on"
  162. clear drops
  163. on death of player:
  164. set {pvp.%victim%.killstreak} to 0
  165. add 1 to {pvp.%victim%.deaths}
  166. set death message to ""
  167. clear drops
  168. on rightclick:
  169. player is holding a stick
  170. make the player shoot a arrow at speed 3
  171. wait 10 seconds
  172. message "{@prefix} &fYou can Only Do This Every &b10 Seconds&7"
  173. on rightclick:
  174. player is holding a blaze rod
  175. make the player shoot a fireball at speed 2
  176. wait 10 seconds
  177. message "{@prefix} &fYou can Only Do This Every &b10 Seconds&7"
  178. on rightclick holding a mushroom stew:
  179. heal the player
  180. on rightclick holding a diamond sword:
  181. push the player in the direction of the player at speed -1
  182. wait 10 seconds
  183. message "{@prefix} &fYou can Only Do This Every &b10 Seconds&7"
  184. on rightclick holding a iron axe:
  185. strike lightning 10 infront of the player
  186. wait 10 seconds
  187. message "{@prefix} &fYou can Only Do This Every &b10 Seconds&7"
  188. #====================================#
  189. # Warzone kits #
  190. #====================================#
  191. Command /warzonekit <text>:
  192. usage: &e&lWarzonekit &8> &fType &b/warzonekit Help &ffor help
  193. trigger:
  194. if arg 1 is "Knight":
  195. clear the player's inventory
  196. message "&8&m------------------------------------"
  197. message " &e&lKnight Kit&8:"
  198. message " &7The Most Fierce of Them All"
  199. message ""
  200. message " &e&lAbilities&8:"
  201. message "&8- &fStrafe Back! &8(&7RightClick With Sword&8)"
  202. message "&8&m------------------------------------"
  203. equip player with Leather Helmet of protection 2 and unbreaking 100
  204. equip player with Iron ChestPlate of protection 1
  205. equip player with Iron Leggings of protection 1
  206. equip player with Leather Boots of protection 2 and unbreaking 100
  207. dye player's helmet red
  208. dye player's boots red
  209. give a diamond sword of sharpness 2 to the player
  210. give 30 Soup to the player
  211. if arg 1 is "Sniper":
  212. clear the player's inventory
  213. message "&8&m------------------------------------"
  214. message " &e&lSniper Kit&8:"
  215. message " &7Be a sharp shooter! Win with ease!"
  216. message ""
  217. message " &e&lAbilities&8:"
  218. message "&8- &fComing Soon"
  219. message "&8&m------------------------------------"
  220. equip player with Chain Helmet of protection 2
  221. equip player with Iron ChestPlate of protection 2 and blast protection 2
  222. equip player with Chain Leggings of protection 2
  223. equip player with Leather Boots of protection 2 and unbreaking 100
  224. dye player's boots yellow
  225. give a iron sword of sharpness 1 to the player
  226. give a bow of punch 1 and power 3 and infinity 3 to the player
  227. give 1 arrow to the player
  228. give 29 Soup to the player
  229. if arg 1 is "Summoner":
  230. clear the player's inventory
  231. message "&8&m------------------------------------"
  232. message " &e&lSummoner Kit&8:"
  233. message " &7A bit fiery in my perspective"
  234. message ""
  235. message " &e&lAbilities&8:"
  236. message "&8- &fArrow Rapidfire &8(&7RightClick With Stick&8)"
  237. message "&8&m------------------------------------"
  238. equip player with Leather Helmet of protection 5 and unbreaking 100
  239. equip player with Leather ChestPlate of protection 5 and unbreaking 100
  240. equip player with Leather Leggings of protection 5 and unbreaking 100
  241. equip player with Leather Boots of protection 5 and unbreaking 100
  242. dye player's helmet white
  243. dye player's chestplate white
  244. dye player's leggings white
  245. dye player's boots blue
  246. give a stick of fire aspect 4 and sharpness 5 and knockback 1 to the player
  247. give 29 Soup to the player
  248. apply swiftness 2 to the player
  249. if arg 1 is "Thor":
  250. clear the player's inventory
  251. message "&8&m------------------------------------"
  252. message " &e&lThor Kit&8:"
  253. message " &7The Classic old Thor Kit"
  254. message ""
  255. message " &e&lAbilities&8:"
  256. message "&8- &fLightning Bolt &8(&7RightClick With Axe&8)"
  257. message "&8&m------------------------------------"
  258. equip player with Leather Helmet of protection 5 and unbreaking 100
  259. equip player with iron ChestPlate of protection 1 and
  260. equip player with Leather Leggings of protection 5 and unbreaking 100
  261. equip player with Leather Boots of protection 5 and unbreaking 100
  262. dye player's helmet orange
  263. dye player's leggings white
  264. dye player's boots blue
  265. give a iron axe of fire aspect 1 and sharpness 5 and knockback 1 to the player
  266. give 29 Soup to the player
  267. apply swiftness 2 to the player
  268. if arg 1 is "Survivalist":
  269. clear the player's inventory
  270. message "&8&m------------------------------------"
  271. message " &e&lSurvivalist Kit&8:"
  272. message " &7The Best Surviving Kit"
  273. message ""
  274. message " &e&lAbilities&8:"
  275. message "&8- &fHeal Timer &8(&7RightClick With Sword&8)"
  276. message "&8&m------------------------------------"
  277. equip player with Leather Helmet of protection 5 and unbreaking 100
  278. equip player with Leather ChestPlate of protection 5 and unbreaking 100
  279. equip player with Leather Leggings of protection 5 and unbreaking 100
  280. equip player with Leather Boots of protection 5 and unbreaking 100
  281. dye player's chestplate red
  282. dye player's helmet white
  283. dye player's leggings white
  284. dye player's boots white
  285. give a iron Sword of sharpness 5 and knockback 1 to the player
  286. give 29 Soup to the player
  287. apply swiftness 2 to the player
  288. if arg 1 is "Destruction":
  289. clear the player's inventory
  290. message "&8&m------------------------------------"
  291. message " &e&lDesctruction Kit&8:"
  292. message " &7Destroy Them all With Your Wand"
  293. message ""
  294. message " &e&lAbilities&8:"
  295. message "&8- &fFireball &8(&7RightClick With BlazeRod&8)"
  296. message "&8&m------------------------------------"
  297. equip player with Leather Helmet of protection 5 and unbreaking 100
  298. equip player with Leather ChestPlate of protection 5 and unbreaking 100 and fire protection 5
  299. equip player with Leather Leggings of protection 5 and unbreaking 100
  300. equip player with Leather Boots of protection 5 and unbreaking 100
  301. dye player's chestplate red
  302. dye player's helmet black
  303. dye player's leggings red
  304. dye player's boots red
  305. give a blaze rod of sharpness 7 and fire aspect 2 to the player
  306. give 29 Soup to the player
  307. apply swiftness 2 to the player
  308. #====================================#
  309. # Warzone Scoreboard #
  310. #====================================#
  311. command /warzonesidebar <text>:
  312. trigger:
  313. if arg is "on":
  314. display scoreboard named "{@warzonescoreboardtitle}" to player
  315. make score "&e" in board of player to 4
  316. make score "{@warzonescoreboardkills}" in board of player to 3
  317. make score "{@warzonescoreboarddeaths}" in board of player to 2
Advertisement
Add Comment
Please, Sign In to add comment