superrtutur

Untitled

Jun 23rd, 2019
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 101.29 KB | None | 0 0
  1. on join:
  2. wait 7 seconds
  3. if {password.%player%} is not set:
  4. send "&7[&aVanozia&7] &cDéfini ton mot de passe avec /register [<password>] [<password>]"
  5. clear {login.%player%}
  6. set {movefalser.%player%} to true
  7. stop
  8. if {password.%player%} is set:
  9. send "&7[&aVanozia&7] &cConnecte toi avec /login [<password>]"
  10. clear {login.%player%}
  11. set {movefalse.%player%} to true
  12. stop
  13.  
  14. command /locatt:
  15. permission: vanozia.staff
  16. trigger:
  17. loop all players:
  18. send "&7[&aVanozia&7] &aLocation de %loop-player%: &c%location of loop-player%"
  19.  
  20. on command "/tp":
  21. if {enjeu.%player%} is true:
  22. cancel event
  23. send "&7[&aVanozia&7] &cTu a esseyer de te TP ou de TP quelqu'un !"
  24. execute console command "/warn %player% Tentative de TP en partie !"
  25.  
  26.  
  27. on right click on end stone:
  28. if {enjeu.%player%} is false:
  29. send "&7[&aVanozia&7]&2Tu doit être en jeu !"
  30. else:
  31. if {role.%player%} is not "&cTueur":
  32. send "&7[&aVanozia&7] &cIl y'a que le tueur qui peut effectuée ceci !"
  33. else:
  34. chance of 20%:
  35. loop all players:
  36. if loop-player is not "%{tueur}%":
  37. if {enjeu.%loop-player%} is true:
  38. set {rty} to location of loop-player
  39. send "&7[&aVanozia&7] &2Coordonnée: &c%{rty}%"
  40. else:
  41. send "&7[&aVanozia&7] &cNon effectuée !"
  42.  
  43.  
  44.  
  45.  
  46. command /setjeuy:
  47. trigger:
  48. set {echapp} to true
  49.  
  50.  
  51. command /setjeun:
  52. trigger:
  53. set {echapp} to false
  54.  
  55.  
  56. on walk on 159:15:
  57. if {echapp} is true:
  58. if {echap1} is true:
  59. stop
  60. else:
  61. send "&7[&aVanozia&7] &cLes Flic ne sont pas ici !"
  62. execute console command "/minecraft:tp %player% 2 237 -100"
  63. else if {echapp} is false:
  64. send "&7[&aVanozia&7] &cVous ne pouvais pas vous enfuir !"
  65. execute console command "/minecraft:tp %player% 2 237 -100"
  66.  
  67.  
  68. on walk on 159:1:
  69. if {echapp} is true:
  70. if {echap2} is true:
  71. stop
  72. else:
  73. send "&7[&aVanozia&7] &cLes Flic ne sont pas ici !"
  74. execute console command "/minecraft:tp %player% 184 237 -46"
  75. else if {echapp} is false:
  76. send "&7[&aVanozia&7] &cVous ne pouvais pas vous enfuir !"
  77. execute console command "/minecraft:tp %player% 184 237 -46"
  78.  
  79. on walk on 159:2:
  80. if {echapp} is true:
  81. if {echap3} is true:
  82. stop
  83. else:
  84. send "&7[&aVanozia&7] &cLes Flic ne sont pas ici !"
  85. execute console command "/minecraft:tp %player% -92 237 141"
  86. else if {echapp} is false:
  87. send "&7[&aVanozia&7] &cVous ne pouvais pas vous enfuir !"
  88. execute console command "/minecraft:tp %player% -92 237 141"
  89.  
  90.  
  91. on walk on 159:12:
  92. if {echapp} is true:
  93. if {echap4} is true:
  94. stop
  95. else:
  96. send "&7[&aVanozia&7] &cLes Flic ne sont pas ici !"
  97. execute console command "/minecraft:tp %player% -133 237 -76"
  98. else if {echapp} is false:
  99. send "&7[&aVanozia&7] &cVous ne pouvais pas vous enfuir !"
  100. execute console command "/minecraft:tp %player% -133 237 -76"
  101.  
  102.  
  103. on load:
  104. loop all players:
  105. send loop-player title "&aSystème:" with subtitle "&cChargé" for 5 seconds
  106.  
  107.  
  108. on load:
  109. set {echapp} to false
  110. set {echap1} to false
  111. set {echap2} to false
  112. set {echap3} to false
  113. set {echap4} to false
  114.  
  115.  
  116. on any move:
  117. if {movefalser.%player%} is true:
  118. cancel event
  119. send "&7[&aVanozia&7] &cDéfini ton mot de passe avec /register [<password>] [<password>]"
  120. stop
  121. if {movefalse.%player%} is true:
  122. send "&7[&aVanozia&7]&c Connecte toi avec /login [<password>]"
  123. cancel event
  124. stop
  125.  
  126. command /reset:
  127. trigger:
  128. set {xp.%player%} to 0
  129. set {level.%player%} to 0
  130. set {xpmax.%player%} to 1000
  131.  
  132. on chat:
  133. cancel event
  134. broadcast "&7[&aVanozia&7] &a%{grade.%player%}% &b%player% &7> &b%message%"
  135.  
  136.  
  137. on death:
  138. clear the drops
  139.  
  140. command /register [<text>] [<text>]:
  141. trigger:
  142. if {password.%player%} is not set:
  143. if arg 1 is set:
  144. if arg 2 is set:
  145. if arg 1 = arg 2:
  146. set {password.%player%} to arg 1
  147. send "&7[&aVanozia&7]&c &aMot de passe défini : %{password.%player%}%"
  148. set {login.%player%} to true
  149. clear {movefalser.%player%}
  150. stop
  151. else:
  152. send "&7[&aVanozia&7]&c &cLes mots de passe ne sont pas identiques : %arg 1% %arg 2%"
  153. stop
  154. else:
  155. send "&7[&aVanozia&7]&c Il faut écrire 2 fois de suite son mot de passe afin de le confirmer"
  156. send "&7[&aVanozia&7]&c /register [<password>] [<password>]"
  157. stop
  158. else:
  159. send "&7[&aVanozia&7]&c Syntaxe: /register [<password>] [<password>]"
  160. stop
  161. else:
  162. send "&7[&aVanozia&7]&c &aTu es déjà enregistré. Pour changer de mot de passe fais /changePassword"
  163. stop
  164. command /login [<text>]:
  165. trigger:
  166. if {login.%player%} is true:
  167. send "&7[&aVanozia&7]&c Tu es déjà login. Pour changer de Password fais /changePassword"
  168. stop
  169. if {login.%player%} is not set:
  170. if arg 1 is set:
  171. if arg 1 = {password.%player%}:
  172. send "&7[&aVanozia&7] &aConnection réussie"
  173. set {login.%player%} to true
  174. clear {movefalse.%player%}
  175. stop
  176. else:
  177. send "&7[&aVanozia&7]&c &cMauvais mot de passe"
  178. stop
  179. if arg 1 is not set:
  180. send "&7[&aVanozia&7]&c Syntaxe : /login [<password>]"
  181. stop
  182. command /showpassword [<offline player>]:
  183. permission: show.pass
  184. permission message: &cTu ne peux pas voir les mots de passe des autres joueurs
  185. trigger:
  186. if arg 1 is set:
  187. if {password.%arg 1%} is set:
  188. send "&7[&aVanozia&7]&c &6Password de %arg 1% : &f%{password.%arg 1%}%"
  189. stop
  190. if {password.%arg 1%} is not set:
  191. send "&7[&aVanozia&7]&c Erreur : Le joueur n'est jamais venu/ne s'est jamais enregistré !"
  192. stop
  193. if arg 1 is not set:
  194. send "&7[&aVanozia&7]&c Syntaxe : /showpassword [<player>]"
  195. command /changePassword [<text>] [<text>] [<offline player>]:
  196. trigger:
  197. if {password.%player%} is set:
  198. if {login.%player%} is not set:
  199. send "&7[&aVanozia&7]&c : Tu n'es pas login !"
  200. stop
  201. else:
  202. if arg 1 is set:
  203. if arg 2 is set:
  204. if arg 3 is not set:
  205. if arg 1 = arg 2:
  206. set {password.%player%} to arg 1
  207. send "&7[&aVanozia&7]&c &aMot de passe redéfini : %{password.%player%}%"
  208. stop
  209. else:
  210. send "&7[&aVanozia&7]&c Il faut écrire 2 fois de suite son mot de passe afin de le confirmer"
  211. send "&7[&aVanozia&7]&c /changePassword [<password>] [<password>]"
  212. stop
  213. if arg 3 is set:
  214. if player has permission "Passwordother.change":
  215. if arg 1 = arg 2:
  216. set {password.%arg 3%} to arg 1
  217. send "&7[&aVanozia&7]&c &aMot de passe redéfini pour %arg 3%: %{password.%player%}%"
  218. stop
  219. else:
  220. send "&7[&aVanozia&7]&c Les mots de passe ne sont pas identiques : %arg 1% %arg 2%"
  221. send "&7[&aVanozia&7]&c /changePassword [<password>] [<password>] [<offline player>]"
  222. stop
  223. else:
  224. send "&7[&aVanozia&7]&c Tu ne peux pas changer le password des autres joueurs"
  225. stop
  226. if arg 2 is not set:
  227. send "&7[&aVanozia&7]&c Il faut écrire 2 fois de suite son mot de passe afin de le confirmer"
  228. send "&7[&aVanozia&7]&c /changePassword [<password>] [<password>] [<offline player>]"
  229. stop
  230. if arg 1 is not set:
  231. send "&7[&aVanozia&7]&c Syntaxe : /changePassword [<password>] [<password>]"
  232. stop
  233. if {password.%player%} is not set:
  234. send "&7[&aVanozia&7]&c Votre mot de passe n'est pas défini"
  235. send "&7[&aVanozia&7]&c /register [<password>] [<password>]"
  236. stop
  237.  
  238.  
  239. on load:
  240. loop {JeryCan1::*}:
  241. execute console command "/setblock %loop-value% redstone_block"
  242. loop {Radio::*}:
  243. execute console command "/setblock %loop-value% sea_lantern"
  244. loop {Generateur::*}:
  245. execute console command "/setblock %loop-value% iron_block"
  246. loop {chest::*}:
  247. execute console command "/setblock %loop-value% chest"
  248.  
  249.  
  250.  
  251. on command:
  252. if {login.%player%} is not set:
  253. full command is not "login" or "register"
  254. send "&7[&aVanozia&7]&c Tu n'es pas connecté !"
  255.  
  256.  
  257.  
  258.  
  259. on death:
  260. wait 3 seconds
  261. execute console command "/mv tp %victim% Hub"
  262. set slot 2 of victim to a Compass named "&aJouer"
  263. set slot 6 of victim to a golden ingot named "&eBoutique"
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287. options:
  288. version: 0.0.9
  289.  
  290.  
  291.  
  292. on load:
  293. if text from "https://pastebin.com/raw/ZXSxPZm5" is not "{@version}":
  294. wait 2 seconds
  295. broadcast "&7[&aVanozia&7] &aMise a jour...."
  296. wait 5 seconds
  297. set {_version} to text from "https://pastebin.com/raw/ZXSxPZm5"
  298. download from "https://pastebin.com/raw/pE96rMC9" to "plugins/Skript/scripts/Horror-%{_version}%.sk"
  299. delete file "plugins/Skript/scripts/Horror-{@version}.sk"
  300. wait 0.5 second
  301. make console execute command "/sk reload scripts"
  302. broadcast "&7[&aVanozia&7] &aMise a Jour terminée !"
  303. else:
  304. wait 5 seconds
  305. broadcast "&7[&aVanozia&7] &2Aucune Mise a Jour."
  306.  
  307.  
  308. command /§play4:
  309. trigger:
  310. set {echap1} to false
  311. set {echap2} to false
  312. set {echap3} to false
  313. set {echap4} to false
  314. wait 2 tick
  315. set {echapp} to true
  316. set {test} to false
  317. set {_bet} to a random number between 1 and 4
  318. set {_bet} to rounded {_bet}
  319.  
  320. wait 1 tick
  321. if {_bet} is 0 or 1:
  322. set {echap1} to true
  323. if {_bet} is 2:
  324. set {echap2} to true
  325. if {_bet} is 3:
  326. set {echap3} to true
  327. if {_bet} is 4 or 5:
  328. set {echap4} to true
  329.  
  330.  
  331.  
  332.  
  333. command /report [<text>] [<text>]:
  334. trigger:
  335. if arg 1 is not set:
  336. send "&7[&aVanozia&7] &cTu doit precisez le joueur !"
  337. else if arg 1 is set:
  338. set {namechec} to false
  339. loop all players:
  340. if name of loop-player is "%arg 1%":
  341. set {namechec} to true
  342. if {namechec} is false:
  343. send "&7[&aVanozia&7] &2Le joueur &b%player% &2n'est pas connecté !"
  344. else:
  345. if arg 2 is not set:
  346. open chest with 1 rows named "&b%player%" to player
  347. wait 2 tick
  348. format slot 1 of player with cobweb named "&aInsulte" to close then run [make player execute command "/report %arg 1% Insulte"]
  349. format slot 2 of player with iron sword named "&aMenace DDOS/Hack" to close then run [make player execute command "/report %arg 1% Menace DDOS/Hack"]
  350. format slot 3 of player with diamond sword named "&aKillaura" to close then run [make player execute command "/report %arg 1% Killaura"]
  351. format slot 4 of player with iron boots named "&aSpeed hack" to close then run [make player execute command "/report %arg 1% SpeedHack"]
  352. else if arg 2 is set:
  353. set {staff} to false
  354. loop all players:
  355. if player has permission "vanozia.staff":
  356. set {staff} to true
  357. if {staff} is false:
  358. send "&7[&aVanozia&7] &cAucune Membre du staff en ligne !"
  359. else if {staff} is true:
  360. send "&7[&aVanozia&7] &2Le report pour: &b%arg 1% &2avec la raison: &b%arg 2% &2A bien été envoyée !"
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367. command /removereport:
  368. trigger:
  369. delete {report::*}
  370. delete {reason::*}
  371. delete {porter::*}
  372. delete {_reportall}
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383. on walk on 159:14:
  384. if {enjeu.%player%} is true:
  385. if {role.%player%} is "&aInnocent" or "&3Policier":
  386. send "&7[&aVanozia&7] &2Vous vous êtes echappez !"
  387. set {joueure} to 0
  388. loop all players:
  389. if {ech.%loop-player%} is false:
  390. set {joueure} to {joueure} + 1
  391. send player title "&a&lECHAPPEZ !" with subtitle "&c" for 5 seconds
  392. execute console command "/gm 3 %player%"
  393. remove 1 from {joueure}
  394. if {joueure} <= 1:
  395. broadcast "&7[&aVanozia&7] &2Toutes les survivants se sont échappez !"
  396. wait 5 seconds
  397. execute console command "/kill %{tueur}%"
  398. loop all players:
  399. if {ech.%loop-player%} is true:
  400. execute console command "/gm 0 %player%"
  401. set {ech.%loop-player%} to false
  402. if {boost.%loop-player%} is "&cAucun":
  403. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  404. message " " to loop-player
  405. message "&a&lFIN DE PARTIE." to loop-player
  406. message "&2Innocent echappez!." to loop-player
  407. message " " to loop-player
  408. message "&cAucun Boost" to loop-player
  409. message "&e+100 Horror pour t'être echappez." to loop-player
  410. message "&e+55 XP"
  411. message " " to loop-player
  412. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  413. execute console command "/eco add %loop-player% 100"
  414. execute console command "/addxp %loop-player% 55"
  415. else if {boost.%loop-player%} is "&ax2":
  416. if {expire.%loop-player%} = 1:
  417. set {expire.%loop-player%} to "0"
  418. set {boost.%loop-player%} to "&cAucun"
  419. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  420. message " " to loop-player
  421. message "&a&lFIN DE PARTIE." to loop-player
  422. message "&2Innocent echappez." to loop-player
  423. message " " to loop-player
  424. message "&2Boost 2" to loop-player
  425. message "&e+&e&m100 &r&e200 Horror pour t'être echappez." to loop-player
  426. message "&e+&e&m55 &r&e110 XP" to loop-player
  427. message " " to loop-player
  428. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  429. execute console command "/eco add %loop-player% 200"
  430. execute console command "/addxp %loop-player% 110"
  431. else if {expire.%loop-player%} > 1:
  432. remove 1 from {expire.%loop-player%}
  433. set {expire.%loop-player%} to "0"
  434. set {boost.%loop-player%} to "&cAucun"
  435. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  436. message " " to loop-player
  437. message "&a&lFIN DE PARTIE." to loop-player
  438. message "&2Innocent Echappez." to loop-player
  439. message " " to loop-player
  440. message "&2Boost 2" to loop-player
  441. message "&e+&e&m100 &r&e200 Horror pour t'être echappez." to loop-player
  442. message "&e+&e&m55 &r&e110XP" to loop-player
  443. message " " to loop-player
  444. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  445. execute console command "/eco add %loop-player% 200"
  446. execute console command "/addxp %loop-player% 110"
  447.  
  448.  
  449. on join:
  450. execute console command "/gm 0 %player%"
  451.  
  452.  
  453.  
  454.  
  455. on command "/op":
  456. if name of player is not "superrtutur":
  457. cancel event
  458. send "&7[&aVanozia&7] &cProtection!!!"
  459.  
  460.  
  461.  
  462. on enter bed:
  463. cancel event
  464. send "&7[&aVanozia&7] &cInterdit!"
  465.  
  466.  
  467.  
  468. on right click on chest or trapped chest:
  469. set {z} to z-coordinate of targeted block
  470. set {x} to x-coordinate of targeted block
  471. set {y} to y-coordinate of targeted block
  472.  
  473. if {loot.%{x}% %{y}% %{z}%} is set:
  474. cancel event
  475. set block at event-block to air
  476. chance of 20%:
  477. send "&7[&aVanozia&7] &cRien dans le coffre."
  478. stop
  479. else:
  480. chance of 30%:
  481. send "&7[&aVanozia&7] &2Tu a trouvé &b5 &2Horror!"
  482. execute console command "/eco add %player% 5"
  483. stop
  484. else:
  485. chance of 20%:
  486. send "&7[&aVanozia&7] &2Tu a trouvé 2 pomme d'or !"
  487. give 2 golden apple named "&aSecours" to player
  488. stop
  489. else:
  490. chance of 25%:
  491. send "&7[&aVanozia&7] &2Tu a trouvé 1 recepteur !"
  492. give 1 clock named "&aRecepteur (3)" to player
  493. stop
  494. else:
  495. chance of 40%:
  496. heal the player
  497. send "&7[&aVanozia&7] &2Tu a recuperé ta vie"
  498. else:
  499. give 1 wooden sword named "&aCouteau" to player
  500. send "&7[&aVanozia&7] &2Tu a eu un Couteau"
  501. stop
  502.  
  503.  
  504.  
  505.  
  506. else if {grade.%player%} is "&aJoueur" or "Joueur":
  507. cancel event
  508. send "&7[&aVanozia&7] &2Tu ne peut pas faire cela!"
  509.  
  510. on right click with clock:
  511. loop all players:
  512. if {enjeu.%loop-player%} is true:
  513. if loop-player is not "%player%":
  514. if {role.%loop-player%} is not "&cTueur":
  515. send "&7[&aVanozia&7] &2Coordonnée d'une personne: &b%location of loop-player%"
  516. else:
  517. send "&7[&aVanozia&7] &2Coordonnée du tueur: &b%location of loop-player%"
  518. if name of tool is "&aRecepteur (3)":
  519. set name of tool to "&aRecepteur (2)"
  520. stop
  521. if name of tool is "&aRecepteur (2)":
  522. set name of tool to "&aRecepteur (1)"
  523. stop
  524. if name of tool is "&aRecepteur (1)":
  525. remove 1 clock named "&aRecepteur (1)" from player's inventory
  526. stop
  527.  
  528.  
  529.  
  530. # GRADE - CHARGEMENT - SCOREBOARD
  531.  
  532. on weather change:
  533. cancel event
  534.  
  535.  
  536.  
  537.  
  538. on join:
  539. if {boost.%player%} is not set:
  540. set {boost.%player%} to "&cAucun"
  541. if {expire.%player%} is not set:
  542. set {expire.%player%} to 0
  543. if {expire.%player%} is 0:
  544. if {boost.%player%} is not "&cAucun":
  545. set {boost.%player%} to "&cAucun"
  546. set {expire.%player%} to 0
  547.  
  548. command /horror [<text>] [<text>]:
  549. trigger:
  550. if arg 1 is not set:
  551. if player has permission "vanozia.staff":
  552. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  553. send " "
  554. send "&7/horror credits &aPermet de voir les credits"
  555. send "&7/horror add JeryCan &aPermet d'ajoutez un JeryCan que tu regard"
  556. send "&7/horror add Générateur &aPermet d'ajoutez le Générateur que tu regard"
  557. send "&7/horror add spawn-tueur &aPermet d'ajoutez un spawn du tueur"
  558. send "&7/horror add spawn &aPermet d'ajoutez un spawn Innocent/policier"
  559. send "&7/horror add Radio &aPermet d'ajoutez la Radio que tu regard"
  560. send "&7/horror add chest &aPermet d'ajoutez un coffre que tu regard"
  561. send "&7/horror remove (Cordonné) &apermet de supprimer le JeryCan, Générateur ... ou tu a mis les cordonnés"
  562. send "&7/horror list (Générateur/Radio/JeryCan/spawn/spawn-tueur/chest) &aPermet de voir les cordonnées de tous les Générateur... et si tp en cliquant."
  563. send " "
  564. send "&7/admin-horror ou /horror-admin &aPermet de tester ou se give certaines choses. "
  565. send " "
  566. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  567. else:
  568. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  569. send " "
  570. send "&7/horror credits &aPermet de voir les credits"
  571. send " "
  572. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  573. else:
  574. if arg 2 is not set:
  575. if arg 1 is "credits":
  576. send "&7[&aVanozia&7] &2Minijeux créer par superrtutur. Toute droites Reservé (CopyRight.)"
  577. else:
  578. send "&7[&aVanozia&7] &cArgument non reconnu ou tu a oublié de mettre quelque chose."
  579. else:
  580. if player has permission "vanozia.staff":
  581. if arg 1 is "add":
  582. if arg 2 is "JeryCan":
  583. if targeted block is redstone block:
  584. set {targ.%player%} to "%location of targeted block%"
  585. set {z} to z-coordinate of targeted block
  586. set {x} to x-coordinate of targeted block
  587. set {y} to y-coordinate of targeted block
  588. wait 1 tick
  589. set {jea} to "%{x}% %{y}% %{z}%"
  590. set {jery} to false
  591. loop {JeryCan1::*}:
  592. if {jea} is "%loop-value%":
  593. send "&7[&aVanozia&7] &cCe JeryCan a dêja été ajoutez !"
  594. set {jery} to true
  595. if {jery} is true:
  596. stop
  597. else:
  598. send "&7[&aVanozia&7] &2JeryCan ajoutez avec succès !"
  599. add "%{jea}%" to {JeryCan1::*}
  600. else:
  601. send "&7[&aVanozia&7] &cTu doit regarder un JeryCan !"
  602. if arg 2 is "Générateur":
  603. if targeted block is iron block:
  604. set {targ.%player%} to "%location of targeted block%"
  605. set {z} to z-coordinate of targeted block
  606. set {x} to x-coordinate of targeted block
  607. set {y} to y-coordinate of targeted block
  608. set {jery} to false
  609. set {jea} to "%{x}% %{y}% %{z}%"
  610. loop {Generateur::*}:
  611. if {jea} is "%loop-value%":
  612. send "&7[&aVanozia&7] &cCe Générateur a dêja été ajoutez !"
  613. set {jery} to true
  614. if {jery} is true:
  615. stop
  616. else:
  617. send "&7[&aVanozia&7] &2Générateur ajoutez avec succès !"
  618. add "%{jea}%" to {Generateur::*}
  619. else:
  620. send "&7[&aVanozia&7] &cTu doit regarder un Générateur !"
  621. if arg 2 is "Radio":
  622. if targeted block is sea lantern:
  623. set {targ.%player%} to "%location of targeted block%"
  624. set {z} to z-coordinate of targeted block
  625. set {x} to x-coordinate of targeted block
  626. set {y} to y-coordinate of targeted block
  627. set {jery} to false
  628. set {jea} to "%{x}% %{y}% %{z}%"
  629. loop {Radio::*}:
  630. if {jea} is "%loop-value%":
  631. send "&7[&aVanozia&7] &cCette Radio a dêja été ajoutez !"
  632. set {jery} to true
  633. if {jery} is true:
  634. stop
  635. else:
  636. send "&7[&aVanozia&7] &2Radio ajoutez avec succès !"
  637. add "%{jea}%" to {Radio::*}
  638. else:
  639. send "&7[&aVanozia&7] &cTu doit regarder une Radio !"
  640. if arg 2 is "chest" or "chests":
  641. if targeted block is chest or trapped chest:
  642. set {targ.%player%} to "%location of targeted block%"
  643. set {z} to z-coordinate of targeted block
  644. set {x} to x-coordinate of targeted block
  645. set {y} to y-coordinate of targeted block
  646. set {jery} to false
  647. set {jea} to "%{x}% %{y}% %{z}%"
  648. loop {chest::*}:
  649. if {jea} is "%loop-value%":
  650. send "&7[&aVanozia&7] &cCe coffre a dêja été ajoutez !"
  651. set {jery} to true
  652. if {jery} is true:
  653. stop
  654. else:
  655. send "&7[&aVanozia&7] &2Coffre ajoutez avec succès !"
  656. add "%{jea}%" to {chest::*}
  657. set {loot.%{x}% %{y}% %{z}%} to true
  658. else:
  659. send "&7[&aVanozia&7] &cTu doit regarder un coffre !"
  660. if arg 2 is "spawn-tueur":
  661. set {jery} to false
  662. set {z} to z-coordinate of player
  663. set {x} to x-coordinate of player
  664. set {y} to y-coordinate of player
  665. set {spawntz} to "%{x}% %{y}% %{z}%"
  666. wait 1 tick
  667. loop {spawntz::*}:
  668. if {spawntz} is "%loop-value%":
  669. send "&7[&aVanozia&7] &cSpawn dêja ajoutez !"
  670. set {jery} to true
  671. if {jery} is true:
  672. stop
  673. else:
  674. add "%{spawntz}%" to {spawntz::*}
  675. send "&7[&aVanozia&7] &2Spawn pour le tueur ajoutez !"
  676. if arg 2 is "spawn":
  677. set {jery} to false
  678. set {z} to z-coordinate of player
  679. set {x} to x-coordinate of player
  680. set {y} to y-coordinate of player
  681. set {spawnjz} to "%{x}% %{y}% %{z}%"
  682. wait 1 tick
  683. loop {spawnjz::*}:
  684. if {spawnjz} is "%loop-value%":
  685. send "&7[&aVanozia&7] &cSpawn dêja ajoutez !"
  686. set {jery} to true
  687. if {jery} is true:
  688. stop
  689. else:
  690. add "%{spawnjz}%" to {spawnjz::*}
  691. send "&7[&aVanozia&7] &2Spawn pour Innocent/Policier ajoutez !"
  692.  
  693. else if arg 2 is not "Radio" or "JeryCan" or "Générateur" or "spawn" or "spawn-tueur" or "chest" or "chests":
  694. send "&7[&aVanozia&7] &cCeci n'existe pas il y'a que Générateur/Radio/JeryCan/spawn-tueur/spawn/chest !"
  695. if arg 1 is "remove":
  696. if arg 2 is set:
  697. set {tet} to false
  698. wait 1 tick
  699. loop {Radio::*}:
  700. if "%arg 2%" is "%loop-value%":
  701. set {tet} to true
  702. loop {Generateur::*}:
  703. if "%arg 2%" is "%loop-value%":
  704. set {tet} to true
  705. loop {JeryCan1::*}:
  706. if "%arg 2%" is "%loop-value%":
  707. set {tet} to true
  708. loop {spawntz::*}:
  709. if "%arg 2%" is "%loop-value%":
  710. set {tet} to true
  711. loop {spawnjz::*}:
  712. if "%arg 2%" is "%loop-value%":
  713. set {tet} to true
  714. loop {chest::*}:
  715. if "%arg 2%" is "%loop-value%":
  716. set {tet} to true
  717. wait 1 tick
  718. if {tet} is true:
  719. remove "%arg 2%" from {JeryCan1::*}
  720. remove "%arg 2%" from {Radio::*}
  721. remove "%arg 2%" from {Generateur::*}
  722. remove "%arg 2%" from {spawntz::*}
  723. remove "%arg 2%" from {spawnjz::*}
  724.  
  725.  
  726.  
  727. remove "%arg 2%" from {chest::*}
  728. delete {loot.%arg 2%}
  729. send "&7[&aVanozia&7] &2Objet ou spawn supprimée !"
  730. else:
  731. send "&7[&aVanozia&7] &cil n'y a rien a ses Coordonées !"
  732. else:
  733. send "&7[&aVanozia&7] &cVous devez precisez les cordonnés pour savoir faite /horror list (Générateur/Radio/JeryCan/spawn/spawn-tueur/chest)"
  734. if arg 1 is "list":
  735. if arg 2 is "Générateur":
  736. if {Generateur::*} is set:
  737. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  738. loop {Generateur::*}:
  739. send "&7[&aVanozia&7] &2%loop-value%"
  740. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  741. else:
  742. send "&7[&aVanozia&7] &cIl n'y a aucun Générateur !"
  743. if arg 2 is "Radio":
  744. if {Radio::*} is set:
  745. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  746. loop {Radio::*}:
  747. send "&7[&aVanozia&7] &2%loop-value%"
  748. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  749. else:
  750. send "&7[&aVanozia&7] &cIl n'y a aucune Radio !"
  751. if arg 2 is "chest":
  752. if {chest::*} is set:
  753. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  754. loop {chest::*}:
  755. send "&7[&aVanozia&7] &2%loop-value%"
  756. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  757. else:
  758. send "&7[&aVanozia&7] &cIl n'y a aucun coffre !"
  759. if arg 2 is "JeryCan":
  760. if {JeryCan1::*} is set:
  761. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  762. loop {JeryCan1::*}:
  763. send "&7[&aVanozia&7] &2%loop-value%"
  764. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  765. else:
  766. send "&7[&aVanozia&7] &cIl n'y a aucun JeryCan !"
  767. if arg 2 is "spawn":
  768. if {spawnjz::*} is set:
  769. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  770. loop {spawnjz::*}:
  771. send "&7[&aVanozia&7] &2%loop-value%"
  772. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  773. else:
  774. send "&7[&aVanozia&7] &cIl n'y a aucun spawn pour Innocent/Policier !"
  775. if arg 2 is "spawn-tueur":
  776. if {spawntz::*} is set:
  777. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  778. loop {spawntz::*}:
  779. send "&7[&aVanozia&7] &2%loop-value%"
  780. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  781. else:
  782. send "&7[&aVanozia&7] &cIl n'y a aucun spawn pour le tueur !"
  783. else if arg 2 is not "JeryCan" or "Générateur" or "Radio" or "spawn" or "spawn-tueur" or "chest" or "chests":
  784. send "&7[&aVanozia&7] &cTu doit mettre JeryCan/Générateur/Radio/chest !"
  785.  
  786. else:
  787. send "&7[&aVanozia&7] &cTu n'est pas membre du staff !"
  788.  
  789. on join:
  790. set {SousRole.%player%} to "&cAucun"
  791.  
  792.  
  793.  
  794. command /admin-autre [<text>] [<text>] [<text>]:
  795. permission: vanozia.staff
  796. permission message: &7[&aVanozia&7] &cTu n'est pas membre du staff !
  797. trigger:
  798. if arg 1 is not set:
  799. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  800. send " "
  801. send "&a/admin-autre add (barrier) &7Permet d'ajoutez des barrière."
  802. send "&a/admin-autre list (barrier) &7Permet de voir les barrière."
  803. send "&a/admin-autre remove (barrier cordo) &7Permet de supprimer une barrière."
  804. send " "
  805. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  806. else if arg 1 is set:
  807. if arg 1 is "list" or "add" or "remove":
  808. if arg 2 is not set:
  809. send "&7[&aVanozia&7] &cTu doit mettre soit coordonnée ou (barrier)"
  810. else if arg 2 is set:
  811. if arg 1 is "list":
  812. if arg 2 is "barrier":
  813. if arg 3 is set:
  814. send "&7[&aVanozia&7] &cArgument 3 ne doit pas être mis !"
  815. else:
  816. if {barrier2::*} is set:
  817. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  818. loop {barrier2::*}:
  819. send "%loop-value%"
  820. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  821. else:
  822. send "&7[&aVanozia&7] &cAucune barrière."
  823. else if arg 1 is not "list":
  824. if arg 3 is not set:
  825. send "&7[&aVanozia&7] &cTu doit precisez des coordonnées!"
  826. else if arg 3 is set:
  827. if arg 1 is "add":
  828. set {checkbar} to false
  829. wait 1 tick
  830. loop {barrier2::*}:
  831. if loop-value is "%arg 2% %arg 3%":
  832. set {checkbar} to true
  833. if {checkbar} is true:
  834. send "&7[&aVanozia&7] &cBarrière dêja ajoutez !"
  835. else if {checkbar} is false:
  836. send "&7[&aVanozia&7] &2Barrière ajoutez !"
  837. add "%arg 2% %arg 3%" to {barrier2::*}
  838. else if arg 1 is "remove":
  839. set {checkbar} to false
  840. wait 1 tick
  841. loop {barrier2::*}:
  842. if loop-value is "%arg 2% %arg 3%":
  843. set {checkbar} to true
  844. if {checkbar} is false:
  845. send "&7[&aVanozia&7] &cIl n'y a pas de barrière a ces coordonnées !"
  846. else if {checkbar} is true:
  847. send "&7[&aVanozia&7] &2Barrière supprimée !"
  848. remove "%arg 2% %arg 3%" from {barrier2::*}
  849.  
  850.  
  851.  
  852. else:
  853. send "&7[&aVanozia&7] &clist ou remove ou add !"
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861. on join:
  862. set {role.%player%} to "&cAucun"
  863.  
  864.  
  865. command /pay [<text>] [<number>]:
  866. trigger:
  867. if arg 1 is not set:
  868. send "&7[&aVanozia&7] &cFaites: &2/pay <Joueur> <montant>"
  869. else if arg 1 is set:
  870. if arg 2 is set:
  871. if arg 2 is set:
  872. if arg 2 > 0:
  873. if name of player is "%arg 1%":
  874. send "&7[&aVanozia&7] &cTu peut pas t'envoyée de l'argent !"
  875. else:
  876. set {verifline} to false
  877. loop all players:
  878. if name of loop-player is "%arg 1%":
  879. set {verifline} to true
  880. if {verifline} is false:
  881. send "&7[&aVanozia&7] &cLe joueur &b%arg 1% &cn'est pas connecté !"
  882. else if {verifline} is true:
  883. if {money.%player%} >= arg 2:
  884. send "&7[&aVanozia&7] &2Vous avez bien envoyée &b%arg 2% &2Horror a &b%arg 1% &2!"
  885. remove arg 2 from {money.%player%}
  886. add arg 2 to {money.%arg 1%}
  887. loop all players:
  888. if name of loop-player is "%arg 1%":
  889. message "&7[&aVanozia&7] &b%player% &2vous a donné &b%arg 2% &2Horror !" to loop-player
  890. else:
  891. send "&7[&aVanozia&7] &cTu n'a pas assez d'horror !"
  892. else:
  893. send "&7[&aVanozia&7] &cNombre negatifs interdit !"
  894.  
  895. else:
  896. send "&7[&aVanozia&7] &cVeillez precisez un nombre !"
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907. on join:
  908. wait 2 seconds
  909. send "&7[&aVanozia&7] &c&lVeillez absolument cliquer sur le lien ci dessous et de vous y rendre pour avoir une musique pour une meilleur ambiance en jeu !"
  910. execute player command "/jukebox"
  911.  
  912.  
  913. on damage:
  914. if damage was caused by projectile:
  915. broadcast "&7[&aVanozia&7] &b%attacker% &ca ralenti quelqu'un !"
  916. set victim's walking speed to 0.1
  917. apply blindness 1 to the victim for 8 seconds
  918. wait 7 seconds
  919. set victim's walking speed to 0.2
  920.  
  921. on join:
  922. set {_result} to result of connect to "https://api.mojang.com/users/profiles/minecraft/%player%"
  923. if {_result} is "":
  924. execute console command "/skin set %player% recher"
  925. else:
  926. execute console command "/skin set %player% %player%"
  927.  
  928.  
  929. on join:
  930. execute console command "/mv tp %player% Hub"
  931. wait 1 seconds
  932. send player title "&aChargement..." with subtitle "&c&lVanozia Horror" for 5 seconds
  933. execute console command "/minecraft:tp %player% 8.5 72 8.5"
  934. wait 5 seconds
  935. send player title "&aChargé!" with subtitle "&c&lVanozia Horror" for 3 seconds
  936. execute console command "/minecraft:tp %player% 8.5 68 8.5"
  937.  
  938. on right click on redstone block:
  939. if {enjeu.%player%} is true:
  940. set block at event-block to air
  941. send "&7[&aVanozia&7] &cTu a trouvé 1 JeryCan !"
  942. broadcast "&7[&aVanozia&7] &b%player% &ca trouvé un JeryCan !"
  943. if {actu1} is "3 JeryCan":
  944. set {actu1} to "2 JeryCan"
  945. stop
  946. if {actu1} is "2 JeryCan":
  947. set {actu1} to "1 JeryCan"
  948. stop
  949. if {actu1} is "1 JeryCan":
  950. set {actu1} to "1 Générateur"
  951. stop
  952. else:
  953. send "&7[&aVanozia&7] &cTu doit être en jeu !"
  954.  
  955. on right click on iron block:
  956. if {enjeu.%player%} is true:
  957. if {actu1} is "1 Générateur":
  958. set {actu1} to "1 Radio"
  959. send "&7[&aVanozia&7] &cTu a trouvé le Générateur"
  960. broadcast "&7[&aVanozia&7] &b%player% &ca trouvé le Générateur !"
  961. else if {actu1} contain "JeryCan":
  962. send "&7[&aVanozia&7] &cIl manque des JeryCan !"
  963. else if {actu1} is "1 Radio" or "&aS'enfuir !":
  964. send "&7[&aVanozia&7] &cLe Générateur est dêja actif !"
  965. else if {actu1} contain "Attendre":
  966. send "&7[&aVanozia&7] &cLe Générateur est dêja actif !"
  967. else:
  968. send "&7[&aVanozia&7] &ctu doit être en jeu !"
  969.  
  970.  
  971.  
  972. on damage:
  973. if {enjeu.%attacker%} is true:
  974. if {tueur} is "%attacker%":
  975. execute console command "/jukebox music %victim% https://cutt.ly/hprcYR"
  976. wait 10 seconds
  977. execute console command "/jukebox stop %victim%"
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984. on right click on sea lantern:
  985. if {enjeu.%player%} is true:
  986. if {actu1} is "1 Radio":
  987. set {secs} to 120
  988. set {actu1} to "&aAttendre &b%{secs}% s"
  989. send "&7[&aVanozia&7] &cTu a trouvé la Radio"
  990. broadcast "&7[&aVanozia&7] &b%player% &ca trouvé la Radio !"
  991. loop 120 times:
  992. wait 1 seconds
  993. remove 1 from {secs}
  994. set {actu1} to "&aAttendre &b%{secs}% s"
  995. set {actu1} to "&aS'enfuir !"
  996. broadcast "&7[&aVanozia&7] &2Vite ! Toutes les Survivant et Policiers enfuiyais vous !" in world "Horror"
  997. wait 1 seconds
  998. execute console command "/§play4"
  999.  
  1000.  
  1001. else if {actu1} contain "JeryCan":
  1002. send "&7[&aVanozia&7] &cLe Générateur doit être Actif !"
  1003. else if {actu1} is "1 Générateur":
  1004. send "&7[&aVanozia&7] &cLe Générateur doit être actif !"
  1005. else:
  1006. send "&7[&aVanozia&7]&cTu doit être en jeu !"
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016. every 1 seconds:
  1017. loop all players:
  1018. if loop-player is in "Horror":
  1019. wipe loop-player's sidebar
  1020. set name of sidebar of loop-player to "&a&lVanozia"
  1021. set score " " in sidebar of loop-player to 11
  1022. set score "&cHorror" in sidebar of loop-player to 10
  1023. set score "&a " in sidebar of loop-player to 9
  1024. set score "&2Chercher:" in sidebar of loop-player to 8
  1025. set score "&b%{actu1}%" in sidebar of loop-player to 7
  1026. set score " " in sidebar of loop-player to 6
  1027. set score "&2Role:" in sidebar of loop-player to 5
  1028. set score "&b%{role.%loop-player%}%" in sidebar of loop-player to 4
  1029. set score " " in sidebar of loop-player to 3
  1030. set score "&2Grade:" in sidebar of loop-player to 2
  1031. set score "&b%{grade.%loop-player%}%" in sidebar of loop-player to 1
  1032.  
  1033. else if loop-player is in "Hub":
  1034. wipe loop-player's sidebar
  1035. set name of sidebar of loop-player to "&a&lVanozia"
  1036. set score "&c " in sidebar of loop-player to 15
  1037. set score "&cHorror" in sidebar of loop-player to 14
  1038. set score "&a " in sidebar of loop-player to 13
  1039. set score "&2Level:" in sidebar of loop-player to 12
  1040. set score "&r&b%{level.%loop-player%}%" in sidebar of loop-player to 11
  1041. set score "&2XP:" in sidebar of loop-player to 10
  1042. set score "&b%{xp.%loop-player%}%&7/&b%{xpmax.%loop-player%}%" in sidebar of loop-player to 9
  1043. set score "&b " in sidebar of loop-player to 8
  1044. set score "&2Argent Horror:" in sidebar of loop-player to 7
  1045. set score "&b%{money.%loop-player%}%" in sidebar of loop-player to 6
  1046. set score " " in sidebar of loop-player to 5
  1047. if {boost.%loop-player%} is "&cAucun":
  1048. set score "&cAucun Boost" in sidebar of loop-player to 4
  1049. if {boost.%loop-player%} is "&ax2":
  1050. set score "&aBoost x2" in sidebar of loop-player to 4
  1051. set score "&l " in sidebar of loop-player to 3
  1052. set score "&2Grade:" in sidebar of loop-player to 2
  1053. set score "&b%{grade.%loop-player%}%" in sidebar of loop-player to 1
  1054. else if loop-player is in "lobby":
  1055. wipe loop-player's sidebar
  1056. set name of sidebar of loop-player to "&a&lVanozia"
  1057. set score " " in sidebar of loop-player to 8
  1058. set score "&cHorror" in sidebar of loop-player to 7
  1059. set score " " in sidebar of loop-player to 6
  1060. set score "&2Lancement:" in sidebar of loop-player to 5
  1061. set score "&b%{launch}%" in sidebar of loop-player to 4
  1062. set score " " in sidebar of loop-player to 3
  1063. set score "&2Grade:" in sidebar of loop-player to 2
  1064. set score "&b%{grade.%loop-player%}%" in sidebar of loop-player to 1
  1065.  
  1066. on load:
  1067. set {actu1} to "3 JeryCan"
  1068.  
  1069.  
  1070. on load:
  1071. set {lanc} to 30
  1072.  
  1073. command /setgrade [<text>] [<text>] [<text>]:
  1074. trigger:
  1075. if player has permission "vanozia.staff.fondateur":
  1076. if arg 1 is set:
  1077. if arg 2 is set:
  1078. if arg 3 is set:
  1079. send "&7[&aVanozia&7] &2Tu a mis le grade de: &b%arg 1% &2a &b%arg 2% &2Avec le grade Essentials: &b%arg 3%&2!"
  1080. set {grade.%arg 1%} to "%arg 2%"
  1081. execute player command "/manuadd %arg 1% %arg 3%"
  1082. else:
  1083. send "&7[&aVanozia&7] &2Tu a mis le grade de: &b%arg 1% &2a &b%arg 2% &2Avec le grade Essentials: &b%arg 2%&2!"
  1084. set {grade.%arg 1%} to "%arg 2%"
  1085. execute player command "/manuadd %arg 1% %arg 2%"
  1086. else:
  1087. send "&7[&aVanozia&7] &cMet le grade !"
  1088. else:
  1089. send "&7[&aVanozia&7] &cMet le Joueur !"
  1090. else:
  1091. send "&7[&aVanozia&7] &cTu n'est pas Fondateur !"
  1092.  
  1093.  
  1094. on first join:
  1095. if player is op:
  1096. set {grade.%player%} to "Fondateur"
  1097. else:
  1098. set {grade.%player%} to "Joueur"
  1099.  
  1100.  
  1101.  
  1102. # MONEY
  1103.  
  1104.  
  1105.  
  1106. options:
  1107. moneyb: 0 #l'argent de base
  1108.  
  1109. on join:
  1110. clear the player's inventory
  1111. if {money.%player%} is not set:
  1112. set {money.%player%} to {@moneyb}
  1113.  
  1114. command /balance [<player>]:
  1115. trigger:
  1116. if arg 1 is set:
  1117. if player has permission "vanozia.staff":
  1118. send "&7[&aVanozia&7] &7Argent Horror de &2%arg 1%&2: &b%{money.%arg 1%}%"
  1119. else:
  1120. send "&7[&aVanozia&7] &cTu n'est pas membre du staff !"
  1121. else:
  1122. send "&7[&aVanozia&7] &7Argent Horror: &b%{money.%player%}%"
  1123.  
  1124.  
  1125. command /money [<player>]:
  1126. trigger:
  1127. if arg 1 is set:
  1128. if player has permission "vanozia.staff":
  1129. send "&7[&aVanozia&7] &7Argent Horror de &2%arg 1%&2: &b%{money.%arg 1%}%"
  1130. else:
  1131. send "&7[&aVanozia&7] &cTu n'est pas membre du staff !"
  1132. else:
  1133. send "&7[&aVanozia&7] &7Argent Horror: &b%{money.%player%}%"
  1134.  
  1135. command /eco [<text>] [<player>] [<number>]:
  1136. permission: vanozia.staff.admin
  1137. permission message: &7[&aVanozia&7] &cTu n'est pas Admin!
  1138. trigger:
  1139. if arg 1 is not set:
  1140. send "&7[&aVanozia&7] &cTu doit faire /eco help!"
  1141. stop
  1142. if arg 1 is "add" or "remove" or "reset" or "add" or "set" or "help" or "aide":
  1143. if arg 2 is not set:
  1144. if arg 1 is "help" or "aide":
  1145. send "&7[&aVanozia&7] &2Voici la list des Arguments: &bAdd, Remove, Reset, set"
  1146. if arg 2 is set:
  1147. if arg 3 is set:
  1148. if arg 1 is "add":
  1149. set {money.%arg 2%} to {money.%arg 2%} + arg 3
  1150. wait 1 tick
  1151. send "&7[&aVanozia&7] &2Tu a bien ajoutez &b%arg 3% &2a &b%arg 2% &2Il est maintenante a &b%{money.%arg 2%}%&2!"
  1152. else if arg 1 is "remove":
  1153. set {money.%arg 2%} to {money.%arg 2%} - arg 3
  1154. send "&7[&aVanozia&7] &2Tu a bien supprimer &b%arg 3% &2a &b%arg 2% &2Il est maintenante a &b%{money.%arg 2%}%&2!"
  1155. if {money.%arg 2%} < 0:
  1156. send "&7[&aVanozia&7] &cUne erreur ses produise sont argent est inferieur a 0 donc on lui a mis a 0 !"
  1157. set {money.%arg 2%} to 0
  1158. else if arg 1 is "set":
  1159. set {money.%arg 2%} to arg 3
  1160. send "&7[&aVanozia&7] &2Tu a bien mis l'argent de &b%arg 2% &2a &b%arg 3% &2!"
  1161. else if arg 1 is not "reset":
  1162. send "&7[&aVanozia&7] &cTu doit preciser le nombre !"
  1163. else if arg 1 is "reset":
  1164. if arg 1 is "reset":
  1165. set {money.%arg 2%} to {@moneyb}
  1166. send "&7[&aVanozia&7] &2Tu a bien reset l'argent de &b%arg 2% &2!"
  1167. else if arg 1 is not "aide" or "help":
  1168. send "&7[&aVanozia&7] &cTu doit preciser le Joueur !"
  1169.  
  1170. else:
  1171. send "&7[&aVanozia&7] &cArgument non reconnu !"
  1172.  
  1173.  
  1174.  
  1175.  
  1176. # MAGASIN
  1177.  
  1178.  
  1179.  
  1180.  
  1181. options:
  1182. prixfer: 100
  1183. prixor: 500
  1184. permdiam: vanozia.vip
  1185. prefixshop: &7[&aVano&eShop&7]
  1186.  
  1187.  
  1188.  
  1189.  
  1190. on right click with 266:
  1191. wait 1 tick
  1192. open chest with 1 rows named "&eBoutique" to player
  1193. wait 2 tick
  1194. if {shopiron.%player%} is true:
  1195. format slot 2 of player with iron ingot named "&aShop Fer" with lore "&aAcheté √ !" to close then run [make player execute command "/§shopiron"]
  1196. else:
  1197. format slot 2 of player with iron ingot named "&aShop Fer" with lore "&cNon Acheté (&b{@prixfer} Horror&c) !" to close then run [make player execute command "/§shopiron"]
  1198. if {shopgold.%player%} is true:
  1199. format slot 4 of player with gold ingot named "&aShop Or" with lore "&aAcheté √ !" to close then run [make player execute command "/§shopgold"]
  1200. else:
  1201. format slot 4 of player with gold ingot named "&aShop Or" with lore "&cNon Acheté (&b{@prixor} Horror&c) !" to close then run [make player execute command "/§shopgold"]
  1202. if player has permission "{@permdiam}":
  1203. format slot 6 of player with diamond named "&aShop Diamant" with lore "&aDisponible √ !" to close then run [make player execute command "/§shopdiam"]
  1204. else:
  1205. format slot 6 of player with diamond named "&aShop Diamant" with lore "&cNon &eVIP &c !" to close
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211. command /§shopgold:
  1212. trigger:
  1213. if {shopgold.%player%} is true:
  1214. wait 3 tick
  1215. open chest with 1 rows named "&aMagasin Or" to player
  1216. wait 1 tick
  1217. format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shop"]
  1218. format slot 2 of player with stone sword named "&aArmes" to close then run [make player execute command "/§goldarmes"]
  1219. else:
  1220. if {money.%player%} >= {@prixor}:
  1221. remove {@prixor} from {money.%player%}
  1222. set {shopgold.%player%} to true
  1223. send "{@prefixshop} &aShop Or Acheté !"
  1224. else:
  1225. send "{@prefixshop} &cTu n'a pas assez de Horror !"
  1226.  
  1227.  
  1228. command /§goldarmes:
  1229. trigger:
  1230. wait 3 tick
  1231. open chest with 1 rows named "&aMagasin Or" to player
  1232. wait 1 tick
  1233. format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shopgold"]
  1234. if {armes.%player%} is "or":
  1235. format slot 2 of player with golden sword named "&aEpée en Or" with lore "&aSelectionné √" to close
  1236. else:
  1237. format slot 2 of player with golden sword named "&aEpée en Or" with lore "&cNon Selectionné || &c(500 Horror si non acheté)" to close then run [make player execute command "/§ore"]
  1238. if {armes.%player%} is "fer":
  1239. format slot 3 of player with iron sword named "&aEpée en Fer" with lore "&aSelectionné √" to close
  1240. else:
  1241. format slot 3 of player with iron sword named "&aEpée en Fer" with lore "&cNon Selectionné || &c(1000 Horror si non acheté)" to close then run [make player execute command "/§irone"]
  1242.  
  1243.  
  1244.  
  1245. command /§shopdiam:
  1246. trigger:
  1247. if player has permission "vanozia.vip":
  1248. wait 3 tick
  1249. open chest with 1 rows named "&aMagasin Diamant" to player
  1250. wait 1 tick
  1251. format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shop"]
  1252. format slot 2 of player with stone sword named "&aArmes" to close then run [make player execute command "/§diamondarmes"]
  1253. format slot 3 of player with xp bottle named "&aBoost" to close then run [make player execute command "/§dboost"]
  1254. else:
  1255. send "{@prefixshop} &cTu n'est pas &eVIP &c!"
  1256.  
  1257.  
  1258. command /§dboost:
  1259. trigger:
  1260. wait 3 tick
  1261. open chest with 1 rows named "&aMagasin Diamant" to player
  1262. wait 1 tick
  1263. format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shopdiam"]
  1264. if {boost.%player%} is "&cAucun":
  1265. format slot 2 of player with diamond sword named "&aBoost 1" with lore "&cAchat: &b500 Horror || &7Pour 2 Partie x2" to close then run [make player execute command "/§boost1"]
  1266. else:
  1267. format slot 2 of player with diamond sword named "&aBoost 1" with lore "&cDêja un Boost" to close
  1268.  
  1269.  
  1270.  
  1271. command /§boost1:
  1272. trigger:
  1273. if {money.%player%} >= 500:
  1274. remove 500 from {money.%player%}
  1275. set {boost.%player%} to "&ax2"
  1276. set {expire.%player%} to "2"
  1277. send "&7[&aVanozia&7] &2Achat pour Boost x2 effectuée."
  1278. else:
  1279. send "&7[&aVanozia&7] &cTu n'a pas assez d'Horror !"
  1280.  
  1281.  
  1282.  
  1283. command /§diamondarmes:
  1284. trigger:
  1285. wait 3 tick
  1286. open chest with 1 rows named "&aMagasin Diamant" to player
  1287. wait 1 tick
  1288. format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shopdiam"]
  1289. if {armes.%player%} is "diamant":
  1290. format slot 2 of player with diamond sword named "&aEpée en Diamant" with lore "&aSelectionné √" to close
  1291. else:
  1292. format slot 2 of player with diamond sword named "&aEpée en Diamant" with lore "&cNon Selectionné || &c(5000 Horror si non acheté)" to close then run [make player execute command "/§diamante"]
  1293.  
  1294.  
  1295.  
  1296. command /§shopiron:
  1297. trigger:
  1298. if {shopiron.%player%} is true:
  1299. wait 3 tick
  1300. open chest with 1 rows named "&aMagasin Fer" to player
  1301. wait 1 tick
  1302. format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shop"]
  1303. format slot 2 of player with head named "&aSkin" to close then run [make player execute command "/§ironskin"]
  1304. format slot 3 of player with stone sword named "&aArmes" to close then run [make player execute command "/§ironarmes"]
  1305. else:
  1306. if {money.%player%} >= {@prixfer}:
  1307. remove {@prixfer} from {money.%player%}
  1308. set {shopiron.%player%} to true
  1309. send "{@prefixshop} &aShop Fer Acheté !"
  1310. else:
  1311. send "{@prefixshop} &cTu n'a pas assez de Horror !"
  1312.  
  1313. command /§ironarmes:
  1314. trigger:
  1315. wait 3 tick
  1316. open chest with 1 rows named "&aMagasin Fer" to player
  1317. wait 1 tick
  1318. format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shopiron"]
  1319. if {armes.%player%} is "bois":
  1320. format slot 2 of player with wooden sword named "&aEpée en Bois" with lore "&aSelectionné √" to close
  1321. else:
  1322. format slot 2 of player with wooden sword named "&aEpée en Bois" with lore "&cNon Selectionné " to close then run [make player execute command "/§boise"]
  1323. if {armes.%player%} is "stone":
  1324. format slot 3 of player with stone sword named "&aEpée en Pierre" with lore "&aSelectionné √" to close
  1325. else:
  1326. format slot 3 of player with stone sword named "&aEpée en Pierre" with lore "&cNon Selectionné || &c(200 Horror si non acheté)" to close then run [make player execute command "/§stonee"]
  1327.  
  1328.  
  1329.  
  1330. command /§boise:
  1331. trigger:
  1332. set {armes.%player%} to "bois"
  1333. send "&7[&aVanozia&7] &cL'Armes a bien été changé."
  1334.  
  1335.  
  1336. command /§stonee:
  1337. trigger:
  1338. if {achatstone} is true:
  1339. set {armes.%player%} to "stone"
  1340. send "&7[&aVanozia&7] &cL'Armes a bien été changé."
  1341. else:
  1342. if {money.%player%} >= 200:
  1343. set {armes.%player%} to "stone"
  1344. send "&7[&aVanozia&7] &cL'Armes a bien été changé est acheté."
  1345. set {achatstone} to true
  1346. execute console command "/eco remove %player% 200"
  1347. else:
  1348. send "&7[&aVanozia&7] &cTu n'a pas assez d'Horror !"
  1349.  
  1350. command /§diamante:
  1351. trigger:
  1352. if {achatdiamant} is true:
  1353. set {armes.%player%} to "diamant"
  1354. send "&7[&aVanozia&7] &cL'Armes a bien été changé."
  1355. else:
  1356. if {money.%player%} >= 5000:
  1357. set {armes.%player%} to "diamant"
  1358. send "&7[&aVanozia&7] &cL'Armes a bien été changé est acheté."
  1359. set {achatdiamant} to true
  1360. execute console command "/eco remove %player% 5000"
  1361. else:
  1362. send "&7[&aVanozia&7] &cTu n'a pas assez d'Horror !"
  1363.  
  1364.  
  1365. command /§irone:
  1366. trigger:
  1367. if {achatfer} is true:
  1368. set {armes.%player%} to "fer"
  1369. send "&7[&aVanozia&7] &cL'Armes a bien été changé."
  1370. else:
  1371. if {money.%player%} >= 1000:
  1372. set {armes.%player%} to "fer"
  1373. send "&7[&aVanozia&7] &cL'Armes a bien été changé est acheté."
  1374. set {achatfer} to true
  1375. execute console command "/eco remove %player% 1000"
  1376. else:
  1377. send "&7[&aVanozia&7] &cTu n'a pas assez d'Horror !"
  1378.  
  1379. command /§ore:
  1380. trigger:
  1381. if {achatore} is true:
  1382. set {armes.%player%} to "or"
  1383. send "&7[&aVanozia&7] &cL'Armes a bien été changé."
  1384. else:
  1385. if {money.%player%} >= 500:
  1386. set {armes.%player%} to "or"
  1387. send "&7[&aVanozia&7] &cL'Armes a bien été changé est acheté."
  1388. set {achatore} to true
  1389. execute console command "/eco remove %player% 500"
  1390. else:
  1391. send "&7[&aVanozia&7] &cTu n'a pas assez d'Horror !"
  1392.  
  1393. command /§ironskin:
  1394. trigger:
  1395. wait 3 tick
  1396. open chest with 1 rows named "&aMagasin Fer" to player
  1397. wait 1 tick
  1398. format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shopiron"]
  1399. if {skin.%player%} is "votre":
  1400. format slot 2 of player with head named "&aVotre Skin" with lore "&aSelectionné √" to close
  1401. else:
  1402. format slot 2 of player with head named "&aVotre Skin" with lore "&cNon Selectionné " to close then run [make player execute command "/§votreskin"]
  1403. if {skin.%player%} is "slender":
  1404. format slot 3 of player with head named "&aSlenderMan" with lore "&aSelectionné √" to close
  1405. else:
  1406. format slot 3 of player with head named "&aSlenderMan" with lore "&cNon Selectionné " to close then run [make player execute command "/§slender"]
  1407.  
  1408.  
  1409. command /§slender:
  1410. trigger:
  1411. set {skin.%player%} to "slender"
  1412. send "&7[&aVanozia&7] &cVotre skin a bien été mis !"
  1413. execute console command "/skin set %player% slender"
  1414.  
  1415. command /§votreskin:
  1416. trigger:
  1417. set {skin.%player%} to "votre"
  1418. send "&7[&aVanozia&7] &cVotre skin a bien été mis !"
  1419. execute console command "/skin set %player% %player%"
  1420.  
  1421. on join:
  1422. wait 2 tick
  1423. if {skin.%player%} is not set:
  1424. set {skin.%player%} to "votre"
  1425. if {skin.%player%} is "votre":
  1426. execute console command "/skin set %player% %player%"
  1427. if {skin.%player%} is "slender":
  1428. execute console command "/skin set %player% slender"
  1429.  
  1430.  
  1431. command /§shop:
  1432. trigger:
  1433. wait 2 tick
  1434. open chest with 1 rows named "&eBoutique" to player
  1435. wait 2 tick
  1436. if {shopiron.%player%} is true:
  1437. format slot 2 of player with iron ingot named "&aShop Fer" with lore "&aAcheté √ !" to close then run [make player execute command "/§shopiron"]
  1438. else:
  1439. format slot 2 of player with iron ingot named "&aShop Fer" with lore "&cNon Acheté (&b{@prixfer} Horror&c) !" to close then run [make player execute command "/§shopiron"]
  1440. if {shopgold.%player%} is true:
  1441. format slot 4 of player with gold ingot named "&aShop Or" with lore "&aAcheté √ !" to close then run [make player execute command "/§shopgold"]
  1442. else:
  1443. format slot 4 of player with gold ingot named "&aShop Or" with lore "&cNon Acheté (&b{@prixor} Horror&c) !" to close then run [make player execute command "/§shopgold"]
  1444. if player has permission "{@permdiam}":
  1445. format slot 6 of player with diamond named "&aShop Diamant" with lore "&aDisponible √ !" to close then run [make player execute command "/§shopdiam"]
  1446. else:
  1447. format slot 6 of player with diamond named "&aShop Diamant" with lore "&cNon &eVIP &c !" to close
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455. # LOBBY - GAMEPLAY
  1456.  
  1457.  
  1458.  
  1459. options:
  1460. maxplayer: 10
  1461.  
  1462. on death:
  1463. if victim is player:
  1464. force respawn the victim
  1465. if {tueur} is "%victim%":
  1466. broadcast "&7[&aVanozia&7] &cLe Tueur est decedé."
  1467. set {joueurl} to 0
  1468. wait 5 seconds
  1469. loop all players:
  1470. if {enjeu.%loop-player%} is true:
  1471. set {enjeu.%loop-player%} to false
  1472. set {lobby.%loop-player%} to false
  1473. set player's max health to 10
  1474. delete {murder}
  1475. delete {engame::*}
  1476. if {tueur} is not "%loop-player%":
  1477. if {boost.%loop-player%} is "&cAucun":
  1478. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1479. message " " to loop-player
  1480. message "&a&lFIN DE PARTIE." to loop-player
  1481. message "&2Tueur Decedé." to loop-player
  1482. message " " to loop-player
  1483. message "&cAucun Boost" to loop-player
  1484. message "&e+30 Horror pour avoir survecu." to loop-player
  1485. message "&e+15 XP"
  1486. message " " to loop-player
  1487. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1488. execute console command "/eco add %loop-player% 30"
  1489. execute console command "/addxp %loop-player% 15"
  1490. else if {boost.%loop-player%} is "&ax2":
  1491. if {expire.%loop-player%} = 1:
  1492. set {expire.%loop-player%} to "0"
  1493. set {boost.%loop-player%} to "&cAucun"
  1494. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1495. message " " to loop-player
  1496. message "&a&lFIN DE PARTIE." to loop-player
  1497. message "&2Tueur Decedé." to loop-player
  1498. message " " to loop-player
  1499. message "&2Boost 2" to loop-player
  1500. message "&e+&e&m30 &r&e60 Horror pour avoir survecu." to loop-player
  1501. message "&e+&e&m15 &r&e30 XP" to loop-player
  1502. message " " to loop-player
  1503. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1504. execute console command "/eco add %loop-player% 60"
  1505. execute console command "/addxp %loop-player% 30"
  1506. else if {expire.%loop-player%} > 0:
  1507. if {expire.%loop-player%} > 1:
  1508. remove 1 from {expire.%loop-player%}
  1509. set {expire.%loop-player%} to "0"
  1510. set {boost.%loop-player%} to "&cAucun"
  1511. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1512. message " " to loop-player
  1513. message "&a&lFIN DE PARTIE." to loop-player
  1514. message "&2Tueur Decedé." to loop-player
  1515. message " " to loop-player
  1516. message "&2Boost 2" to loop-player
  1517. message "&e+&e&m30 &r&e60 Horror pour avoir survecu." to loop-player
  1518. message "&e+&e&m15 &r&e30XP" to loop-player
  1519. message " " to loop-player
  1520. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1521. execute console command "/eco add %loop-player% 60"
  1522. execute console command "/addxp %loop-player% 30"
  1523. execute console command "/mv tp %loop-player% Hub"
  1524. clear the loop-player's inventory
  1525. wait 1 tick
  1526. set slot 2 of loop-player to a Compass named "&aJouer"
  1527. set slot 6 of loop-player to a golden ingot named "&eBoutique"
  1528. if {skin.%loop-player%} is "votre":
  1529. execute console command "/skin set %loop-player% %loop-player%"
  1530. if {skin.%loop-player%} is "slender":
  1531. execute console command "/skin %loop-player% slender"
  1532. delete {game}
  1533. set {jeu} to false
  1534. delete {tueur}
  1535. else:
  1536. if {enjeu.%victim%} is true:
  1537. remove 1 from {nombrej}
  1538. set {joueurl} to 0
  1539. set slot 2 of victim to a Compass named "&aJouer"
  1540. set slot 6 of victim to a golden ingot named "&eBoutique"
  1541. if {nombrej} >= 2:
  1542. stop
  1543. else:
  1544. broadcast "&7[&aVanozia&7] &cIl ne reste plus de survivant."
  1545. wait 5 seconds
  1546. loop all players:
  1547. if {enjeu.%loop-player%} is true:
  1548. set {enjeu.%loop-player%} to false
  1549. set {lobby.%loop-player%} to false
  1550. set player's max health to 10
  1551. delete {murder}
  1552. delete {engame::*}
  1553. if {tueur} is "%loop-player%":
  1554. if {boost.%loop-player%} is "&cAucun":
  1555. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1556. message " " to loop-player
  1557. message "&a&lFIN DE PARTIE." to loop-player
  1558. message "&2Tu a tué tout le monde." to loop-player
  1559. message " " to loop-player
  1560. message "&cAucun Boost" to loop-player
  1561. message "&e+30 Horror pour les avoirs tué." to loop-player
  1562. message "&e+15XP" to loop-player
  1563. message " " to loop-player
  1564. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1565. execute console command "/eco add %loop-player% 30"
  1566. else if {boost.%loop-player%} is "&ax2":
  1567. if {expire.%loop-player%} = 1:
  1568. set {expire.%loop-player%} to "0"
  1569. set {boost.%loop-player%} to "&cAucun"
  1570. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1571. message " " to loop-player
  1572. message "&a&lFIN DE PARTIE." to loop-player
  1573. message "&2Tu a tué tout le monde." to loop-player
  1574. message " " to loop-player
  1575. message "&2Boost 2" to loop-player
  1576. message "&e+&e&m30 &r&e60 Horror pour les avoirs tué" to loop-player
  1577. message "&e+&e&m15 &r&e30XP" to loop-player
  1578. message " " to loop-player
  1579. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1580. execute console command "/eco add %loop-player% 60"
  1581. execute console command "/addxp %loop-player% 30"
  1582. else if {expire.%loop-player%} > 0:
  1583. if {expire.%loop-player%} > 1:
  1584. remove 1 from {expire.%loop-player%}
  1585. set {expire.%loop-player%} to "0"
  1586. set {boost.%loop-player%} to "&cAucun"
  1587. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1588. message " " to loop-player
  1589. message "&a&lFIN DE PARTIE." to loop-player
  1590. message "&2Tu a tué tout le monde." to loop-player
  1591. message " " to loop-player
  1592. message "&2Boost 2" to loop-player
  1593. message "&e+&e&m30 &r&e60 Horror pour les avoirs tué" to loop-player
  1594. message "&e+&e&m15 &r&e30XP" to loop-player
  1595. message " " to loop-player
  1596. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1597. execute console command "/eco add %loop-player% 60"
  1598. execute console command "/addxp %loop-player% 30"
  1599. set loop-player's max health to 10
  1600. execute console command "/mv tp %loop-player% Hub"
  1601. clear the loop-player's inventory
  1602. wait 1 tick
  1603. set slot 2 of loop-player to a Compass named "&aJouer"
  1604. set slot 6 of loop-player to a golden ingot named "&eBoutique"
  1605. if {skin.%loop-player%} is "votre":
  1606. execute console command "/skin set %loop-player% %loop-player%"
  1607. if {skin.%loop-player%} is "slender":
  1608. execute console command "/skin %loop-player% slender"
  1609. delete {game}
  1610. set {jeu} to false
  1611. delete {tueur}
  1612.  
  1613.  
  1614. on quit:
  1615. if {tueur} is "%player%":
  1616. broadcast "&7[&aVanozia&7] &cLe Tueur s'est deconnecté."
  1617. wait 5 seconds
  1618. loop all players:
  1619. if {enjeu.%loop-player%} is true:
  1620. set {enjeu.%loop-player%} to false
  1621. set {lobby.%loop-player%} to false
  1622. delete {murder}
  1623. if {tueur} is not "%loop-player%":
  1624. execute console command "/eco add %loop-player% 10"
  1625. message "&7[&aVanozia&7] &2tu a reçu &b10 &2Horror pour avoir survecu !" to loop-player
  1626. clear the loop-player's inventory
  1627. execute console command "/mv tp %loop-player% Hub"
  1628. set player's max health to 10
  1629. clear the loop-player's inventory
  1630. wait 1 tick
  1631. set slot 2 of loop-player to a Compass named "&aJouer"
  1632. set slot 6 of loop-player to a golden ingot named "&eBoutique"
  1633. delete {game}
  1634. delete {engame::*}
  1635. set {jeu} to false
  1636. delete {tueur}
  1637.  
  1638.  
  1639.  
  1640. on join:
  1641. wait 4 seconds
  1642. set {lobby.%player%} to true
  1643. set {enjeu.%player%} to false
  1644. clear the player's inventory
  1645. wait 1 tick
  1646. set slot 2 of player to a Compass named "&aJouer"
  1647. set slot 6 of player to a golden ingot named "&eBoutique"
  1648.  
  1649. on right click with compass:
  1650. if name of tool is "&aJouer":
  1651. if {jeu} is true:
  1652. send "&7[&aVanozia&7] &cLe jeu est en cours. &7(Le Mode Spectateur n'est pas encore ajoutez)"
  1653. else:
  1654. if {nombrel} = {@maxplayer}:
  1655. send "&7[aVanozia&7] &cIl n'y a plus de plase disponible !"
  1656. else:
  1657.  
  1658. set {SousRole.%player%} to "&cAucun"
  1659. set player's max health to 10
  1660. add 1 to {nombrel}
  1661. set {echapp} to false
  1662. set {echap1} to false
  1663. set {echap2} to false
  1664. set {echap3} to false
  1665. set {echap4} to false
  1666. set {lobby.%player%} to true
  1667. send "&7[&aVanozia&7] &2Tu a rejoint le jeu !"
  1668. execute console command "/mv tp %player% lobby"
  1669. clear the player's inventory
  1670. wait 2 tick
  1671. set slot 8 of player to a 355 named "&cQuitter"
  1672. wait 10 ticks
  1673. loop all players:
  1674. if loop-player is in "lobby":
  1675. message "&7[&aVanozia&7] &b%player% &2a rejoint le jeu ! ( &b%{nombrel}% / {@maxplayer}&2 )" to loop-player
  1676. wait 3 tick
  1677. if {launcher} is true:
  1678. stop
  1679. else:
  1680. if {nombrel} >= 2:
  1681. set {launcher} to true
  1682. set {launch} to 30
  1683. loop 30 times:
  1684. wait 1 seconds
  1685. if {stop} is true:
  1686. set {stop} to false
  1687. set {launcher} to false
  1688. stop
  1689. else:
  1690. if {nombrel} >= 2:
  1691. wait 1 tick
  1692. if {launch} = 30:
  1693. broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b30 &2seconds !" in world "lobby"
  1694. if {launch} = 20:
  1695. broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b20 &2seconds !" in world "lobby"
  1696. if {launch} = 10:
  1697. broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b10 &2seconds !" in world "lobby"
  1698. if {launch} = 5:
  1699. broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b5 &2seconds !" in world "lobby"
  1700. if {launch} = 4:
  1701. broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b4 &2seconds !" in world "lobby"
  1702. if {launch} = 3:
  1703. broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b3 &2seconds !" in world "lobby"
  1704. if {launch} = 2:
  1705. broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b2 &2seconds !" in world "lobby"
  1706. if {launch} = 1:
  1707. broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b1 &2seconds !" in world "lobby"
  1708. execute console command "/§play"
  1709. set {launcher} to false
  1710. remove 1 from {launch}
  1711. else:
  1712. broadcast "&7[&aVanozia&7] &c Lancement annulé pas assez de joueur !" in world "lobby"
  1713. set {launch} to 30
  1714. set {stop} to true
  1715.  
  1716.  
  1717. command /play:
  1718. permission: vanozia.staff
  1719. permission message: &7[&aVanozia&7] &cTu n'est pas membre du staff !
  1720. trigger:
  1721. set {launcher} to false
  1722. execute console command "/§play"
  1723.  
  1724.  
  1725. on quit:
  1726. set {pouvoir.%player%} to false
  1727.  
  1728. on join:
  1729. set player's max health to 10
  1730.  
  1731.  
  1732. on death:
  1733. set victim's max health to 10
  1734.  
  1735. on quit:
  1736. set player's max health to 10
  1737.  
  1738. on load:
  1739. set {launcher} to false
  1740. set {launch} to 30
  1741. set {jeu} to false
  1742. set {game} to false
  1743. delete {engame::*}
  1744. delete {murder}
  1745. set {nombrej} to 0
  1746. set {game} to false
  1747. loop all players:
  1748. if {enjeu.%loop-player%} is true:
  1749. set {enjeu.%loop-player%} to false
  1750.  
  1751.  
  1752. on load:
  1753. loop all players:
  1754. if {lobby.%loop-player%} is true:
  1755. set {lobby.%loop-player%} to false
  1756. set {nombrel} to 0
  1757.  
  1758.  
  1759. command /§play:
  1760. trigger:
  1761. set {jeu} to true
  1762. set {nombrej} to {nombrel}
  1763. wait 1 tick
  1764. set {nombrel} to 0
  1765. loop all players:
  1766. if {lobby.%loop-player%} is true:
  1767. set {enjeu.%loop-player%} to true
  1768. set {role.%loop-player%} to "&cAucun"
  1769. set {lobby.%loop-player%} to false
  1770. set {pouvoir.%loop-player%} to false
  1771. wait 1 seconds
  1772. delete {game}
  1773. wait 1 tick
  1774. if {game} is not set:
  1775. set {game} to true
  1776. delete {murder}
  1777. delete {engame::*}
  1778. wait 1 tick
  1779. loop all players:
  1780. if {enjeu.%loop-player%} is true:
  1781. add "%loop-player%" to {engame::*}
  1782. if {nombrej} >= 2:
  1783. execute console command "/§play2"
  1784. else:
  1785. set {game} to false
  1786. set {nombrej} to 0
  1787. set {jeu} to false
  1788. loop all players:
  1789. if {enjeu.%loop-player%} is true:
  1790. execute console command "/mv tp %loop-player% Hub"
  1791. clear the loop-player's inventory
  1792. wait 1 tick
  1793. set slot 2 of loop-player to a Compass named "&aJouer"
  1794. set slot 6 of loop-player to a golden ingot named "&eBoutique"
  1795. set {enjeu.%loop-player%} to false
  1796. delete {engame::*}
  1797.  
  1798.  
  1799. on join:
  1800.  
  1801. set {lobby.%player%} to false
  1802. set {enjeu.%player%} to false
  1803.  
  1804.  
  1805.  
  1806.  
  1807. on join:
  1808. If {xp.%player%} is not set:
  1809. set {xp.%player%} to 0
  1810. If {xpmax.%player%} is not set:
  1811. set {xpmax.%player%} to 1000
  1812. If {level.%player%} is not set:
  1813. set {level.%player%} to 0
  1814.  
  1815. command /level [<player>]:
  1816. Trigger:
  1817. if arg 1 is not set:
  1818. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1819. send "&aXP: &7%{xp.%player%}% &2/ &7%{xpmax.%player%}%"
  1820. send "&aLevel: &7%{level.%player%}%"
  1821. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1822. else:
  1823. if player has permission "vanozia.staff":
  1824. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1825. send "&aXP: &7%{xp.%arg 1%}% &2/ &7%{xpmax.%arg 1%}%"
  1826. send "&aLevel: &7%{level.%arg 1%}%"
  1827. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1828. else:
  1829. send "&7[&aVanozia&7] &cTu n'est pas membre du staff !"
  1830.  
  1831. command /addxp [<player>] [<number>]:
  1832. permission: vanozia.staff.admin
  1833. trigger:
  1834. if arg 1 is not set:
  1835. send "&7[&aVanozia&7] &cTu doit mettre le pseudo !"
  1836. else if arg 2 is not set:
  1837. send "&7[&aVanozia&7] &cTu doit preciser le montant !"
  1838. else:
  1839. if arg 1 is set:
  1840. if arg 2 is set:
  1841. set {xp.%arg 1%} to {xp.%arg 1%} + arg 2
  1842. message "&7[&aVanozia&7] &2Tu a gagner &b%arg 2% &2XP" to arg 1
  1843. wait 2 tick
  1844. if {xp.%arg 1%} >= {xpmax.%arg 1%}:
  1845. remove {xpmax.%arg 1%} from {xp.%arg 1%}
  1846. set {xpmax.%arg 1%} to {xpmax.%arg 1%} + 1000
  1847. set {level.%arg 1%} to {level.%arg 1%} + 1
  1848. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to arg 1
  1849. message "&7[&aVanozia&7] &2Tu a gagner &b1 &2Level." To arg 1
  1850. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to arg 1
  1851.  
  1852.  
  1853.  
  1854. every 1 seconds:
  1855. loop all players:
  1856. if {xp.%loop-player%} >= {xpmax.%loop-player%}:
  1857. remove {xpmax.%loop-player%} from {xp.%loop-player%}
  1858. set {xpmax.%loop-player%} to {xpmax.%loop-player%} + 1000
  1859. set {level.%loop-player%} to {level.%loop-player%} + 1
  1860. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1861. message "&7[&aVanozia&7] &2Tu a gagner &b1 &2Level." To loop-player
  1862. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  1863.  
  1864.  
  1865.  
  1866.  
  1867. command /addlevel [<player>] [<number>]:
  1868. permission: vanozia.staff.admin
  1869. trigger:
  1870. if arg 1 is not set:
  1871. send "&7[&aVanozia&7] &cTu doit mettre le pseudo !"
  1872. else if arg 2 is not set:
  1873. send "&7[&aVanozia&7] &cTu doit mettre le montant !"
  1874. else if arg 1 is set:
  1875. if arg 2 is set:
  1876. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to arg 1
  1877. message "&7[&aVanozia&7] &2Tu a gagner &b%arg 2% &2Level !" To arg 1
  1878. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to arg 1
  1879. set {level.%arg 1%} to {level.%arg 1%} + arg 2
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889. command /§play2:
  1890. trigger:
  1891. set {actu1} to "3 JeryCan"
  1892. set {joueure} to {joueurj}
  1893. loop all players:
  1894. if loop-player is in "lobby":
  1895. if {enjeu.%loop-player%} is true:
  1896. execute console command "/mv tp %loop-player% Horror"
  1897. clear the loop-player's inventory
  1898. wait 1 seconds
  1899. if {murder} is not set:
  1900. set {murder} to a random element out of {engame::*}
  1901. set {tueur} to {murder}
  1902. set {role.%{tueur}%} to "&cTueur"
  1903. wait 1 tick
  1904. loop all players:
  1905. if {tueur} is not "%loop-player%":
  1906. set {pouvoir.%loop-player%} to false
  1907. chance of 50%:
  1908. set {role.%loop-player%} to "&aInnocent"
  1909. chance of 50%:
  1910. set {role.%loop-player%} to "&3Policier"
  1911. loop all players:
  1912. if {role.%loop-player%} is "&cAucun":
  1913. if {tueur} is not set:
  1914. set {tueur} to "%loop-player%"
  1915. set {tueur} to {murder}
  1916. set {role.%{tueur}%} to "&cTueur"
  1917. else:
  1918. chance of 70%:
  1919. set {role.%loop-player%} to "&aInnocent"
  1920. chance of 30%:
  1921. set {role.%loop-player%} to "&3Policier"
  1922. loop all players:
  1923. if {enjeu.%loop-player%} is true:
  1924. if {role.%loop-player%} is "&cAucun":
  1925. set {ole.%loop-player%} to "&aInnocent"
  1926.  
  1927. loop all players:
  1928. if {enjeu.%loop-player%} is true:
  1929. wait 1 seconds
  1930. if {tueur} is "%loop-player%":
  1931. set {spawngo} to a random element out of {spawntz::*}
  1932. wait 1 tick
  1933. execute console command "/tp %loop-player% %{spawngo}%"
  1934. else if {role.%loop-value%} is "&ainnocent" or "&3Policier":
  1935. set {spawngo} to a random element out of {spawnjz::*}
  1936. wait 1 tick
  1937. execute console command "/tp %loop-player% %{spawngo}%"
  1938. execute console command "/§play3"
  1939.  
  1940.  
  1941.  
  1942.  
  1943. on right click with paper:
  1944. if name of tool is "&aSuper Pouvoir &7(Clique Droit)":
  1945. remove 1 paper from player's inventory
  1946. chance of 20%:
  1947. apply invisibility 1 to the player for 5 seconds
  1948. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1949. send "&aType: &bBien pour vous seul"
  1950. send "&aEffectuée: &bInvisibilité pendant 5 seconds"
  1951. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1952. stop
  1953. chance of 20%:
  1954. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1955. send "&aType: &bContre vous"
  1956. send "&aEffectuée: &bDonne vos coordonné au tueur."
  1957. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1958. loop all players:
  1959. if {enjeu.%loop-player%} is true:
  1960. if {role.%loop-player%} is "&cTueur":
  1961. message "&7[&aVanozia&7] &2Coordonnée d'un Innocent avec des pouvoirs: &b%location of player%" to loop-player
  1962. stop
  1963. chance of 10%:
  1964. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1965. send "&aType: &bBien pour les innocent/policier"
  1966. send "&aEffectuée: &bDonne un effect de regeneration 2 pendant 6 seconds."
  1967. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1968. loop all players:
  1969. if {enjeu.%loop-player%} is true:
  1970. if {role.%loop-player%} is not "&cTueur":
  1971. apply regeneration 2 to the loop-player for 6 seconds
  1972. message "&7[&aVanozia&7] &2Régéneration 2 pendant 6 seconds donné par &b%player% &2!" to loop-player
  1973. stop
  1974. chance of 15%:
  1975. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1976. send "&aType: &bNul pour tout le monde !"
  1977. send "&aEffectuée: &bDonne un effect de slowness 2 pendant 6 seconds a tout le monde."
  1978. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1979. loop all players:
  1980. if {enjeu.%loop-player%} is true:
  1981. if {role.%loop-player%} is not "&cTueur":
  1982. apply slowness 2 to the loop-player for 6 seconds
  1983. message "&7[&aVanozia&7] &2On remerci qui ??? &b%player% &2!!"
  1984. stop
  1985. chance of 15%:
  1986. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1987. send "&aType: &bBien pour toi !"
  1988. send "&aEffectuée: &bDonne 1 pomme en or."
  1989. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1990. give 1 golden apple named "&aChance" to player
  1991. stop
  1992. chance of 10%:
  1993. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1994. send "&aType: &bBien !"
  1995. send "&aEffectuée: &bDonne un effect de slowness 2 pendant 6 seconds a tout le monde."
  1996. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  1997. stop
  1998. chance of 10%:
  1999.  
  2000. if {echapp} is true:
  2001. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  2002. send "&aType: &bCoordonnée !"
  2003. send "&aEffectuée: &bDonne les coordonnées de l'emplacement des policier."
  2004. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  2005. if {echap1} is true:
  2006. send "&7[&aVanozia&7] &2Policier: Nord"
  2007. if {echap2} is true:
  2008. send "&7[&aVanozia&7] &2Policier: East"
  2009. if {echap3} is true:
  2010. send "&7[&aVanozia&7] &2Policier: sud"
  2011. if {echap4} is true:
  2012. send "&7[&aVanozia&7] &2Policier: West"
  2013. stop
  2014. else:
  2015. send "&7[&aVanozia&7] &cLe pouvoir n'a pas pus fonctionner car il peut fonctionner qu'a la fin."
  2016.  
  2017. else:
  2018. if {echapp} is true:
  2019. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  2020. send "&aType: &bCoordonnée !"
  2021. send "&aEffectuée: &bDonne les coordonnées de l'emplacement des policier."
  2022. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  2023. if {echap1} is true:
  2024. send "&7[&aVanozia&7] &2Policier: Nord"
  2025. if {echap2} is true:
  2026. send "&7[&aVanozia&7] &2Policier: East"
  2027. if {echap3} is true:
  2028. send "&7[&aVanozia&7] &2Policier: sud"
  2029. if {echap4} is true:
  2030. send "&7[&aVanozia&7] &2Policier: West"
  2031. stop
  2032. else:
  2033. send "&7[&aVanozia&7] &cLe pouvoir n'a pas pus fonctionner car il peut fonctionner qu'a la fin."
  2034.  
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046. command /admin-horror [<text>]:
  2047. permission: vanozia.staff
  2048. permission message: &7[&aVanozia&7] &cTu n'est pas membre du staff !
  2049. trigger:
  2050. if arg 1 is not set:
  2051. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  2052. send "&7/admin-horror test1 &2Permet de se give un pouvoir"
  2053. send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
  2054. else:
  2055. if arg 1 is not "test1":
  2056. send "&7[&aVanozia&7] &cArgument non reconnu !"
  2057. else if arg 1 is "test1":
  2058. give 1 paper named "&aSuper Pouvoir &7(Clique Droit)" to player
  2059. send "&7[&aVanozia&7] &2Effectuée !"
  2060.  
  2061.  
  2062. every 1 seconds:
  2063. loop all players:
  2064. if {enjeu.%loop-player%} is true:
  2065. if {tueur} is "%loop-player%":
  2066. if {armes.%loop-player%} is "fer":
  2067. set slot 0 of loop-player to a iron sword named "&aCouteau"
  2068. set slot 1 of loop-player to a iron sword named "&aCouteau"
  2069. set slot 2 of loop-player to a iron sword named "&aCouteau"
  2070. set slot 3 of loop-player to a iron sword named "&aCouteau"
  2071. set slot 4 of loop-player to a iron sword named "&aCouteau"
  2072. set slot 5 of loop-player to a iron sword named "&aCouteau"
  2073. set slot 6 of loop-player to a iron sword named "&aCouteau"
  2074. set slot 7 of loop-player to a iron sword named "&aCouteau"
  2075. set slot 8 of loop-player to a iron sword named "&aCouteau"
  2076. if {armes.%loop-player%} is "bois":
  2077. set slot 0 of loop-player to a wooden sword named "&aCouteau"
  2078. set slot 1 of loop-player to a wooden sword named "&aCouteau"
  2079. set slot 2 of loop-player to a wooden sword named "&aCouteau"
  2080. set slot 3 of loop-player to a wooden sword named "&aCouteau"
  2081. set slot 4 of loop-player to a wooden sword named "&aCouteau"
  2082. set slot 5 of loop-player to a wooden sword named "&aCouteau"
  2083. set slot 6 of loop-player to a wooden sword named "&aCouteau"
  2084. set slot 7 of loop-player to a wooden sword named "&aCouteau"
  2085. set slot 8 of loop-player to a wooden sword named "&aCouteau"
  2086. if {armes.%loop-player%} is "stone":
  2087. set slot 0 of loop-player to a stone sword named "&aCouteau"
  2088. set slot 1 of loop-player to a stone sword named "&aCouteau"
  2089. set slot 2 of loop-player to a stone sword named "&aCouteau"
  2090. set slot 3 of loop-player to a stone sword named "&aCouteau"
  2091. set slot 4 of loop-player to a stone sword named "&aCouteau"
  2092. set slot 5 of loop-player to a stone sword named "&aCouteau"
  2093. set slot 6 of loop-player to a stone sword named "&aCouteau"
  2094. set slot 7 of loop-player to a stone sword named "&aCouteau"
  2095. set slot 8 of loop-player to a stone sword named "&aCouteau"
  2096. if {armes.%loop-player%} is "or":
  2097. set slot 0 of loop-player to a golden sword named "&aCouteau"
  2098. set slot 1 of loop-player to a golden sword named "&aCouteau"
  2099. set slot 2 of loop-player to a golden sword named "&aCouteau"
  2100. set slot 3 of loop-player to a golden sword named "&aCouteau"
  2101. set slot 4 of loop-player to a golden sword named "&aCouteau"
  2102. set slot 5 of loop-player to a golden sword named "&aCouteau"
  2103. set slot 6 of loop-player to a golden sword named "&aCouteau"
  2104. set slot 7 of loop-player to a golden sword named "&aCouteau"
  2105. set slot 8 of loop-player to a golden sword named "&aCouteau"
  2106. if {armes.%loop-player%} is "diamant":
  2107. set slot 0 of loop-player to a diamond sword named "&aCouteau"
  2108. set slot 1 of loop-player to a diamond sword named "&aCouteau"
  2109. set slot 2 of loop-player to a diamond sword named "&aCouteau"
  2110. set slot 3 of loop-player to a diamond sword named "&aCouteau"
  2111. set slot 4 of loop-player to a diamond sword named "&aCouteau"
  2112. set slot 5 of loop-player to a diamond sword named "&aCouteau"
  2113. set slot 6 of loop-player to a diamond sword named "&aCouteau"
  2114. set slot 7 of loop-player to a diamond sword named "&aCouteau"
  2115. set slot 8 of loop-player to a diamond sword named "&aCouteau"
  2116.  
  2117. on join:
  2118. if {sword.%player%} is not set:
  2119. set {sword.%player%} to "bois"
  2120.  
  2121. every 25 seconds:
  2122. loop all players:
  2123. if {enjeu.%loop-player%} is true:
  2124. if loop-player is not "%{tueur}%":
  2125. if {pouvoir.%loop-player%} is true:
  2126. give 1 paper named "&aSuper Pouvoir &7(Clique Droit)" to loop-player
  2127.  
  2128. on drop iron sword or stone sword or wooden sword or diamond sword or golden sword or paper:
  2129. cancel event
  2130.  
  2131. on damage:
  2132. if victim is in "Hub" or "lobby":
  2133. cancel event
  2134.  
  2135. command /§play3:
  2136. trigger:
  2137. loop {Radio::*}:
  2138. set block at loop-value to a air
  2139. execute console command "/setblock %loop-value% air"
  2140. loop {Generateur::*}:
  2141. set block at loop-value to air
  2142. execute console command "/setblock %loop-value% air"
  2143. loop {chest::*}:
  2144. set block at loop-value to air
  2145. execute console command "/setblock %loop-value% air"
  2146. set {radi} to a random element out of {Radio::*}
  2147. set {gen} to a random element out of {Generateur::*}
  2148. wait 1 tick
  2149. set block at {radi} to sea lantern
  2150. execute console command "/setblock %{radi}% sea_lantern"
  2151. set block at {gen} to iron block
  2152. execute console command "/setblock %{gen}% iron_block"
  2153. delete {JeryCan2::*}
  2154. wait 1 tick
  2155. loop {JeryCan1::*}:
  2156. add "%loop-value%" to {JeryCan2::*}
  2157. set block at loop-value to air
  2158. execute console command "/setblock %loop-value% air"
  2159. wait 1 seconds
  2160. loop 3 times:
  2161. set {can} to a random element out of {JeryCan2::*}
  2162. wait 1 tick
  2163. remove "%{can}%" from {JeryCan2::*}
  2164. set block at {can} to redstone block
  2165. execute console command "/setblock %{can}% redstone_block"
  2166. loop 4 times:
  2167. set {loots} to a random element out of {chest::*}
  2168. wait 1 tick
  2169. set block at {loots} to redstone block
  2170. execute console command "/setblock %{loots}% chest"
  2171. loop all players:
  2172. if {enjeu.%loop-player%} is true:
  2173. if {role.%loop-player%} is "&cAucun":
  2174. set {role.%loop-player%} to "&aInnocent"
  2175. set player's max health to 10
  2176. send loop-player title "&2Role:" with subtitle "&aInnocent" for 4 seconds
  2177. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  2178. message " " to loop-player
  2179. message "&2Tu est &aInnocent&2." to loop-player
  2180. message " " to loop-player
  2181. message "&2Ton bute est de trouver des JeryCan puis un Generateur et une Radio!" to loop-player
  2182. message "&2Tu doit aussi aider les innocent et les Policiers !" to loop-player
  2183. message " " to loop-player
  2184. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  2185. chance of 20%:
  2186. message "&7[&aVanozia&7] &cTu n'a pas de super pouvoir !" to loop-player
  2187. chance of 80%:
  2188. message "&7[&aVanozia&7] &cTu a des super Pouvoirs !" to loop-player
  2189. set {pouvoir.%loop-player%} to true
  2190. if {role.%loop-player%} is "&3Policier":
  2191. send loop-player title "&2Role:" with subtitle "&3Policier" for 4 seconds
  2192. set player's max health to 10
  2193. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  2194. message " " to loop-player
  2195. message "&2Tu est &3Policier&2." to loop-player
  2196. message " " to loop-player
  2197. message "&2Ton bute est d'aider les Innocent a s'enfuir!" to loop-player
  2198. message "&2Tu est muni d'une arme pour ralentir le tueur !" to loop-player
  2199. message " " to loop-player
  2200. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  2201. execute console command "/shot give %loop-player% TAZER"
  2202. execute console command ":skin set %loop-player% Police"
  2203. if {role.%loop-player%} is "&aInnocent":
  2204. set player's max health to 10
  2205. send loop-player title "&2Role:" with subtitle "&aInnocent" for 4 seconds
  2206. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  2207. message " " to loop-player
  2208. message "&2Tu est &aInnocent&2." to loop-player
  2209. message " " to loop-player
  2210. message "&2Ton bute est de trouver des JeryCan puis un Generateur et une Radio!" to loop-player
  2211. message "&2Tu doit aussi aider les innocent et les Policiers !" to loop-player
  2212. message " " to loop-player
  2213. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  2214. chance of 20%:
  2215. message "&7[&aVanozia&7] &cTu n'a pas de super pouvoir !" to loop-player
  2216. chance of 80%:
  2217. message "&7[&aVanozia&7] &cTu a des super Pouvoirs !" to loop-player
  2218. set {pouvoir.%loop-player%} to true
  2219. if {role.%loop-player%} is "&cTueur":
  2220. set {_m} to loop-player's max health
  2221. wait 1 tick
  2222. set loop-player's max health to {_m} + 40
  2223. wait 1 tick
  2224. execute console command "/heal %loop-player%"
  2225. send loop-player title "&2Role:" with subtitle "&cTueur" for 4 seconds
  2226. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  2227. message " " to loop-player
  2228. message "&2Tu est &cTueur&2." to loop-player
  2229. message " " to loop-player
  2230. message "&2Ton bute est de Tuer Tout le Monde!" to loop-player
  2231. message "&2Tu peut t'amuser avec eu !" to loop-player
  2232. message " " to loop-player
  2233. message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
  2234. give 1 stone sword named "&aCouteau" to loop-player
  2235. execute console command "/skin set %loop-player% slender"
  2236. message "&cAttention Vous ne pouvais pas recuperer de la vie sauf en trouvant des object ou en activant des trucs!"
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243. on hunger meter change:
  2244. if player is in "Hub" or "lobby" or "Horror":
  2245. set player's food bar to 10
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252. every 5 seconds:
  2253. if {game} is true:
  2254. if {nombrej} >= 2:
  2255. stop
  2256. else:
  2257. broadcast "&7[&aVanozia&7] &cFin de la partie." in world "Horror"
  2258. set {joueurl} to 0
  2259. loop all players:
  2260. if {enjeu.%loop-player%} is true:
  2261. execute console command "/mv tp %loop-player% Hub"
  2262. set loop-player's max health to 10
  2263. broadcast "&7[&aVanozia&7] &cFin de partie: &b10 &2Horror" in world "Horror"
  2264. execute console command "/eco add %loop-player% 10"
  2265. wait 5 seconds
  2266. loop all players:
  2267. if {enjeu.%loop-player%} is true:
  2268. execute console command "/mv tp %loop-player% Hub"
  2269. clear the loop-player's inventory
  2270. set loop-player's max health to 10
  2271. wait 1 tick
  2272. set slot 2 of loop-player to a Compass named "&aJouer"
  2273. set slot 6 of loop-player to a golden ingot named "&eBoutique"
  2274. set {enjeu.%loop-player%} to false
  2275. delete {game}
  2276. delete {engame::*}
  2277. set {jeu} to false
  2278.  
  2279.  
  2280.  
  2281.  
  2282.  
  2283. on load:
  2284. delete {engame::*}
  2285. delete {game}
  2286.  
  2287.  
  2288. on drop 355:
  2289. cancel event
  2290.  
  2291. on right click with 355:
  2292. if name of tool is "&cQuitter":
  2293. cancel event
  2294. if {lobby.%player%} is true:
  2295. set {lobby.%player%} to false
  2296. send "&7[&aVanozia&7] &cTu a quitter le jeu !"
  2297. remove 1 from {nombrel}
  2298. set player's max health to 10
  2299. execute console command "/mv tp %player% Hub"
  2300. clear the player's inventory
  2301. wait 1 tick
  2302. set slot 2 of player to a Compass named "&aJouer"
  2303. set slot 6 of player to a golden ingot named "&eBoutique"
  2304. loop all players:
  2305. if loop-player is in "lobby":
  2306. message "&7[&aVanozia&7] &b%player% &2a quitter le jeu ! ( &b%{nombrel}% / {@maxplayer}&2 )" to loop-player
  2307.  
  2308. on quit:
  2309. if {lobby.%player%} is true:
  2310. set {lobby.%player%} to false
  2311. remove 1 from {nombrel}
  2312. loop all players:
  2313. if loop-player is in "lobby":
  2314. message "&7[&aVanozia&7] &b%player% &2a quitter le jeu ! ( &b%{nombrel}% / {@maxplayer}&2 )" to loop-player
  2315.  
  2316.  
  2317. on drop compass or gold ingot or bed item:
  2318. cancel event
  2319.  
  2320.  
  2321. on load:
  2322. delete {murder}
  2323.  
  2324. on quit:
  2325. if {enjeu.%player%} is true:
  2326. set {enjeu.%player%} to false
  2327. remove 1 from {nombrej}
  2328.  
  2329.  
  2330. on load:
  2331. set {nombrej} to 0
  2332. set {jeu} to false
Advertisement
Add Comment
Please, Sign In to add comment