ArtzifyHD

Skript duels

Jul 28th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ############################################################
  2. # #
  3. # ForcePvP #
  4. # By Dubbly_ and ElZaidG #
  5. # #
  6. ############################################################
  7. #----------READ!--------#
  8. #This is not easy to config at all, we recommend to change just some things to avoid mistakes.
  9. #To work correctly, place a ForcePvP mode in differents world/servers.
  10. #To config respawns correctly, change the world names to your world names, What is this?
  11. #Example:
  12. # if world of player is "UHC": #<---Example world, change that world name to your world name.
  13. # make player execute command "/fp-oitc leave"
  14. # set {ingame.%player%} to false
  15. #
  16. #
  17. #
  18. #Skript version: 1.1
  19.  
  20.  
  21. options:
  22. logo: &6&lFrostPvP &7>>
  23. duels: &6&lDuels &7>>
  24.  
  25. on join:
  26. remove absorption from player
  27. remove regeneration from player
  28. set player's gamemode to adventure
  29. set slot 0 of player's inventory to paper named "&aSelect FP mode"
  30. set slot 1 of player's inventory to diamond sword named "&eDuel"
  31. set slot 2 of player's inventory to head named "&9%player%'s &6Stats"
  32.  
  33. on skript start:
  34. send "-----------------------------------" to console
  35. send "" to console
  36. send "ForcePvP skript by Dubbly_ and ElZaidG" to console
  37. send "&8Version: &41.1" to console
  38. send "" to console
  39. send "-----------------------------------" to console
  40.  
  41. variables:
  42. online.bu = 0
  43.  
  44. on quit:
  45. if world of player is "UHC": #<---Example world
  46. remove 1 from {online.bu}
  47. if world of player is "Normal":
  48. remove 1 from {online.FFA}
  49. if world of player is "KB":
  50. remove 1 from {online.SG}
  51. #-------Change this worlds to your worlds-------#
  52.  
  53. command /fp-join:
  54. permission: fp.player
  55. aliases: forcepvp , join , fpvp
  56. trigger:
  57. open chest with 1 rows named "&4&k::&9&lFrostPvP&4&k::" to player
  58. wait 3 ticks
  59. format slot 1 of player with lava bucket named "&4&lUHC OFFLINE" with lore "&e%{online.bu}% online players" to run [make player execute command "./fp-join-uhc"]
  60. format slot 0 of player with iron chestplate named "&a&lNormal" with lore "&e%{online.FFA}% online players" to run [make player execute command "/fp-join-normal"]
  61. format slot 2 of player with stick named "&a&lKnockback" with lore "&e%{online.SG}% online players" to run [make player execute command "/fp-join-kb"]
  62. format slot 7 of player with golden apple:1 named "&a&lOP &c&l(Coming Soon)" to close then run [send "{@logo} &6Gapple &cComing soon"]
  63. format slot 8 of player with potion named "&a&lNoDebuff &c&l(Coming soon)" to close then run [send "{@logo} &6Pot &cComing soon"]
  64.  
  65. command /fp-setspawn-duels:
  66. permission: fp.admin
  67. trigger:
  68. set {spawn.duels} to location of player
  69. send "{@logo} &aSpawn set!"
  70.  
  71. command /fp-setspawn-uhc:
  72. permission: fp.admin
  73. trigger:
  74. set {spawn.uhc} to location of player
  75. send "{@logo} &aSpawn set!"
  76.  
  77. command /fp-setspawn-normal:
  78. permission: fp.admin
  79. trigger:
  80. set {spawn.normal} to location of player
  81. send "{@logo} &aSpawn set!"
  82.  
  83. command /fp-setspawn-kb:
  84. permission: fp.admin
  85. trigger:
  86. set {spawn.kb} to location of player
  87. send "{@logo} &aSpawn set!"
  88.  
  89. command /fp [<text>] [<text>]:
  90. permission: fp.admin
  91. aliases: forcepvp , fpvp
  92. trigger:
  93. if arg-1 is not set:
  94. message "&8&l&m----------------&8[ &6&lForcePvP &8]&l&m----------------"
  95. message "&6/fp, /forcepvp&e - Help command"
  96. message "&6/fp-join-<mode>&e - Join to a specific mode"
  97. message "&6/fp-join&e - Open FP join menu"
  98. message "&6/fp-setspawn-<mode>&e - Set the FP spawn of a mode"
  99. message "&6/fp-setmainlobby&e - Set the main lobby"
  100. message "&6/fp-setleave&e - Set the leave spawn point"
  101. message "&6/fp-stats-<mode>&e - See your FP stats"
  102. message "&6/fp-duels&e - Duels help"
  103. message "&6/fp-help-spec&e - Spectator help"
  104. message "&6/fp-modes&e - See the FP modes"
  105. message "&6/leave, /salir &e- Leave commands"
  106. send "&8&l&m---------------------------------------------"
  107. if arg-1 is "remove":
  108. if player is op:
  109. set {spawn.prb} to location of player
  110. send "{@logo} &aSpawn set!"
  111. if arg-1 is "setserverip":
  112. if arg-2 is not set:
  113. if player has permission "fp.admin":
  114. send "&cPlease enter a server IP"
  115. if arg-2 is set:
  116. if player has permission "fp.admin":
  117. set {server.name} to "%colored arg-2%"
  118. send "&a&lSuccess!"
  119.  
  120. command /fp-join-normal:
  121. trigger:
  122. add 1 to {online.FFA}
  123. if has permission "fp.player":
  124. teleport player to {spawn.normal}
  125. set gamemode of player to survival
  126. clear player's inventory
  127. wait 3 tick
  128. set player's helmet to iron helmet
  129. set player's chestplate to iron chestplate
  130. set player's leggings to iron leggings
  131. set player's boots to iron boots
  132. give 1 iron sword to player
  133. give 1 bow to player
  134. give 1 fishing rod to player
  135. give 15 steak to player
  136. set slot 9 of player's inventory to 12 arrow
  137. else:
  138. teleport player to {spawn.normal}
  139. set gamemode of player to survival
  140. clear player's inventory
  141. wait 3 tick
  142. set player's helmet to iron helmet
  143. set player's chestplate to iron chestplate
  144. set player's leggings to iron leggings
  145. set player's boots to iron boots
  146. give 1 iron sword to player
  147. give 1 bow to player
  148. give 1 fishing rod to player
  149. give 15 steak to player
  150. set slot 9 of player's inventory to 12 arrow
  151.  
  152. command /fp-join-kb:
  153. trigger:
  154. add 1 to {online.SG}
  155. if has permission "fp.player":
  156. set gamemode of player to survival
  157. clear player's inventory
  158. wait 3 tick
  159. set player's leggings to leather leggings of protection 2
  160. give 1 stick of knockback 1 to player
  161. give 1 web to player
  162. teleport player to {spawn.kb}
  163. send "{@logo} &eYou have joined to &a&lForceKB!"
  164. send "{@logo} &cType /leave to leave."
  165. else:
  166. set gamemode of player to survival
  167. clear player's inventory
  168. wait 3 tick
  169. set player's leggings to leather leggings of protection 2
  170. give 1 stick of knockback 1 to player
  171. give 1 web to player
  172. teleport player to {spawn.kb}
  173. send "{@logo} &eYou have joined to &a&lFrostKB!"
  174. send "{@logo} &cType /leave to leave."
  175.  
  176. command /fp-join-uhc:
  177. trigger:
  178. add 1 to {online.bu}
  179. if has permission "fp.player":
  180. set gamemode of player to survival
  181. clear player's inventory
  182. wait 3 tick
  183. set player's helmet to iron helmet of protection 2
  184. set player's chestplate to iron chestplate of projectile protection 2
  185. set player's leggings to iron leggings of protection 2
  186. set player's boots to iron boots of projectile protection 2
  187. give 1 iron sword of sharpness 1 to player
  188. give 1 bow of power 1 , infinity 1 to player
  189. give 64 steak to player
  190. give 1 golden apple to player
  191. give 1 golden apple to player
  192. give 1 ender pearl to player
  193. set slot 9 of player's inventory to 1 arrow
  194. teleport player to {spawn.uhc}
  195. send "{@logo} &eYou have joined to &a&lFrostUHC!"
  196. send "{@logo} &cType /leave to leave."
  197. else:
  198. set gamemode of player to survival
  199. clear player's inventory
  200. wait 3 tick
  201. set player's helmet to iron helmet of protection 2
  202. set player's chestplate to iron chestplate of projectile protection 2
  203. set player's leggings to iron leggings of protection 2
  204. set player's boots to iron boots of projectile protection 2
  205. give 1 iron sword of sharpness 1 to player
  206. give 1 bow of power 1 , infinity 1 to player
  207. give 64 steak to player
  208. give 1 golden apple to player
  209. give 1 golden apple to player
  210. give 1 ender pearl to player
  211. set slot 9 of player's inventory to 1 arrow
  212. teleport player to {spawn.uhc}
  213. send "{@logo} &eYou have joined to &a&lFrostUHC!"
  214. send "{@logo} &cType /leave to leave."
  215.  
  216. command /fp-setleave:
  217. permission: fp.admin
  218. trigger:
  219. set {spawn.leave} to location of player
  220. send "{@logo} &aSuccessfully set spawn &cLEAVE"
  221.  
  222. command /fp-leave:
  223. aliases: exit , hub , leave , quit
  224. trigger:
  225. teleport player to {spawn.leave}
  226. send "{@logo} &aYou have left!"
  227. set gamemode of player to survival
  228. clear player's inventory
  229. remove absorption from player
  230. remove regeneration from player
  231. heal player
  232.  
  233. command /fp-modes:
  234. permission: fp.admin
  235. trigger:
  236. send "&a&lModes:"
  237. send "&6normal"
  238. send "&6uhc"
  239. send "&6kb"
  240. send "&6duels"
  241.  
  242. on eat of golden apple:
  243. if item is golden apple named "&6Golden Head":
  244. apply absorption 1 to the player for 105 seconds
  245. apply regeneration 2 to the player for 10 seconds
  246. remove 1 golden apple named "&6Golden Head" from the player's tool
  247.  
  248. on death of player:
  249. clear drops
  250.  
  251. on respawn:
  252. if world of player is "UHC": #<-- Change this world name to your UHC world name
  253. if has permission "fp.player":
  254. set gamemode of player to survival
  255. clear player's inventory
  256. wait 3 tick
  257. set player's helmet to iron helmet of protection 2
  258. set player's chestplate to iron chestplate of protection 2
  259. set player's leggings to iron leggings of protection 2
  260. set player's boots to iron boots of projectile protection 2
  261. give 1 iron sword of sharpness 1 to player
  262. give 1 bow of power 1 , infinity 1 to player
  263. give 64 steak to player
  264. give 1 golden apple to player
  265. give 1 golden apple to player
  266. give 1 ender pearl to player
  267. set slot 9 of player's inventory to 1 arrow
  268. teleport player to {spawn.uhc}
  269. else:
  270. set gamemode of player to survival
  271. clear player's inventory
  272. wait 3 tick
  273. set player's helmet to iron helmet of protection 2
  274. set player's chestplate to iron chestplate of protection 2
  275. set player's leggings to iron leggings of protection 2
  276. set player's boots to iron boots of projectile protection 2
  277. give 1 iron sword of sharpness 1 to player
  278. give 1 bow of power 1 , infinity 1 to player
  279. give 64 steak to player
  280. give 1 golden apple to player
  281. give 1 golden apple to player
  282. give 1 ender pearl to player
  283. set slot 9 of player's inventory to 1 arrow
  284. teleport player to {spawn.uhc}
  285.  
  286. on respawn:
  287. if world of player is "world": #<-- Change this world name to your Normal world name
  288. if has permission "fp.player":
  289. set gamemode of player to adventure
  290. clear player's inventory
  291. wait 3 tick
  292. set slot 10 of player's inventory to ender portal frame named "&aKits"
  293. set slot 11 of player's inventory to head named "&9Stats"
  294. teleport player to {spawn.normal}
  295. else:
  296. set gamemode of player to adventure
  297. clear player's inventory
  298. wait 3 tick
  299. set slot 10 of player's inventory to ender portal frame named "&aKits"
  300. set slot 11 of player's inventory to head named "&9Stats"
  301. teleport player to {spawn.normal}
  302.  
  303. on inventory click:
  304. if world of player is "FFAUHC":
  305. if player has permission "fp.admin":
  306. else:
  307. cancel event
  308.  
  309. on place web:
  310. if world of player is "world": #<-- Change this world name to your KB world name
  311. wait 5 seconds
  312. set event-block to air
  313. stop
  314.  
  315. on drop:
  316. cancel event
  317.  
  318. #---------Stats---------#
  319.  
  320. command /fp-stats:
  321. permission: fp.player
  322. aliases: glostats , fpstats
  323. trigger:
  324. send ""
  325. send "&8-----&6&lFrostPvP&8-----"
  326. send ""
  327. send "&5Kills: &a%{totalkills.%player%}%"
  328. send "&5Deaths: &a%{totaldeaths.%player%}%"
  329. send ""
  330. send "&8---&6&lStats&8---"
  331. send ""
  332.  
  333. command /fp-stats-normal:
  334. permission: fp.player
  335. aliases: normalstats , fpnormalstats , fpnorstats , norstats
  336. trigger:
  337. send ""
  338. send "&8-----&6&lFrostFFA&8-----"
  339. send ""
  340. send "&5Kills: &a%{killsFFA.%player%}%"
  341. send "&5Deaths: &a%{deathsFFA.%player%}%"
  342. send ""
  343. send "&8---&6&lStats&8---"
  344. send ""
  345.  
  346. command /fp-stats-kb:
  347. permission: fp.player
  348. aliases: kbstats , fpkbstats
  349. trigger:
  350. send ""
  351. send "&8-------&6&lFrostKB&8-------"
  352. send ""
  353. send "&5Kills: &a%{killsSG.%player%}%"
  354. send "&5Deaths: &a%{deathsSG.%player%}%"
  355. send ""
  356. send "&8---&6&lStats&8---"
  357. send ""
  358.  
  359. command /fp-stats-uhc:
  360. permission: fp.player
  361. aliases: uhcstats , fpuhcstats
  362. trigger:
  363. send ""
  364. send "&8-----&6&lFrostUHC&8-----"
  365. send ""
  366. send "&5Kills: &a%{killsbu.%player%}%"
  367. send "&5Deaths: &a%{deathsbu.%player%}%"
  368. send ""
  369. send "&8---&6&lStats&8---"
  370. send ""
  371.  
  372. #---------Signs----------#
  373.  
  374. on sign change:
  375. if has permission "fp.admim":
  376. if line 1 is "[frostpvp]":
  377. if line 2 is "join":
  378. set line 1 to "&8[&9&lFrostPvP&8]"
  379. set line 2 to "&6Join"
  380. if line 2 is "leave":
  381. set line 1 to "&8[&9&lFrostPvP&8]"
  382. set line 2 to "&6Leave"
  383. if line 2 is "stats":
  384. set line 1 to "&8[&9&lFrostPvP&8]"
  385. set line 2 to "&6Stats"
  386. on click on sign:
  387. if line 1 is "&8[&9&lFrostPvP&8]":
  388. if line 2 is "&6Join":
  389. make player execute "/fp-join"
  390. if line 2 is "&6Leave":
  391. make player execute "/fp-leave"
  392. if line 2 is "&6Stats":
  393. make player execute "/fp-stats"
  394.  
  395. #----------Menu----------#
  396.  
  397. on rightclick:
  398. if player's tool is paper named "&aSelect FP mode":
  399. open chest with 1 rows named "&aFP modes" to player
  400. wait 3 ticks
  401. format slot 1 of player with lava bucket named "&4&lUHC COMING SOON" with lore "&e%{online.bu}% online players" to run [make player execute command "./fp-join-uhc"]
  402. format slot 0 of player with iron chestplate named "&a&lNormal" with lore "&e%{online.FFA}% online players" to run [make player execute command "/fp-join-normal"]
  403. format slot 2 of player with stick named "&a&lKnockback" with lore "&e%{online.SG}% online players" to run [make player execute command "/fp-join-kb"]
  404. format slot 7 of player with golden apple:1 named "&a&lOP &c&l(Coming Soon)" to close then run [send "{@logo} &6Gapple &cComing soon"]
  405. format slot 8 of player with potion named "&a&lNoDebuff &c&l(Coming soon)" to close then run [send "{@logo} &6Pot &cComing soon"]
  406.  
  407. on rightclick:
  408. if player's tool is head named "&9%player%'s &6Stats":
  409. cancel event
  410. open chest with 3 rows named "&aStats" to player
  411. wait 2 ticks
  412. format slot 4 of player with lava bucket named "&a&lUHC" with lore "&5Kills: &a%{killsbu.%player%}%||&5Deaths: &a%{deathsbu.%player%}%" to close then run [make player execute command "./fp-stats-uhc"]
  413. format slot 1 of player with iron chestplate named "&a&lNormal" with lore "&5Kills: &a%{killsFFA.%player%}%||&5Deaths: &a%{deathsFFA.%player%}%" to close then run [make player execute command "/fp-stats-normal"]
  414. format slot 7 of player with stick named "&a&lKnockback" with lore "&5Kills: &a%{killsSG.%player%}%||&5Deaths: &a%{deathsSG.%player%}%" to close then run [make player execute command "/fp-stats-kb"]
  415. format slot 22 of player with nether star named "&a&lGlobal" with lore "&5Kills: &a%{totalkills.%player%}%||&5Deaths: &a%{totaldeaths.%player%}%" to close then run [make player execute command "/fp-stats-global"]
  416.  
  417. on rightclick:
  418. if player's tool is diamond sword named "&eDuel":
  419. open chest with 3 rows named "&aDuels" to player
  420. wait 2 ticks
  421. format slot 4 of player with duel named "&a&lDuels" with lore "&9Join to duels" to close then run [make player execute command "/duel"]
  422.  
  423. #----------Drops---------#
  424.  
  425. on death of player:
  426. clear drops
  427. drop golden apple at location of victim
  428.  
  429. #---------Lobby---------#
  430.  
  431. command /fp-setmainlobby:
  432. permission: fp.admin
  433. trigger:
  434. set {lobby.fp} to location of player
  435. send "{@logo} &aLobby set!"
  436.  
  437. command /fpjoinlobby:
  438. permission: fp.player
  439. aliases: fp-lobby , fplobby
  440. trigger:
  441. teleport player to {lobby.fp}
  442. set slot 0 of player's inventory to paper named "&aSelect FP mode"
  443. set slot 1 of player's inventory to diamond sword named "&eDuel"
  444. set slot 2 of player's inventory to head named "&9%player%'s &6Stats"
  445.  
  446. #------------------------------Thanks for downloading------------------------------#
Add Comment
Please, Sign In to add comment