Advertisement
Guest User

Pvp

a guest
Aug 16th, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.59 KB | None | 0 0
  1. options:
  2. prefix: &6[&cHydra&4Box&6]
  3. on join:
  4. make console execute "/clear %player%"
  5. give 1 chest named "&cHydraKits" to the player
  6. set slot 8 of player to a emerald named "&bBoutique &7(Clic droit)"
  7. wait 5 seconds
  8. send "{@prefix} &bToutes les semaines un kit payant devient gratuit pendant une semaines !"
  9. send "{@prefix} &6le Kit gratuit cette semaines &a: %{semaines.kit}%"
  10. on right click with chest:
  11. if name of tool is "&cHydraKits":
  12. cancel event
  13. make player execute "/hydrabox menu"
  14.  
  15. on right click with emerald:
  16. if name of tool is "&bBoutique &7(Clic droit)":
  17. cancel event
  18. make player execute "/hydramoney menu"
  19.  
  20. command /hydrabox <text=menu> [<text>]:
  21. trigger:
  22. if arg 1 is "menu":
  23. open chest with 6 row named "{@prefix}" to player
  24. wait 4 tick
  25. format slot 0 of player with stick named "&CPvp" with lore "&aKit de Base" to close then run [make player execute "/hydrabox kit pvp"]
  26. format slot 1 of player with diamond named "&1Poseidon" with lore "&aQuand tu nage dans l'eau tu a force et speed II ! " to close then run [make player execute "/hydrabox kit poseidon"]
  27. format slot 2 of player with snowball named "&8Switcher" with lore "%{lore.%player%.Switcher}% " to close then run [make player execute "/hydrabox kit Switcher"]
  28. format slot 3 of player with Cobweb named "&8Spiderman" with lore "%{lore.%player%.spiderman}% " to close then run [make player execute "/hydrabox kit spiderman"]
  29. format slot 4 of player with spider eye named "&cViper" with lore "%{lore.%player%.viper}%" to close then run [make player execute "/hydrabox kit viper"]
  30. format slot 5 of player with iron axe named "&6Berserker" with lore "&aKit pour le moment Inutile .. " to close then run [make player execute "/hydrabox kit berserker"]
  31. format slot 6 of player with redstone named "&6Vampire" with lore "%{lore.%player%.vampire}% " to close then run [make player execute "/hydrabox kit Vampire"]
  32. format slot 7 of player with iron boots named "&cStomper" with lore "&aQuand tu saute sur tes enemi il prenne des degats ! " to close then run [make player execute "/hydrabox kit stomper"]
  33. format slot 8 of player with feather named "&8Iron-Man" with lore "%{lore.%player%.IronMan}%" to close then run [make player execute "/hydrabox kit IronMan"]
  34. format slot 9 of player with stone axe named "&6Thor" with lore "%{lore.%player%.Thor}%" to close then run [make player execute "/hydrabox kit Thor"]
  35. format slot 10 of player with bow named "&bArcher" with lore "%{lore.%player%.Archer}%" to close then run [make player execute "/hydrabox kit Archer"]
  36. format slot 11 of player with potion:16450 named "&eScoot" with lore "%{lore.%player%.scoot}%" to close then run [make player execute "/hydrabox kit scoot"]
  37. format slot 12 of player with bars named "&8Gladiator" with lore "%{lore.%player%.gladiator}%" to close then run [make player execute "/hydrabox kit Gladiator"]
  38. format slot 13 of player with blaze rod named "&7Monk" with lore "%{lore.%player%.monk}%" to close then run [make player execute "/hydrabox kit Monk"]
  39. format slot 14 of player with fire charge named "&cGhastMan" with lore "%{lore.%player%.ghastman}%" to close then run [make player execute "/hydrabox kit GhastMan"]
  40. format slot 15 of player with diamond hoe named "&cFossoyeur" with lore "%{lore.%player%.Fossoyeur}%" to close then run [make player execute "/hydrabox kit Fossoyeur"]
  41. format slot 16 of player with Tnt named "&cExplode" with lore "%{lore.%player%.explode}%" to close then run [make player execute "/hydrabox kit Explode"]
  42. format slot 17 of player with leather chestplate named "&cPaladin" with lore "%{lore.%player%.paladin}%" to close then run [make player execute "/hydrabox kit paladin"]
  43. format slot 18 of player with iron ingot named "&6P&4G&2M" with lore "%{lore.%player%.pgm}%" to close then run [make player execute "/hydrabox kit pgm"]
  44. format slot 19 of player with bone named "&aDresseur" with lore "%{lore.%player%.Dresseur}%" to close then run [make player execute "/hydrabox kit Dresseur"]
  45. format slot 39 of player with stick named "&8D&lernier Kit sélectionné:" with lore "&c&l%{kitprix.%player%}%" to be unstealable
  46. format slot 40 of player with player's skull named "&a&lStats" with lore "&c&lKill: %{killj.%player%}% ||&4&lMort: %{mortj.%player%}% ||&b&lGrade: %{grade.%player%}% " to be unstealable
  47.  
  48.  
  49.  
  50.  
  51. if arg 1 is "setspawn":
  52. if player has permission "Hydrabox.admin.*":
  53. send "{@prefix} Spawn Defini !"
  54. set {hydraspawnbox} to location of player
  55.  
  56. if arg 1 is "semaines":
  57. if player have permission "ops.kit":
  58. set {semaines.kit} to "%arg 2%"
  59. send "&cTu viens de Set le kit &a: %arg 2%"
  60. make player execute "/mangaddp default kit.%arg 2%"
  61.  
  62. if arg 1 is "dernier":
  63. if player have permission "ops.kit":
  64. set {semaines.kit} to "&cAucun Kit"
  65. send "&cTu viens d'enlever le kit &a: %arg 2%"
  66. make player execute "/mangdelp default kit.%arg 2%"
  67.  
  68.  
  69.  
  70. if arg 1 is "kit":
  71. if arg 2 is "pvp":
  72. execute console command "/effect %player% clear"
  73. execute console command "/clear %player%"
  74. execute console command "/kit pvp %player%"
  75. teleport player to {hydraspawnbox}
  76. set {kit.%player%} to true
  77. set {kitprix.%player%} to "%arg 2%"
  78. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  79. if arg 1 is "kit":
  80. if arg 2 is "poseidon":
  81. execute console command "/effect %player% clear"
  82. execute console command "/clear %player%"
  83. execute console command "/kit pvp %player%"
  84. apply Water Breathing to the player for 8 minutes
  85. set {kit.poseidon.%player%} to true
  86. teleport player to {hydraspawnbox}
  87. set {kit.%player%} to true
  88. set {kitprix.%player%} to "%arg 2%"
  89. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  90. if arg 1 is "kit":
  91. if arg 2 is "switcher":
  92. send "{@prefix} &cKit Non Disponible !"
  93. if arg 1 is "kit":
  94. if arg 2 is "spiderman":
  95. player have permission "kit.spiderman" or "kit.*":
  96. execute console command "/effect %player% clear"
  97. execute console command "/clear %player%"
  98. execute console command "/kit spiderman %player%"
  99. teleport player to {hydraspawnbox}
  100. set {kit.%player%} to true
  101. set {kitprix.%player%} to "%arg 2%"
  102. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  103. if arg 1 is "kit":
  104. if arg 2 is "stomper":
  105. execute console command "/effect %player% clear"
  106. execute console command "/clear %player%"
  107. execute console command "/kit Stomper %player%"
  108. set {stomper.%player%} to true
  109. set {plume.%player%} to true
  110. set {kit.%player%} to true
  111. set {kit.IronMan.%player%} to true
  112. teleport player to {hydraspawnbox}
  113. set {kitprix.%player%} to "%arg 2%"
  114. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  115. set {plume.%player%} to true
  116. if arg 1 is "kit":
  117. if arg 2 is "viper":
  118. execute console command "/effect %player% clear"
  119. execute console command "/clear %player%"
  120. execute console command "/kit pvp %player%"
  121. set {viper.%player%} to true
  122. set {kit.%player%} to true
  123. teleport player to {hydraspawnbox}
  124. set {kitprix.%player%} to "%arg 2%"
  125. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  126. if arg 1 is "kit":
  127. if arg 2 is "berseker":
  128. execute console command "/effect %player% clear"
  129. execute console command "/clear %player%"
  130. execute console command "/kit berseker %player%"
  131. set {berseker.%player%} to true
  132. set {kit.%player%} to true
  133. teleport player to {hydraspawnbox}
  134. set {kitprix.%player%} to "%arg 2%"
  135. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  136. if arg 1 is "kit":
  137. if arg 2 is "vampire":
  138. player have permission "kit.vampire" or "kit.*":
  139. execute console command "/effect %player% clear"
  140. execute console command "/clear %player%"
  141. execute console command "/kit pvp %player%"
  142. set {vampire.%player%} to true
  143. set {kit.%player%} to true
  144. teleport player to {hydraspawnbox}
  145. set {kitprix.%player%} to "%arg 2%"
  146. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  147. if arg 1 is "kit":
  148. if arg 2 is "IronMan":
  149. player have permission "kit.IronMan" or "kit.*":
  150. execute console command "/effect %player% clear"
  151. execute console command "/clear %player%"
  152. execute console command "/kit IronMan %player%"
  153. set {kit.%player%} to true
  154. set {kit.IronMan.%player%} to true
  155. teleport player to {hydraspawnbox}
  156. set {kitprix.%player%} to "%arg 2%"
  157. set {plume.%player%} to true
  158. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  159. if arg 1 is "kit":
  160. if arg 2 is "denoman":
  161. player has permission "kit.demoman" or "kit.*":
  162. make console execute command "/clear %player%"
  163. make console execute command "/kit demoman %player%"
  164. wait 1 tick
  165. set {kit.Demoman.%player%} to true
  166. set {kitprix.%player%} to "%arg 2%"
  167. teleport player to {hydraspawnbox}
  168. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  169. if arg 1 is "kit":
  170. if arg 2 is "thor":
  171. player has permission "kit.thor" or "kit.*":
  172. make console execute command "/clear %player%"
  173. make console execute command "/kit thor %player%"
  174. wait 1 tick
  175. set {kit.Thor.%player%} to true
  176. set {kitprix.%player%} to "%arg 2%"
  177. teleport player to {hydraspawnbox}
  178. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  179. if arg 1 is "kit":
  180. if arg 2 is "switcher":
  181. player has permission "kit.switcher" or "kit.*":
  182. make console execute command "/clear %player%"
  183. make console execute command "/kit switcher %player%"
  184. wait 1 tick
  185. set {kit.Switcher.%player%} to true
  186. set {kitprix.%player%} to "%arg 2%"
  187. teleport player to {hydraspawnbox}
  188. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  189. set {cooldown.switcher.%player%} to false
  190. if arg 1 is "kit":
  191. if arg 2 is "scoot":
  192. make console execute command "/clear %player%"
  193. make console execute command "/kit scout %player%"
  194. wait 1 tick
  195. set {kitprix.%player%} to "%arg 2%"
  196. teleport player to {hydraspawnbox}
  197. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  198. if arg 1 is "kit":
  199. if arg 2 is "Archer":
  200. make console execute command "/clear %player%"
  201. make console execute command "/kit Archer %player%"
  202. wait 1 tick
  203. set {kitprix.%player%} to "%arg 2%"
  204. teleport player to {hydraspawnbox}
  205. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  206. if arg 1 is "kit":
  207. if arg 2 is "Gladiator":
  208. player has permission "kit.Gladiator" or "kit.*":
  209. make console execute command "/clear %player%"
  210. make console execute command "/kit Gladiator %player%"
  211. wait 1 tick
  212. set {kitprix.%player%} to "%arg 2%"
  213. teleport player to {hydraspawnbox}
  214. set {kit.gladiator.%player%} to true
  215. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  216. if arg 1 is "kit":
  217. if arg 2 is "monk":
  218. player has permission "kit.monk" or "kit.*":
  219. make console execute command "/clear %player%"
  220. make console execute command "/kit Monk %player%"
  221. wait 1 tick
  222. set {kitprix.%player%} to "%arg 2%"
  223. teleport player to {hydraspawnbox}
  224. set {kit.monk.%player%} to true
  225. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  226. set {monkcool.%player%} to true
  227. if arg 1 is "kit":
  228. if arg 2 is "Ghastman":
  229. player has permission "kit.ghastman" or "kit.*":
  230. make console execute command "/clear %player%"
  231. make console execute command "/kit GhastMan %player%"
  232. wait 1 tick
  233. set {kitprix.%player%} to "%arg 2%"
  234. teleport player to {hydraspawnbox}
  235. set {kit.ghastman.%player%} to true
  236. set {cooldown.ghastman.%player%} to false
  237. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  238. if arg 1 is "kit":
  239. if arg 2 is "Fossoyeur":
  240. make console execute command "/clear %player%"
  241. make console execute command "/kit fossyeur %player%"
  242. set {kitprix.%player%} to "%arg 2%"
  243. teleport player to {hydraspawnbox}
  244. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  245. set {kit.fossoyeur.%player%} to true
  246. if arg 1 is "kit":
  247. if arg 2 is "Explode":
  248. make console execute command "/clear %player%"
  249. make console execute command "/kit explode %player%"
  250. set {kitprix.%player%} to "%arg 2%"
  251. teleport player to {hydraspawnbox}
  252. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  253. set {kit.explode.%player%} to true
  254. if arg 1 is "kit":
  255. if arg 2 is "Paladin":
  256. make console execute command "/clear %player%"
  257. make console execute command "/kit Paladin %player%"
  258. set {kitprix.%player%} to "%arg 2%"
  259. teleport player to {hydraspawnbox}
  260. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  261. equip player with leather chestplate
  262. if arg 1 is "kit":
  263. if arg 2 is "PGM":
  264. make console execute command "/clear %player%"
  265. make console execute command "/kit PGM %player%"
  266. set {kitprix.%player%} to "%arg 2%"
  267. teleport player to {hydraspawnbox}
  268. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  269. if arg 1 is "kit":
  270. if arg 2 is "Dresseur":
  271. make console execute command "/clear %player%"
  272. make console execute command "/kit Pvp %player%"
  273. set {kitprix.%player%} to "%arg 2%"
  274. teleport player to {hydraspawnbox}
  275. wait 1 seconds
  276. broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
  277. give 1 bone named "&aChien" to player
  278. give 10 bone named "&aOs" to player
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288. # ========== Lore ============== #
  289.  
  290. if player have permission "kit.viper":
  291. set {lore.%player%.viper} to "&aTu a des chance de donne Poison ..."
  292. else:
  293. set {lore.%player%.viper} to "&cTu na Pas le kit !"
  294.  
  295. if player have permission "kit.spiderman" or "kit.*":
  296. set {lore.%player%.spiderman} to "&bTisse des toiles comme SpiderMan !"
  297. else:
  298. set {lore.%player%.spiderman} to "&cTu na Pas le kit !"
  299.  
  300. if player have permission "kit.vampire" or "kit.*":
  301. set {lore.%player%.vampire} to "&aTue un joueur pour recuper tout ta vie"
  302. else:
  303. set {lore.%player%.vampire} to "&cTu na Pas le kit !"
  304.  
  305. if player have permission "kit.vampire" or "kit.*":
  306. set {lore.%player%.vampire} to "&aTue un joueur pour recuper tout ta vie"
  307. else:
  308. set {lore.%player%.vampire} to "&cTu na Pas le kit !"
  309.  
  310. if player have permission "kit.iron" or "kit.*":
  311. set {lore.%player%.Ironman} to "&aVole comme IronMan !"
  312. else:
  313. set {lore.%player%.IronMan} to "&cTu na Pas le kit !"
  314.  
  315. if player have permission "kit.thor" or "kit.*":
  316. set {lore.%player%.Thor} to "&aInvoque la foudre !"
  317. else:
  318. set {lore.%player%.Thor} to "&cTu na Pas le kit !"
  319.  
  320. if player have permission "kit.Switcher" or "kit.*":
  321. set {lore.%player%.Switcher} to "&aSwitch avec ton enemi !"
  322. else:
  323. set {lore.%player%.Switcher} to "&cTu na Pas le kit !"
  324.  
  325. if player have permission "kit.scoot" or "kit.*":
  326. set {lore.%player%.Scoot} to "&aVa aussi vite que Flash"
  327. else:
  328. set {lore.%player%.Scoot} to "&cTu na Pas le kit !"
  329.  
  330. if player have permission "kit.Archer" or "kit.*":
  331. set {lore.%player%.archer} to "&akit Archer de base + Arc OneShot (1 utilisation)"
  332. else:
  333. set {lore.%player%.archer} to "&cTu na Pas le kit !"
  334.  
  335. if player have permission "kit.Gladiator" or "kit.*":
  336. set {lore.%player%.gladiator} to "&8Defie tes enemies dans une cage 1v1 !"
  337. else:
  338. set {lore.%player%.gladiator} to "&cTu na Pas le kit !"
  339.  
  340. if player have permission "kit.Monk" or "kit.*":
  341. set {lore.%player%.monk} to "&8Lorsque vous faites click droit avec votre baton de blaze, l'adversaire est désarmé."
  342. else:
  343. set {lore.%player%.monk} to "&cTu na Pas le kit !"
  344.  
  345. if player have permission "kit.GhastMan" or "kit.*":
  346. set {lore.%player%.ghastman} to "&aLance des Boule de Ghast :D"
  347. else:
  348. set {lore.%player%.ghastman} to "&cTu na Pas le kit !"
  349.  
  350. if player have permission "kit.GhastMan" or "kit.*":
  351. set {lore.%player%.Fossoyeur} to "&aReviens a la vie !"
  352. else:
  353. set {lore.%player%.Fossoyeur} to "&cTu na Pas le kit !"
  354.  
  355. if player have permission "kit.explode" or "kit.*":
  356. set {lore.%player%.explode} to "&aFait toi Pété !"
  357. else:
  358. set {lore.%player%.explode} to "&cTu na Pas le kit !"
  359.  
  360. if player have permission "kit.paladin" or "kit.*":
  361. set {lore.%player%.paladin} to "&aA vrai Tanks !"
  362. else:
  363. set {lore.%player%.paladin} to "&cTu na Pas le kit !"
  364.  
  365. if player have permission "kit.pgm" or "kit.*":
  366. set {lore.%player%.paladin} to "&aPour les PGM"
  367. else:
  368. set {lore.%player%.paladin} to "&cTu na Pas le kit !"
  369.  
  370. # =========== Mise a jour ===================== #
  371.  
  372. command /maj <text>:
  373. permission: maj.ops
  374. trigger:
  375. set {Chat.Maj} to true
  376. broadcast "&b[&6Maj&b] &6Mise a jour du Plugins &a:PVP"
  377. broadcast "&b[&6Maj&b] &6Pour: &b%arg 1%"
  378. wait 2 seconds
  379. broadcast "&b[&6Maj&b] &aMise a jour a 10%%"
  380. wait 3 seconds
  381. broadcast "&b[&6Maj&b] &aMise a jour a 30%%"
  382. wait 2 seconds
  383. broadcast "&b[&6Maj&b] &aMise a jour a 45%%"
  384. wait 3 seconds
  385. broadcast "&b[&6Maj&b] &aMise a jour a 60%%"
  386. wait 4 seconds
  387. broadcast "&b[&6Maj&b] &aMise a jour a 80%%"
  388. wait 2 seconds
  389. broadcast "&b[&6Maj&b] &aMise a jour a 99%%"
  390. wait 1 tick
  391. broadcast "&b[&6Maj&b] &aMise a jour a 100%%"
  392. wait 1 seconds
  393. broadcast "&b[&6Maj&b] &aMise a jour Terminé !"
  394. set {Chat.Maj} to false
  395. wait 2 seconds
  396. broadcast "&b[&6Maj&b] &aSysteme de Mise a jour pensée et crée par Yghore"
  397. make console execute "/sk reload pvp"
  398.  
  399. on chat:
  400. if {Chat.Maj} is true:
  401. cancel event
  402. send "&4Tu ne peut pas parler une Mise a jour et en cours"
  403.  
  404.  
  405. # ============ Hunger/join/Variables/Effet Kit ============== #
  406.  
  407. on respawn:
  408. teleport the player to {spawn}
  409. give chest named "&cHydraKits" to the player
  410. set slot 8 of player to a emerald named "&bBoutique &7(Clic droit)"
  411. teleport the player to {spawn}
  412.  
  413. on death:
  414. set {vampire.%player%} to false
  415. set {berseker.%player%} to false
  416. set {viper.%player%} to false
  417. set {stomper.%player%} to false
  418. set {kit.poseidon.%player%} to false
  419. set {kit.%player%} to false
  420. set {plume.%player%} to false
  421. set {kit.Thor.%player%} to false
  422. set {kit.IronMan.%player%} to false
  423. set {kit.Gladiator.%player%} to false
  424. set {kit.ghastman.%player%} to false
  425. set {kit.monk.%player%} to false
  426. set {cooldown.spiderman.%player%} to false
  427. set {cooldown.%player%} to true
  428. set {cooldown.boum.%player%} to true
  429.  
  430. on join:
  431. set {vampire.%player%} to false
  432. set {berseker.%player%} to false
  433. set {viper.%player%} to false
  434. set {stomper.%player%} to false
  435. set {kit.poseidon.%player%} to false
  436. set {kit.%player%} to false
  437. set {plume.%player%} to false
  438. set {kit.Thor.%player%} to false
  439. set {kit.IronMan.%player%} to false
  440. set {kit.Gladiator.%player%} to false
  441. set {kit.ghastman.%player%} to false
  442. set {kit.monk.%player%} to false
  443. set {cooldown.spiderman.%player%} to false
  444. set {cooldown.%player%} to true
  445. set {cooldown.boum.%player%} to true
  446.  
  447.  
  448. # ============ Anti Retour Spawn Kit =========== #
  449.  
  450.  
  451. on command "/hydrabox":
  452. if {kit.%player%} is true:
  453. cancel event
  454. send "&cTu a deja choisi un kit pour en r'avoir un autre fait /spawn "
  455.  
  456.  
  457.  
  458. on hunger meter change:
  459. cancel event
  460.  
  461. # ======= Spiderman ======= #
  462.  
  463.  
  464. on projectile hit:
  465. if {cooldown.spiderman.%shooter%} is false:
  466. if name of shooter's tool is "&cSpiderman":
  467. set {cooldown.spiderman.%shooter%} to true
  468. loop blocks in radius 2 around projectile:
  469. if block at loop-blocks is air:
  470. set loop-block to cobweb
  471. wait 10 seconds
  472. loop blocks in radius 5 around projectile:
  473. if block at loop-block is cobweb:
  474. set loop-block to air
  475. wait 5 seconds
  476. set {cooldown.spiderman.%shooter%} to false
  477. send "{@prefix} &aTemps de recharge finit !" to shooter
  478. else:
  479. send "{@prefix} &4Il y a un temps de recharge !" to shooter
  480.  
  481.  
  482.  
  483. # ======= Explode ===== #
  484.  
  485. On rightclick with tnt:
  486. world is "Pvp"
  487. cancel event
  488. if {kit.Explode.%player%} is true:
  489. if player is holding tnt:
  490. if name of tool is "&cBOUMM":
  491. if block above player is air:
  492. if {cooldown.boum.%player%} is true:
  493. spawn tnt at block above player
  494. spawn tnt at block up player
  495. spawn tnt at block above player
  496. set {cooldown.boum.%player%} to false
  497. wait 10 seconds
  498. set {cooldown.boum.%player%} to true
  499. send "{@prefix} &8Tu peut réutiliser le kit."
  500. else:
  501. send "{@prefix} &7Tu as un cooldown de 15 secondes."
  502.  
  503. On rightclick with Nether star:
  504. world is "pvp"
  505. if {kit.explode.%player%} is true:
  506. create a fake explosion at event-location
  507. loop all players in radius 4 around event-location:
  508. damage loop-player by 10
  509.  
  510.  
  511.  
  512. on explode:
  513. world is "pvp":
  514. cancel event
  515.  
  516.  
  517. # ======= IronMan ===== #:
  518.  
  519. on right click with feather:
  520. if {kit.IronMan.%player%} is true:
  521. add 1 to {IronMan.Cooldown.%player%}
  522. push the player upwards at speed 2
  523. push the player forwards at speed 2
  524. remove 1 feather from the player
  525. send "{@prefix} &4 Tu es en cooldown !"
  526. cancel event
  527. set {kit.IronMan.%player%} to false
  528. wait 5 seconds
  529. delete {IronMan.Cooldown.%player%}
  530. set {kit.IronMan.%player%} to true
  531. send "{@prefix} &a Ton cooldown est terminé !"
  532.  
  533. # ======= Viper ======= #
  534.  
  535. On damage of a player:
  536. if {viper.%attacker%} is true:
  537. chance of 45%:
  538. apply poison to the victim for 5 seconds
  539.  
  540. #======== Dresseur ======== #
  541.  
  542. on rightclick with a bone:
  543. if player is holding bone named "&aChien":
  544. spawn 3 wolf at the player
  545. remove 1 bone named "&aChien" from player
  546.  
  547. # ======= Berserker ======= #
  548.  
  549. On death:
  550. if {Berserker.%attacker%} is true:
  551. apply strength 1 to the attacker for 1 minutes
  552.  
  553. # ======= Vampire ======= #
  554.  
  555. on death of player:
  556. attacker is a player
  557. if {vampire.%attacker%} is true:
  558. heal attacker
  559.  
  560. # === Switcher === #
  561.  
  562. on damage of a player:
  563. if name of shooter's tool is "&f&lSwitcher":
  564. projectile is a snowball
  565. attacker is a player
  566. set {_pos} to location of victim
  567. teleport victim to attacker
  568. teleport attacker to {_pos}
  569.  
  570. # ===== Kit Stomper ===== #
  571.  
  572. on damage:
  573. if damage cause is fall:
  574. if {stomper.%victim%} is true:
  575. loop players in radius 4 around the victim:
  576. damage loop-players by 6 hearts
  577.  
  578. # ===== Kit Thor ===== #
  579.  
  580. on right click with stone axe:
  581. if {kit.Thor.%player%} is true:
  582. add 1 to {Thor.Cooldown.%player%}
  583. strike lightning at targeted block
  584. send "{@prefix} &c Tu es en cooldown !"
  585. if {Thor.Cooldown.%player%} is equal to 1:
  586. set {kit.Thor.%player%} to false
  587. wait 7 seconds
  588. delete {Thor.Cooldown.%player%}
  589. set {kit.Thor.%player%} to true
  590. send "{@prefix} &a Le cooldown est terminé !"
  591.  
  592. # ===========| Gladiator |=========== #
  593.  
  594. On rightclick on player with bars:
  595. cancel event
  596. if {kit.gladiator.%player%} is true:
  597. send "Maintenance du kit"
  598.  
  599.  
  600. # ========== Monk =========== #
  601.  
  602. on left click with blaze rod:
  603. if {kit.monk.%player%} is true:
  604. if {monkcool.%player%} is true:
  605. send "{@prefix} &7Tu vient d'utiliser le kit monk !"
  606. set {monkcool.%player%} to false
  607. set {_tool} to tool of target
  608. set {_tool2} to slot 18 of target
  609. set slot 17 of target to {_tool}
  610. set tool of target to {_tool2}
  611. wait 1 ticks
  612. clear {_tool}
  613. clear {_tool2}
  614. wait 10 seconds
  615. set {monkcool.%player%} to true
  616. send "{@prefix} &8Tu peut réutiliser le kit." to player
  617. else:
  618. send "{@prefix} &7Tu as un cooldown de 30 secondes." to player
  619.  
  620.  
  621. # ========== GhastMan =========== #
  622.  
  623. On rightclick with fire charge:
  624. if {kit.ghastman.%player%} is true:
  625. if {cooldown.ghastman.%player%} is false:
  626. set {cooldown.ghastman.%player%} to true
  627. send "{@prefix} &8Tu as lancé un boule de feux."
  628. shoot an fireball
  629. wait 15 seconds
  630. set {cooldown.ghastman.%player%} to false
  631. send "{@prefix} &8Tu peut réutiliser le kit."
  632. else:
  633. send "{@prefix} &8Il y a un cooldown de 15 secondes."
  634.  
  635.  
  636. # ========== Poseidon =========== #
  637.  
  638. on any movement:
  639. if block at player is water:
  640. if {kit.poseidon.%player%} is true:
  641. remove speed from player
  642. apply speed 2 to player for 5 seconds
  643. remove strength from player
  644. apply strength 1 to player for 5 seconds
  645.  
  646. # ====== Fossoyeur ======= #
  647. on death:
  648. if {kit.fossoyeur.%player%} is true:
  649. set {_back.fossoyeur.%player%} to location of player
  650. wait 3 seconds
  651. send "&cReviens a la vie !"
  652. teleport player to {_back.fossoyeur.%player%}
  653. make console execute "/clear %player%"
  654. make console execute "/kit Fossyeur %player%"
  655. set {kit.fossoyeur.%player%} to false
  656.  
  657. # ====== Plume/Chute ======= #
  658.  
  659. on damage:
  660. if damage was caused by fall:
  661. if {plume.%victim%} is true:
  662. cancel event
  663. # ====== Up Stomer ========= #
  664.  
  665. On rightclick with firework star:
  666. if {cooldown.stomper.%player%} is false:
  667. push the player upwards at speed 5
  668. set {cooldown.stomper.%player%} to true
  669. wait 10 seconds
  670. set {cooldown.stomper.%player%} to false
  671. send "{@prefix} Temps de recharge finit !"
  672. if {cooldown.stomper.%player%} is true:
  673. send "{@prefix} Temps de recharge activé !"
  674. cancel event
  675.  
  676.  
  677.  
  678.  
  679.  
  680. # ====== Boutique / Shop ====== #
  681. options:
  682. b: &6[&bHydra&6Boutique&b]
  683. command /hydramoney <text=menu> [<text>] [<text>]:
  684. trigger:
  685. if arg 1 is "money":
  686. send "&6Money: &a%{money.%player%}%"
  687. if arg 1 is "achat":
  688. if arg 2 is "ironman":
  689. if {money.%player%} > 50:
  690. add 1 to {achat.%player%}
  691. remove 50 from {money.%player%}
  692. make console execute "/manuaddp %player% kit.IronMan"
  693. send "{@b} &aTu vient d'acheter le kit: &b%arg 2%"
  694. else:
  695. send "&4Tu na pas assez d'argent !"
  696.  
  697. if arg 1 is "achat":
  698. if arg 2 is "spiderman":
  699. if {money.%player%} > 60:
  700. add 1 to {achat.%player%}
  701. remove 60 from {money.%player%}
  702. make console execute "/manuaddp %player% kit.spiderman"
  703. send "{@b} &aTu vient d'acheter le kit: &b%arg 2%"
  704. else:
  705. send "&4Tu na pas assez d'argent !"
  706.  
  707. if arg 1 is "menu":
  708. open chest with 6 row named "{@b}" to player
  709. wait 4 tick
  710. format slot 10 of player with iron boots named "&4IronMan &b> &a50$" with lore "" to close then run [make player execute "/hydramoney achat ironman"]
  711. format slot 11 of player with cobweb named "&4SpiderMan &b> &a60$" with lore "" to close then run [make player execute "/hydramoney achat spiderman"]
  712. format slot 40 of player with ender chest named "&bStat Boutique" with lore "&aMoney: %{money.%player%}% ||&aNombre D'achat: &b%{achat.%player%}% " to be unstealable
  713. if arg 1 is "add":
  714. if player have permission "money.add":
  715. add 10 to {money.%arg 3%}
  716. send "&aTu viens de rajouter 10$ &aA %arg 3%"
  717.  
  718. if arg 1 is "remove":
  719. if player have permission "money.remove":
  720. remove 10 from {money.%arg 3%}
  721. send "&aTu viens d'enlever 10$ &aA&a %arg 3%"
  722.  
  723.  
  724. on first join:
  725. add 10 to {money.%player%}
  726. add 0 to {achat.%player%}
  727.  
  728. # ======= Anti feux ====== #
  729.  
  730. on burn:
  731. cancel event
  732.  
  733. on ignition:
  734. cancel event
  735.  
  736.  
  737. # ====== FireWorlk ======= #
  738.  
  739. on death:
  740. launch creeper firework colored red at player timed 1
  741.  
  742.  
  743. # === KillStreak ===== #
  744.  
  745.  
  746. on death of player:
  747. add 2 to {Money.%attacker%}
  748. remove 1 from {Money.%victim%}
  749. send "&cTu vient de prendre 1$ " to victim
  750. send "&aTu vient de gagner 2$ " to attacker
  751. set {killstreak.%victim%} to 0
  752. add 1 to {killstreak.%attacker%}
  753. if {killstreak.%attacker%} is equal to 5:
  754. broadcast "&c[&4Kill&cStreak&4] %attacker% A fait un KillStreak de 5 !"
  755. add 3 to {money.%attacker%}
  756. if {KillStreak.%attacker%} is equal to 10:
  757. broadcast "&c[&4Kill&cStreak&4] %attacker% A fait un KillStreak de 10 ! &bIl vient de Gagnier 7 $"
  758. add 7 to {money.%attacker%}
  759.  
  760.  
  761. # === Demoman === #
  762.  
  763. on walking on a pressure plate:
  764. create safe explosion of power 5 at player
  765. set block at player to air
  766.  
  767. # === Sponge === #
  768.  
  769. on walking on note block:
  770. set {damage.note.fall} to true
  771. push the player upwards at speed 2
  772. push the player forwards at speed 5
  773.  
  774. on damage:
  775. damage cause is fall:
  776. if {damage.note.fall} is true:
  777. set {damage.note.fall} to false
  778. cancel event
  779.  
  780. # =========== Jour nuit ============== #
  781.  
  782. on weather change to rain:
  783. cancel event
  784.  
  785. at 20:00 in "pvp":
  786. make console execute "/day"
  787.  
  788. on death:
  789. if player is in world "pvp":
  790. clear drops
  791.  
  792.  
  793. # ========= Message de Mort ======= #
  794. options:
  795. death: &4[&cHydra&4Mort&c]
  796. on death:
  797. If attacker is a Player:
  798. If projectile is an arrow:
  799. broadcast "{@death} &a%player% &6c'est fait tirer dessus par &a%attacker%."
  800.  
  801. If tool of attacker is air:
  802. broadcast "{@death} &a%player% &6c'est fait tuer à la main par &a%attacker%."
  803.  
  804. If tool of attacker is a sword:
  805. broadcast "{@death} &c%player% &6s'est fait trancher en deux par &a%attacker%."
  806.  
  807. If tool of attacker is an pickaxe:
  808. broadcast "{@death} &a%attacker% &6a pris &a%player% &6pour un minerais."
  809.  
  810. If tool of attacker is an axe:
  811. broadcast "{@death} &a%attacker% &6a pris &a%player% &6pour une bûche."
  812.  
  813. If tool of attacker is an shovel:
  814. broadcast "{@death} &a%attacker% &6a pris &a%player% &6pour de la terre."
  815.  
  816. If tool of attacker is an hoe:
  817. broadcast "{@death} &a%attacker% &6a voulu labourer &a%player%."
  818.  
  819. # ========== Message/Smileys ============ #
  820. options:
  821. ps: &b[&6Hydra&bSmileys&6]
  822. on chat:
  823. replace all ":)" or "(:" in message with "&a☺&r"
  824. replace all "*tm" in message with "&6™&r"
  825. replace all ":(" or "):" in message with "&c☹&r"
  826. replace all "<3" or "*heart" in message with "&4❤&r"
  827. replace all "*male" in message with "&b♂&r"
  828. replace all "*female" in message with "&d♀&r"
  829. replace all "*music" or "*musique" in message with "&6♪♫♫♪&r"
  830. replace all "*check" or "*validé" in message with "&a✔&r"
  831. replace all "*x" in message with "&c✖&r"
  832. replace all "*copy" or "*copyright" in message with "&6©&r"
  833. replace all "*reg" in message with "&6®&r"
  834. replace all "*waiting" in message with "&6⌛&r"
  835. replace all "*star" or "*etoile" in message with "&e★&r"
  836. replace all "*phone" or "*telephone" in message with "&6☎&r"
  837. replace all "*yingyang" in message with "☯&r"
  838. replace all "*skull" or "*toxic" in message with "&4☠&r"
  839. replace all "*radioactive" in message with "&e☢&r"
  840. replace all "*envelop" or "*enveloppe" in message with "&f✉&r"
  841. replace all "*arrow" in message with "&f➸&r"
  842. replace all "*peace" in message with "&f☮&r"
  843. replace all "*box" in message with "&f☐&r"
  844. replace all "*cbox" in message with "&f☑&r"
  845. replace all "*markedbox" in message with "&f☒&r"
  846. replace all "*snow" in message with "&b❅&r"
  847. replace all "*>>" in message with "&6»&r"
  848. replace all "*<<" in message with "&6«&r"
  849. replace all "*triangle" in message with "&a▲&r"
  850. replace all "*square" in message with "&a■&r"
  851. replace all "*circle" in message with "&b○&r"
  852. replace all "*sun" in message with "&e☼&r"
  853. replace all "*left" in message with "&a←&r"
  854. replace all "*right" in message with "&a→&r"
  855. replace all "*up" in message with "&a↑&r"
  856. replace all "*down" in message with "&a↓&r"
  857. replace all "*flower" in message with "&f✿&r"
  858.  
  859. command /smiley [<text>]:
  860. aliases: /smileys
  861. trigger:
  862. if arg 1 is not set:
  863. message "{@ps} &cChoisis un numéro de page entre 1 et 7 !"
  864. if arg 1 is "1":
  865. message "{@ps} &2Help 1/7"
  866. message "&6:) | (: &5-> &3☺"
  867. message "&6:( | ): &5-> &3☹"
  868. message "&6*heart | <3 &5-> &3❤"
  869. message "&6*tm &5-> &3™"
  870. message "&6*male &5-> &3♂"
  871. if arg 1 is "2":
  872. message "{@ps} &2Help 2/7"
  873. message "&6*female &5-> &3♀"
  874. message "&6*music | *musique &5-> &3♪♫♫♪"
  875. message "&6*check | *validé &5-> &3✔"
  876. message "&6*x &5-> &3✖"
  877. message "&6*copy | *copyright &5-> &3©"
  878. if arg 1 is "3":
  879. message "{@ps} &2Help 3/7"
  880. message "&6*reg &5-> &3®"
  881. message "&6*waiting &5-> &3⌛"
  882. message "&6*star | *etoile &5-> &3★"
  883. message "&6*phone | *telephone &5-> &3☎"
  884. message "&6*yingyang &5-> &3☯"
  885. if arg 1 is "4":
  886. message "{@ps} &2Help 4/7"
  887. message "&6*skull | *toxic &5-> &3☠"
  888. message "&6*radioactive &5-> &3☢"
  889. message "&6*envelop | *enveloppe &5-> &3✉"
  890. message "&6*arrow &5-> &3➸"
  891. message "&6*peace &5-> &3☮"
  892. if arg 1 is "5":
  893. message "{@ps} &2Help 5/7"
  894. message "&6*box &5-> &3☐"
  895. message "&6*cbox &5-> &3☑"
  896. message "&6*markedbox &5-> &3☒"
  897. message "&6*snow &5-> &3❅"
  898. message "&6*>> &5-> &3»"
  899. if arg 1 is "6":
  900. message "{@ps} &2Help 6/7"
  901. message "&6*<< &5-> &3«"
  902. message "&6*triangle &5-> &3▲"
  903. message "&6*square &5-> &3■"
  904. message "&6*circle &5-> &3○"
  905. message "&6*sun &5-> &3☼"
  906. if arg 1 is "7":
  907. message "{@ps} &2Help 7/7"
  908. message "&6*left &5-> &3←"
  909. message "&6*right &5-> &3→"
  910. message "&6*up &5-> &3↑"
  911. message "&6*down &5-> &3↓"
  912. message "&6*flower &5-> &3✿"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement