Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- wait 7 seconds
- if {password.%player%} is not set:
- send "&7[&aVanozia&7] &cDéfini ton mot de passe avec /register [<password>] [<password>]"
- clear {login.%player%}
- set {movefalser.%player%} to true
- stop
- if {password.%player%} is set:
- send "&7[&aVanozia&7] &cConnecte toi avec /login [<password>]"
- clear {login.%player%}
- set {movefalse.%player%} to true
- stop
- command /locatt:
- permission: vanozia.staff
- trigger:
- loop all players:
- send "&7[&aVanozia&7] &aLocation de %loop-player%: &c%location of loop-player%"
- on command "/tp":
- if {enjeu.%player%} is true:
- cancel event
- send "&7[&aVanozia&7] &cTu a esseyer de te TP ou de TP quelqu'un !"
- execute console command "/warn %player% Tentative de TP en partie !"
- on right click on end stone:
- if {enjeu.%player%} is false:
- send "&7[&aVanozia&7]&2Tu doit être en jeu !"
- else:
- if {role.%player%} is not "&cTueur":
- send "&7[&aVanozia&7] &cIl y'a que le tueur qui peut effectuée ceci !"
- else:
- chance of 20%:
- loop all players:
- if loop-player is not "%{tueur}%":
- if {enjeu.%loop-player%} is true:
- set {rty} to location of loop-player
- send "&7[&aVanozia&7] &2Coordonnée: &c%{rty}%"
- else:
- send "&7[&aVanozia&7] &cNon effectuée !"
- command /setjeuy:
- trigger:
- set {echapp} to true
- command /setjeun:
- trigger:
- set {echapp} to false
- on walk on 159:15:
- if {echapp} is true:
- if {echap1} is true:
- stop
- else:
- send "&7[&aVanozia&7] &cLes Flic ne sont pas ici !"
- execute console command "/minecraft:tp %player% 2 237 -100"
- else if {echapp} is false:
- send "&7[&aVanozia&7] &cVous ne pouvais pas vous enfuir !"
- execute console command "/minecraft:tp %player% 2 237 -100"
- on walk on 159:1:
- if {echapp} is true:
- if {echap2} is true:
- stop
- else:
- send "&7[&aVanozia&7] &cLes Flic ne sont pas ici !"
- execute console command "/minecraft:tp %player% 184 237 -46"
- else if {echapp} is false:
- send "&7[&aVanozia&7] &cVous ne pouvais pas vous enfuir !"
- execute console command "/minecraft:tp %player% 184 237 -46"
- on walk on 159:2:
- if {echapp} is true:
- if {echap3} is true:
- stop
- else:
- send "&7[&aVanozia&7] &cLes Flic ne sont pas ici !"
- execute console command "/minecraft:tp %player% -92 237 141"
- else if {echapp} is false:
- send "&7[&aVanozia&7] &cVous ne pouvais pas vous enfuir !"
- execute console command "/minecraft:tp %player% -92 237 141"
- on walk on 159:12:
- if {echapp} is true:
- if {echap4} is true:
- stop
- else:
- send "&7[&aVanozia&7] &cLes Flic ne sont pas ici !"
- execute console command "/minecraft:tp %player% -133 237 -76"
- else if {echapp} is false:
- send "&7[&aVanozia&7] &cVous ne pouvais pas vous enfuir !"
- execute console command "/minecraft:tp %player% -133 237 -76"
- on load:
- loop all players:
- send loop-player title "&aSystème:" with subtitle "&cChargé" for 5 seconds
- on load:
- set {echapp} to false
- set {echap1} to false
- set {echap2} to false
- set {echap3} to false
- set {echap4} to false
- on any move:
- if {movefalser.%player%} is true:
- cancel event
- send "&7[&aVanozia&7] &cDéfini ton mot de passe avec /register [<password>] [<password>]"
- stop
- if {movefalse.%player%} is true:
- send "&7[&aVanozia&7]&c Connecte toi avec /login [<password>]"
- cancel event
- stop
- command /reset:
- trigger:
- set {xp.%player%} to 0
- set {level.%player%} to 0
- set {xpmax.%player%} to 1000
- on chat:
- cancel event
- broadcast "&7[&aVanozia&7] &a%{grade.%player%}% &b%player% &7> &b%message%"
- on death:
- clear the drops
- command /register [<text>] [<text>]:
- trigger:
- if {password.%player%} is not set:
- if arg 1 is set:
- if arg 2 is set:
- if arg 1 = arg 2:
- set {password.%player%} to arg 1
- send "&7[&aVanozia&7]&c &aMot de passe défini : %{password.%player%}%"
- set {login.%player%} to true
- clear {movefalser.%player%}
- stop
- else:
- send "&7[&aVanozia&7]&c &cLes mots de passe ne sont pas identiques : %arg 1% %arg 2%"
- stop
- else:
- send "&7[&aVanozia&7]&c Il faut écrire 2 fois de suite son mot de passe afin de le confirmer"
- send "&7[&aVanozia&7]&c /register [<password>] [<password>]"
- stop
- else:
- send "&7[&aVanozia&7]&c Syntaxe: /register [<password>] [<password>]"
- stop
- else:
- send "&7[&aVanozia&7]&c &aTu es déjà enregistré. Pour changer de mot de passe fais /changePassword"
- stop
- command /login [<text>]:
- trigger:
- if {login.%player%} is true:
- send "&7[&aVanozia&7]&c Tu es déjà login. Pour changer de Password fais /changePassword"
- stop
- if {login.%player%} is not set:
- if arg 1 is set:
- if arg 1 = {password.%player%}:
- send "&7[&aVanozia&7] &aConnection réussie"
- set {login.%player%} to true
- clear {movefalse.%player%}
- stop
- else:
- send "&7[&aVanozia&7]&c &cMauvais mot de passe"
- stop
- if arg 1 is not set:
- send "&7[&aVanozia&7]&c Syntaxe : /login [<password>]"
- stop
- command /showpassword [<offline player>]:
- permission: show.pass
- permission message: &cTu ne peux pas voir les mots de passe des autres joueurs
- trigger:
- if arg 1 is set:
- if {password.%arg 1%} is set:
- send "&7[&aVanozia&7]&c &6Password de %arg 1% : &f%{password.%arg 1%}%"
- stop
- if {password.%arg 1%} is not set:
- send "&7[&aVanozia&7]&c Erreur : Le joueur n'est jamais venu/ne s'est jamais enregistré !"
- stop
- if arg 1 is not set:
- send "&7[&aVanozia&7]&c Syntaxe : /showpassword [<player>]"
- command /changePassword [<text>] [<text>] [<offline player>]:
- trigger:
- if {password.%player%} is set:
- if {login.%player%} is not set:
- send "&7[&aVanozia&7]&c : Tu n'es pas login !"
- stop
- else:
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is not set:
- if arg 1 = arg 2:
- set {password.%player%} to arg 1
- send "&7[&aVanozia&7]&c &aMot de passe redéfini : %{password.%player%}%"
- stop
- else:
- send "&7[&aVanozia&7]&c Il faut écrire 2 fois de suite son mot de passe afin de le confirmer"
- send "&7[&aVanozia&7]&c /changePassword [<password>] [<password>]"
- stop
- if arg 3 is set:
- if player has permission "Passwordother.change":
- if arg 1 = arg 2:
- set {password.%arg 3%} to arg 1
- send "&7[&aVanozia&7]&c &aMot de passe redéfini pour %arg 3%: %{password.%player%}%"
- stop
- else:
- send "&7[&aVanozia&7]&c Les mots de passe ne sont pas identiques : %arg 1% %arg 2%"
- send "&7[&aVanozia&7]&c /changePassword [<password>] [<password>] [<offline player>]"
- stop
- else:
- send "&7[&aVanozia&7]&c Tu ne peux pas changer le password des autres joueurs"
- stop
- if arg 2 is not set:
- send "&7[&aVanozia&7]&c Il faut écrire 2 fois de suite son mot de passe afin de le confirmer"
- send "&7[&aVanozia&7]&c /changePassword [<password>] [<password>] [<offline player>]"
- stop
- if arg 1 is not set:
- send "&7[&aVanozia&7]&c Syntaxe : /changePassword [<password>] [<password>]"
- stop
- if {password.%player%} is not set:
- send "&7[&aVanozia&7]&c Votre mot de passe n'est pas défini"
- send "&7[&aVanozia&7]&c /register [<password>] [<password>]"
- stop
- on load:
- loop {JeryCan1::*}:
- execute console command "/setblock %loop-value% redstone_block"
- loop {Radio::*}:
- execute console command "/setblock %loop-value% sea_lantern"
- loop {Generateur::*}:
- execute console command "/setblock %loop-value% iron_block"
- loop {chest::*}:
- execute console command "/setblock %loop-value% chest"
- on command:
- if {login.%player%} is not set:
- full command is not "login" or "register"
- send "&7[&aVanozia&7]&c Tu n'es pas connecté !"
- on death:
- wait 3 seconds
- execute console command "/mv tp %victim% Hub"
- set slot 2 of victim to a Compass named "&aJouer"
- set slot 6 of victim to a golden ingot named "&eBoutique"
- options:
- version: 0.0.9
- on load:
- if text from "https://pastebin.com/raw/ZXSxPZm5" is not "{@version}":
- wait 2 seconds
- broadcast "&7[&aVanozia&7] &aMise a jour...."
- wait 5 seconds
- set {_version} to text from "https://pastebin.com/raw/ZXSxPZm5"
- download from "https://pastebin.com/raw/pE96rMC9" to "plugins/Skript/scripts/Horror-%{_version}%.sk"
- delete file "plugins/Skript/scripts/Horror-{@version}.sk"
- wait 0.5 second
- make console execute command "/sk reload scripts"
- broadcast "&7[&aVanozia&7] &aMise a Jour terminée !"
- else:
- wait 5 seconds
- broadcast "&7[&aVanozia&7] &2Aucune Mise a Jour."
- command /§play4:
- trigger:
- set {echap1} to false
- set {echap2} to false
- set {echap3} to false
- set {echap4} to false
- wait 2 tick
- set {echapp} to true
- set {test} to false
- set {_bet} to a random number between 1 and 4
- set {_bet} to rounded {_bet}
- wait 1 tick
- if {_bet} is 0 or 1:
- set {echap1} to true
- if {_bet} is 2:
- set {echap2} to true
- if {_bet} is 3:
- set {echap3} to true
- if {_bet} is 4 or 5:
- set {echap4} to true
- command /report [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&7[&aVanozia&7] &cTu doit precisez le joueur !"
- else if arg 1 is set:
- set {namechec} to false
- loop all players:
- if name of loop-player is "%arg 1%":
- set {namechec} to true
- if {namechec} is false:
- send "&7[&aVanozia&7] &2Le joueur &b%player% &2n'est pas connecté !"
- else:
- if arg 2 is not set:
- open chest with 1 rows named "&b%player%" to player
- wait 2 tick
- format slot 1 of player with cobweb named "&aInsulte" to close then run [make player execute command "/report %arg 1% Insulte"]
- 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"]
- format slot 3 of player with diamond sword named "&aKillaura" to close then run [make player execute command "/report %arg 1% Killaura"]
- format slot 4 of player with iron boots named "&aSpeed hack" to close then run [make player execute command "/report %arg 1% SpeedHack"]
- else if arg 2 is set:
- set {staff} to false
- loop all players:
- if player has permission "vanozia.staff":
- set {staff} to true
- if {staff} is false:
- send "&7[&aVanozia&7] &cAucune Membre du staff en ligne !"
- else if {staff} is true:
- send "&7[&aVanozia&7] &2Le report pour: &b%arg 1% &2avec la raison: &b%arg 2% &2A bien été envoyée !"
- command /removereport:
- trigger:
- delete {report::*}
- delete {reason::*}
- delete {porter::*}
- delete {_reportall}
- on walk on 159:14:
- if {enjeu.%player%} is true:
- if {role.%player%} is "&aInnocent" or "&3Policier":
- send "&7[&aVanozia&7] &2Vous vous êtes echappez !"
- set {joueure} to 0
- loop all players:
- if {ech.%loop-player%} is false:
- set {joueure} to {joueure} + 1
- send player title "&a&lECHAPPEZ !" with subtitle "&c" for 5 seconds
- execute console command "/gm 3 %player%"
- remove 1 from {joueure}
- if {joueure} <= 1:
- broadcast "&7[&aVanozia&7] &2Toutes les survivants se sont échappez !"
- wait 5 seconds
- execute console command "/kill %{tueur}%"
- loop all players:
- if {ech.%loop-player%} is true:
- execute console command "/gm 0 %player%"
- set {ech.%loop-player%} to false
- if {boost.%loop-player%} is "&cAucun":
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&a&lFIN DE PARTIE." to loop-player
- message "&2Innocent echappez!." to loop-player
- message " " to loop-player
- message "&cAucun Boost" to loop-player
- message "&e+100 Horror pour t'être echappez." to loop-player
- message "&e+55 XP"
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- execute console command "/eco add %loop-player% 100"
- execute console command "/addxp %loop-player% 55"
- else if {boost.%loop-player%} is "&ax2":
- if {expire.%loop-player%} = 1:
- set {expire.%loop-player%} to "0"
- set {boost.%loop-player%} to "&cAucun"
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&a&lFIN DE PARTIE." to loop-player
- message "&2Innocent echappez." to loop-player
- message " " to loop-player
- message "&2Boost 2" to loop-player
- message "&e+&e&m100 &r&e200 Horror pour t'être echappez." to loop-player
- message "&e+&e&m55 &r&e110 XP" to loop-player
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- execute console command "/eco add %loop-player% 200"
- execute console command "/addxp %loop-player% 110"
- else if {expire.%loop-player%} > 1:
- remove 1 from {expire.%loop-player%}
- set {expire.%loop-player%} to "0"
- set {boost.%loop-player%} to "&cAucun"
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&a&lFIN DE PARTIE." to loop-player
- message "&2Innocent Echappez." to loop-player
- message " " to loop-player
- message "&2Boost 2" to loop-player
- message "&e+&e&m100 &r&e200 Horror pour t'être echappez." to loop-player
- message "&e+&e&m55 &r&e110XP" to loop-player
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- execute console command "/eco add %loop-player% 200"
- execute console command "/addxp %loop-player% 110"
- on join:
- execute console command "/gm 0 %player%"
- on command "/op":
- if name of player is not "superrtutur":
- cancel event
- send "&7[&aVanozia&7] &cProtection!!!"
- on enter bed:
- cancel event
- send "&7[&aVanozia&7] &cInterdit!"
- on right click on chest or trapped chest:
- set {z} to z-coordinate of targeted block
- set {x} to x-coordinate of targeted block
- set {y} to y-coordinate of targeted block
- if {loot.%{x}% %{y}% %{z}%} is set:
- cancel event
- set block at event-block to air
- chance of 20%:
- send "&7[&aVanozia&7] &cRien dans le coffre."
- stop
- else:
- chance of 30%:
- send "&7[&aVanozia&7] &2Tu a trouvé &b5 &2Horror!"
- execute console command "/eco add %player% 5"
- stop
- else:
- chance of 20%:
- send "&7[&aVanozia&7] &2Tu a trouvé 2 pomme d'or !"
- give 2 golden apple named "&aSecours" to player
- stop
- else:
- chance of 25%:
- send "&7[&aVanozia&7] &2Tu a trouvé 1 recepteur !"
- give 1 clock named "&aRecepteur (3)" to player
- stop
- else:
- chance of 40%:
- heal the player
- send "&7[&aVanozia&7] &2Tu a recuperé ta vie"
- else:
- give 1 wooden sword named "&aCouteau" to player
- send "&7[&aVanozia&7] &2Tu a eu un Couteau"
- stop
- else if {grade.%player%} is "&aJoueur" or "Joueur":
- cancel event
- send "&7[&aVanozia&7] &2Tu ne peut pas faire cela!"
- on right click with clock:
- loop all players:
- if {enjeu.%loop-player%} is true:
- if loop-player is not "%player%":
- if {role.%loop-player%} is not "&cTueur":
- send "&7[&aVanozia&7] &2Coordonnée d'une personne: &b%location of loop-player%"
- else:
- send "&7[&aVanozia&7] &2Coordonnée du tueur: &b%location of loop-player%"
- if name of tool is "&aRecepteur (3)":
- set name of tool to "&aRecepteur (2)"
- stop
- if name of tool is "&aRecepteur (2)":
- set name of tool to "&aRecepteur (1)"
- stop
- if name of tool is "&aRecepteur (1)":
- remove 1 clock named "&aRecepteur (1)" from player's inventory
- stop
- # GRADE - CHARGEMENT - SCOREBOARD
- on weather change:
- cancel event
- on join:
- if {boost.%player%} is not set:
- set {boost.%player%} to "&cAucun"
- if {expire.%player%} is not set:
- set {expire.%player%} to 0
- if {expire.%player%} is 0:
- if {boost.%player%} is not "&cAucun":
- set {boost.%player%} to "&cAucun"
- set {expire.%player%} to 0
- command /horror [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- if player has permission "vanozia.staff":
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send " "
- send "&7/horror credits &aPermet de voir les credits"
- send "&7/horror add JeryCan &aPermet d'ajoutez un JeryCan que tu regard"
- send "&7/horror add Générateur &aPermet d'ajoutez le Générateur que tu regard"
- send "&7/horror add spawn-tueur &aPermet d'ajoutez un spawn du tueur"
- send "&7/horror add spawn &aPermet d'ajoutez un spawn Innocent/policier"
- send "&7/horror add Radio &aPermet d'ajoutez la Radio que tu regard"
- send "&7/horror add chest &aPermet d'ajoutez un coffre que tu regard"
- send "&7/horror remove (Cordonné) &apermet de supprimer le JeryCan, Générateur ... ou tu a mis les cordonnés"
- 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."
- send " "
- send "&7/admin-horror ou /horror-admin &aPermet de tester ou se give certaines choses. "
- send " "
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send " "
- send "&7/horror credits &aPermet de voir les credits"
- send " "
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else:
- if arg 2 is not set:
- if arg 1 is "credits":
- send "&7[&aVanozia&7] &2Minijeux créer par superrtutur. Toute droites Reservé (CopyRight.)"
- else:
- send "&7[&aVanozia&7] &cArgument non reconnu ou tu a oublié de mettre quelque chose."
- else:
- if player has permission "vanozia.staff":
- if arg 1 is "add":
- if arg 2 is "JeryCan":
- if targeted block is redstone block:
- set {targ.%player%} to "%location of targeted block%"
- set {z} to z-coordinate of targeted block
- set {x} to x-coordinate of targeted block
- set {y} to y-coordinate of targeted block
- wait 1 tick
- set {jea} to "%{x}% %{y}% %{z}%"
- set {jery} to false
- loop {JeryCan1::*}:
- if {jea} is "%loop-value%":
- send "&7[&aVanozia&7] &cCe JeryCan a dêja été ajoutez !"
- set {jery} to true
- if {jery} is true:
- stop
- else:
- send "&7[&aVanozia&7] &2JeryCan ajoutez avec succès !"
- add "%{jea}%" to {JeryCan1::*}
- else:
- send "&7[&aVanozia&7] &cTu doit regarder un JeryCan !"
- if arg 2 is "Générateur":
- if targeted block is iron block:
- set {targ.%player%} to "%location of targeted block%"
- set {z} to z-coordinate of targeted block
- set {x} to x-coordinate of targeted block
- set {y} to y-coordinate of targeted block
- set {jery} to false
- set {jea} to "%{x}% %{y}% %{z}%"
- loop {Generateur::*}:
- if {jea} is "%loop-value%":
- send "&7[&aVanozia&7] &cCe Générateur a dêja été ajoutez !"
- set {jery} to true
- if {jery} is true:
- stop
- else:
- send "&7[&aVanozia&7] &2Générateur ajoutez avec succès !"
- add "%{jea}%" to {Generateur::*}
- else:
- send "&7[&aVanozia&7] &cTu doit regarder un Générateur !"
- if arg 2 is "Radio":
- if targeted block is sea lantern:
- set {targ.%player%} to "%location of targeted block%"
- set {z} to z-coordinate of targeted block
- set {x} to x-coordinate of targeted block
- set {y} to y-coordinate of targeted block
- set {jery} to false
- set {jea} to "%{x}% %{y}% %{z}%"
- loop {Radio::*}:
- if {jea} is "%loop-value%":
- send "&7[&aVanozia&7] &cCette Radio a dêja été ajoutez !"
- set {jery} to true
- if {jery} is true:
- stop
- else:
- send "&7[&aVanozia&7] &2Radio ajoutez avec succès !"
- add "%{jea}%" to {Radio::*}
- else:
- send "&7[&aVanozia&7] &cTu doit regarder une Radio !"
- if arg 2 is "chest" or "chests":
- if targeted block is chest or trapped chest:
- set {targ.%player%} to "%location of targeted block%"
- set {z} to z-coordinate of targeted block
- set {x} to x-coordinate of targeted block
- set {y} to y-coordinate of targeted block
- set {jery} to false
- set {jea} to "%{x}% %{y}% %{z}%"
- loop {chest::*}:
- if {jea} is "%loop-value%":
- send "&7[&aVanozia&7] &cCe coffre a dêja été ajoutez !"
- set {jery} to true
- if {jery} is true:
- stop
- else:
- send "&7[&aVanozia&7] &2Coffre ajoutez avec succès !"
- add "%{jea}%" to {chest::*}
- set {loot.%{x}% %{y}% %{z}%} to true
- else:
- send "&7[&aVanozia&7] &cTu doit regarder un coffre !"
- if arg 2 is "spawn-tueur":
- set {jery} to false
- set {z} to z-coordinate of player
- set {x} to x-coordinate of player
- set {y} to y-coordinate of player
- set {spawntz} to "%{x}% %{y}% %{z}%"
- wait 1 tick
- loop {spawntz::*}:
- if {spawntz} is "%loop-value%":
- send "&7[&aVanozia&7] &cSpawn dêja ajoutez !"
- set {jery} to true
- if {jery} is true:
- stop
- else:
- add "%{spawntz}%" to {spawntz::*}
- send "&7[&aVanozia&7] &2Spawn pour le tueur ajoutez !"
- if arg 2 is "spawn":
- set {jery} to false
- set {z} to z-coordinate of player
- set {x} to x-coordinate of player
- set {y} to y-coordinate of player
- set {spawnjz} to "%{x}% %{y}% %{z}%"
- wait 1 tick
- loop {spawnjz::*}:
- if {spawnjz} is "%loop-value%":
- send "&7[&aVanozia&7] &cSpawn dêja ajoutez !"
- set {jery} to true
- if {jery} is true:
- stop
- else:
- add "%{spawnjz}%" to {spawnjz::*}
- send "&7[&aVanozia&7] &2Spawn pour Innocent/Policier ajoutez !"
- else if arg 2 is not "Radio" or "JeryCan" or "Générateur" or "spawn" or "spawn-tueur" or "chest" or "chests":
- send "&7[&aVanozia&7] &cCeci n'existe pas il y'a que Générateur/Radio/JeryCan/spawn-tueur/spawn/chest !"
- if arg 1 is "remove":
- if arg 2 is set:
- set {tet} to false
- wait 1 tick
- loop {Radio::*}:
- if "%arg 2%" is "%loop-value%":
- set {tet} to true
- loop {Generateur::*}:
- if "%arg 2%" is "%loop-value%":
- set {tet} to true
- loop {JeryCan1::*}:
- if "%arg 2%" is "%loop-value%":
- set {tet} to true
- loop {spawntz::*}:
- if "%arg 2%" is "%loop-value%":
- set {tet} to true
- loop {spawnjz::*}:
- if "%arg 2%" is "%loop-value%":
- set {tet} to true
- loop {chest::*}:
- if "%arg 2%" is "%loop-value%":
- set {tet} to true
- wait 1 tick
- if {tet} is true:
- remove "%arg 2%" from {JeryCan1::*}
- remove "%arg 2%" from {Radio::*}
- remove "%arg 2%" from {Generateur::*}
- remove "%arg 2%" from {spawntz::*}
- remove "%arg 2%" from {spawnjz::*}
- remove "%arg 2%" from {chest::*}
- delete {loot.%arg 2%}
- send "&7[&aVanozia&7] &2Objet ou spawn supprimée !"
- else:
- send "&7[&aVanozia&7] &cil n'y a rien a ses Coordonées !"
- else:
- send "&7[&aVanozia&7] &cVous devez precisez les cordonnés pour savoir faite /horror list (Générateur/Radio/JeryCan/spawn/spawn-tueur/chest)"
- if arg 1 is "list":
- if arg 2 is "Générateur":
- if {Generateur::*} is set:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- loop {Generateur::*}:
- send "&7[&aVanozia&7] &2%loop-value%"
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else:
- send "&7[&aVanozia&7] &cIl n'y a aucun Générateur !"
- if arg 2 is "Radio":
- if {Radio::*} is set:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- loop {Radio::*}:
- send "&7[&aVanozia&7] &2%loop-value%"
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else:
- send "&7[&aVanozia&7] &cIl n'y a aucune Radio !"
- if arg 2 is "chest":
- if {chest::*} is set:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- loop {chest::*}:
- send "&7[&aVanozia&7] &2%loop-value%"
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else:
- send "&7[&aVanozia&7] &cIl n'y a aucun coffre !"
- if arg 2 is "JeryCan":
- if {JeryCan1::*} is set:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- loop {JeryCan1::*}:
- send "&7[&aVanozia&7] &2%loop-value%"
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else:
- send "&7[&aVanozia&7] &cIl n'y a aucun JeryCan !"
- if arg 2 is "spawn":
- if {spawnjz::*} is set:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- loop {spawnjz::*}:
- send "&7[&aVanozia&7] &2%loop-value%"
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else:
- send "&7[&aVanozia&7] &cIl n'y a aucun spawn pour Innocent/Policier !"
- if arg 2 is "spawn-tueur":
- if {spawntz::*} is set:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- loop {spawntz::*}:
- send "&7[&aVanozia&7] &2%loop-value%"
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else:
- send "&7[&aVanozia&7] &cIl n'y a aucun spawn pour le tueur !"
- else if arg 2 is not "JeryCan" or "Générateur" or "Radio" or "spawn" or "spawn-tueur" or "chest" or "chests":
- send "&7[&aVanozia&7] &cTu doit mettre JeryCan/Générateur/Radio/chest !"
- else:
- send "&7[&aVanozia&7] &cTu n'est pas membre du staff !"
- on join:
- set {SousRole.%player%} to "&cAucun"
- command /admin-autre [<text>] [<text>] [<text>]:
- permission: vanozia.staff
- permission message: &7[&aVanozia&7] &cTu n'est pas membre du staff !
- trigger:
- if arg 1 is not set:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send " "
- send "&a/admin-autre add (barrier) &7Permet d'ajoutez des barrière."
- send "&a/admin-autre list (barrier) &7Permet de voir les barrière."
- send "&a/admin-autre remove (barrier cordo) &7Permet de supprimer une barrière."
- send " "
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else if arg 1 is set:
- if arg 1 is "list" or "add" or "remove":
- if arg 2 is not set:
- send "&7[&aVanozia&7] &cTu doit mettre soit coordonnée ou (barrier)"
- else if arg 2 is set:
- if arg 1 is "list":
- if arg 2 is "barrier":
- if arg 3 is set:
- send "&7[&aVanozia&7] &cArgument 3 ne doit pas être mis !"
- else:
- if {barrier2::*} is set:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- loop {barrier2::*}:
- send "%loop-value%"
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else:
- send "&7[&aVanozia&7] &cAucune barrière."
- else if arg 1 is not "list":
- if arg 3 is not set:
- send "&7[&aVanozia&7] &cTu doit precisez des coordonnées!"
- else if arg 3 is set:
- if arg 1 is "add":
- set {checkbar} to false
- wait 1 tick
- loop {barrier2::*}:
- if loop-value is "%arg 2% %arg 3%":
- set {checkbar} to true
- if {checkbar} is true:
- send "&7[&aVanozia&7] &cBarrière dêja ajoutez !"
- else if {checkbar} is false:
- send "&7[&aVanozia&7] &2Barrière ajoutez !"
- add "%arg 2% %arg 3%" to {barrier2::*}
- else if arg 1 is "remove":
- set {checkbar} to false
- wait 1 tick
- loop {barrier2::*}:
- if loop-value is "%arg 2% %arg 3%":
- set {checkbar} to true
- if {checkbar} is false:
- send "&7[&aVanozia&7] &cIl n'y a pas de barrière a ces coordonnées !"
- else if {checkbar} is true:
- send "&7[&aVanozia&7] &2Barrière supprimée !"
- remove "%arg 2% %arg 3%" from {barrier2::*}
- else:
- send "&7[&aVanozia&7] &clist ou remove ou add !"
- on join:
- set {role.%player%} to "&cAucun"
- command /pay [<text>] [<number>]:
- trigger:
- if arg 1 is not set:
- send "&7[&aVanozia&7] &cFaites: &2/pay <Joueur> <montant>"
- else if arg 1 is set:
- if arg 2 is set:
- if arg 2 is set:
- if arg 2 > 0:
- if name of player is "%arg 1%":
- send "&7[&aVanozia&7] &cTu peut pas t'envoyée de l'argent !"
- else:
- set {verifline} to false
- loop all players:
- if name of loop-player is "%arg 1%":
- set {verifline} to true
- if {verifline} is false:
- send "&7[&aVanozia&7] &cLe joueur &b%arg 1% &cn'est pas connecté !"
- else if {verifline} is true:
- if {money.%player%} >= arg 2:
- send "&7[&aVanozia&7] &2Vous avez bien envoyée &b%arg 2% &2Horror a &b%arg 1% &2!"
- remove arg 2 from {money.%player%}
- add arg 2 to {money.%arg 1%}
- loop all players:
- if name of loop-player is "%arg 1%":
- message "&7[&aVanozia&7] &b%player% &2vous a donné &b%arg 2% &2Horror !" to loop-player
- else:
- send "&7[&aVanozia&7] &cTu n'a pas assez d'horror !"
- else:
- send "&7[&aVanozia&7] &cNombre negatifs interdit !"
- else:
- send "&7[&aVanozia&7] &cVeillez precisez un nombre !"
- on join:
- wait 2 seconds
- 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 !"
- execute player command "/jukebox"
- on damage:
- if damage was caused by projectile:
- broadcast "&7[&aVanozia&7] &b%attacker% &ca ralenti quelqu'un !"
- set victim's walking speed to 0.1
- apply blindness 1 to the victim for 8 seconds
- wait 7 seconds
- set victim's walking speed to 0.2
- on join:
- set {_result} to result of connect to "https://api.mojang.com/users/profiles/minecraft/%player%"
- if {_result} is "":
- execute console command "/skin set %player% recher"
- else:
- execute console command "/skin set %player% %player%"
- on join:
- execute console command "/mv tp %player% Hub"
- wait 1 seconds
- send player title "&aChargement..." with subtitle "&c&lVanozia Horror" for 5 seconds
- execute console command "/minecraft:tp %player% 8.5 72 8.5"
- wait 5 seconds
- send player title "&aChargé!" with subtitle "&c&lVanozia Horror" for 3 seconds
- execute console command "/minecraft:tp %player% 8.5 68 8.5"
- on right click on redstone block:
- if {enjeu.%player%} is true:
- set block at event-block to air
- send "&7[&aVanozia&7] &cTu a trouvé 1 JeryCan !"
- broadcast "&7[&aVanozia&7] &b%player% &ca trouvé un JeryCan !"
- if {actu1} is "3 JeryCan":
- set {actu1} to "2 JeryCan"
- stop
- if {actu1} is "2 JeryCan":
- set {actu1} to "1 JeryCan"
- stop
- if {actu1} is "1 JeryCan":
- set {actu1} to "1 Générateur"
- stop
- else:
- send "&7[&aVanozia&7] &cTu doit être en jeu !"
- on right click on iron block:
- if {enjeu.%player%} is true:
- if {actu1} is "1 Générateur":
- set {actu1} to "1 Radio"
- send "&7[&aVanozia&7] &cTu a trouvé le Générateur"
- broadcast "&7[&aVanozia&7] &b%player% &ca trouvé le Générateur !"
- else if {actu1} contain "JeryCan":
- send "&7[&aVanozia&7] &cIl manque des JeryCan !"
- else if {actu1} is "1 Radio" or "&aS'enfuir !":
- send "&7[&aVanozia&7] &cLe Générateur est dêja actif !"
- else if {actu1} contain "Attendre":
- send "&7[&aVanozia&7] &cLe Générateur est dêja actif !"
- else:
- send "&7[&aVanozia&7] &ctu doit être en jeu !"
- on damage:
- if {enjeu.%attacker%} is true:
- if {tueur} is "%attacker%":
- execute console command "/jukebox music %victim% https://cutt.ly/hprcYR"
- wait 10 seconds
- execute console command "/jukebox stop %victim%"
- on right click on sea lantern:
- if {enjeu.%player%} is true:
- if {actu1} is "1 Radio":
- set {secs} to 120
- set {actu1} to "&aAttendre &b%{secs}% s"
- send "&7[&aVanozia&7] &cTu a trouvé la Radio"
- broadcast "&7[&aVanozia&7] &b%player% &ca trouvé la Radio !"
- loop 120 times:
- wait 1 seconds
- remove 1 from {secs}
- set {actu1} to "&aAttendre &b%{secs}% s"
- set {actu1} to "&aS'enfuir !"
- broadcast "&7[&aVanozia&7] &2Vite ! Toutes les Survivant et Policiers enfuiyais vous !" in world "Horror"
- wait 1 seconds
- execute console command "/§play4"
- else if {actu1} contain "JeryCan":
- send "&7[&aVanozia&7] &cLe Générateur doit être Actif !"
- else if {actu1} is "1 Générateur":
- send "&7[&aVanozia&7] &cLe Générateur doit être actif !"
- else:
- send "&7[&aVanozia&7]&cTu doit être en jeu !"
- every 1 seconds:
- loop all players:
- if loop-player is in "Horror":
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&a&lVanozia"
- set score " " in sidebar of loop-player to 11
- set score "&cHorror" in sidebar of loop-player to 10
- set score "&a " in sidebar of loop-player to 9
- set score "&2Chercher:" in sidebar of loop-player to 8
- set score "&b%{actu1}%" in sidebar of loop-player to 7
- set score " " in sidebar of loop-player to 6
- set score "&2Role:" in sidebar of loop-player to 5
- set score "&b%{role.%loop-player%}%" in sidebar of loop-player to 4
- set score " " in sidebar of loop-player to 3
- set score "&2Grade:" in sidebar of loop-player to 2
- set score "&b%{grade.%loop-player%}%" in sidebar of loop-player to 1
- else if loop-player is in "Hub":
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&a&lVanozia"
- set score "&c " in sidebar of loop-player to 15
- set score "&cHorror" in sidebar of loop-player to 14
- set score "&a " in sidebar of loop-player to 13
- set score "&2Level:" in sidebar of loop-player to 12
- set score "&r&b%{level.%loop-player%}%" in sidebar of loop-player to 11
- set score "&2XP:" in sidebar of loop-player to 10
- set score "&b%{xp.%loop-player%}%&7/&b%{xpmax.%loop-player%}%" in sidebar of loop-player to 9
- set score "&b " in sidebar of loop-player to 8
- set score "&2Argent Horror:" in sidebar of loop-player to 7
- set score "&b%{money.%loop-player%}%" in sidebar of loop-player to 6
- set score " " in sidebar of loop-player to 5
- if {boost.%loop-player%} is "&cAucun":
- set score "&cAucun Boost" in sidebar of loop-player to 4
- if {boost.%loop-player%} is "&ax2":
- set score "&aBoost x2" in sidebar of loop-player to 4
- set score "&l " in sidebar of loop-player to 3
- set score "&2Grade:" in sidebar of loop-player to 2
- set score "&b%{grade.%loop-player%}%" in sidebar of loop-player to 1
- else if loop-player is in "lobby":
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&a&lVanozia"
- set score " " in sidebar of loop-player to 8
- set score "&cHorror" in sidebar of loop-player to 7
- set score " " in sidebar of loop-player to 6
- set score "&2Lancement:" in sidebar of loop-player to 5
- set score "&b%{launch}%" in sidebar of loop-player to 4
- set score " " in sidebar of loop-player to 3
- set score "&2Grade:" in sidebar of loop-player to 2
- set score "&b%{grade.%loop-player%}%" in sidebar of loop-player to 1
- on load:
- set {actu1} to "3 JeryCan"
- on load:
- set {lanc} to 30
- command /setgrade [<text>] [<text>] [<text>]:
- trigger:
- if player has permission "vanozia.staff.fondateur":
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- 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!"
- set {grade.%arg 1%} to "%arg 2%"
- execute player command "/manuadd %arg 1% %arg 3%"
- else:
- 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!"
- set {grade.%arg 1%} to "%arg 2%"
- execute player command "/manuadd %arg 1% %arg 2%"
- else:
- send "&7[&aVanozia&7] &cMet le grade !"
- else:
- send "&7[&aVanozia&7] &cMet le Joueur !"
- else:
- send "&7[&aVanozia&7] &cTu n'est pas Fondateur !"
- on first join:
- if player is op:
- set {grade.%player%} to "Fondateur"
- else:
- set {grade.%player%} to "Joueur"
- # MONEY
- options:
- moneyb: 0 #l'argent de base
- on join:
- clear the player's inventory
- if {money.%player%} is not set:
- set {money.%player%} to {@moneyb}
- command /balance [<player>]:
- trigger:
- if arg 1 is set:
- if player has permission "vanozia.staff":
- send "&7[&aVanozia&7] &7Argent Horror de &2%arg 1%&2: &b%{money.%arg 1%}%"
- else:
- send "&7[&aVanozia&7] &cTu n'est pas membre du staff !"
- else:
- send "&7[&aVanozia&7] &7Argent Horror: &b%{money.%player%}%"
- command /money [<player>]:
- trigger:
- if arg 1 is set:
- if player has permission "vanozia.staff":
- send "&7[&aVanozia&7] &7Argent Horror de &2%arg 1%&2: &b%{money.%arg 1%}%"
- else:
- send "&7[&aVanozia&7] &cTu n'est pas membre du staff !"
- else:
- send "&7[&aVanozia&7] &7Argent Horror: &b%{money.%player%}%"
- command /eco [<text>] [<player>] [<number>]:
- permission: vanozia.staff.admin
- permission message: &7[&aVanozia&7] &cTu n'est pas Admin!
- trigger:
- if arg 1 is not set:
- send "&7[&aVanozia&7] &cTu doit faire /eco help!"
- stop
- if arg 1 is "add" or "remove" or "reset" or "add" or "set" or "help" or "aide":
- if arg 2 is not set:
- if arg 1 is "help" or "aide":
- send "&7[&aVanozia&7] &2Voici la list des Arguments: &bAdd, Remove, Reset, set"
- if arg 2 is set:
- if arg 3 is set:
- if arg 1 is "add":
- set {money.%arg 2%} to {money.%arg 2%} + arg 3
- wait 1 tick
- send "&7[&aVanozia&7] &2Tu a bien ajoutez &b%arg 3% &2a &b%arg 2% &2Il est maintenante a &b%{money.%arg 2%}%&2!"
- else if arg 1 is "remove":
- set {money.%arg 2%} to {money.%arg 2%} - arg 3
- send "&7[&aVanozia&7] &2Tu a bien supprimer &b%arg 3% &2a &b%arg 2% &2Il est maintenante a &b%{money.%arg 2%}%&2!"
- if {money.%arg 2%} < 0:
- send "&7[&aVanozia&7] &cUne erreur ses produise sont argent est inferieur a 0 donc on lui a mis a 0 !"
- set {money.%arg 2%} to 0
- else if arg 1 is "set":
- set {money.%arg 2%} to arg 3
- send "&7[&aVanozia&7] &2Tu a bien mis l'argent de &b%arg 2% &2a &b%arg 3% &2!"
- else if arg 1 is not "reset":
- send "&7[&aVanozia&7] &cTu doit preciser le nombre !"
- else if arg 1 is "reset":
- if arg 1 is "reset":
- set {money.%arg 2%} to {@moneyb}
- send "&7[&aVanozia&7] &2Tu a bien reset l'argent de &b%arg 2% &2!"
- else if arg 1 is not "aide" or "help":
- send "&7[&aVanozia&7] &cTu doit preciser le Joueur !"
- else:
- send "&7[&aVanozia&7] &cArgument non reconnu !"
- # MAGASIN
- options:
- prixfer: 100
- prixor: 500
- permdiam: vanozia.vip
- prefixshop: &7[&aVano&eShop&7]
- on right click with 266:
- wait 1 tick
- open chest with 1 rows named "&eBoutique" to player
- wait 2 tick
- if {shopiron.%player%} is true:
- format slot 2 of player with iron ingot named "&aShop Fer" with lore "&aAcheté √ !" to close then run [make player execute command "/§shopiron"]
- else:
- 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"]
- if {shopgold.%player%} is true:
- format slot 4 of player with gold ingot named "&aShop Or" with lore "&aAcheté √ !" to close then run [make player execute command "/§shopgold"]
- else:
- 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"]
- if player has permission "{@permdiam}":
- format slot 6 of player with diamond named "&aShop Diamant" with lore "&aDisponible √ !" to close then run [make player execute command "/§shopdiam"]
- else:
- format slot 6 of player with diamond named "&aShop Diamant" with lore "&cNon &eVIP &c !" to close
- command /§shopgold:
- trigger:
- if {shopgold.%player%} is true:
- wait 3 tick
- open chest with 1 rows named "&aMagasin Or" to player
- wait 1 tick
- format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shop"]
- format slot 2 of player with stone sword named "&aArmes" to close then run [make player execute command "/§goldarmes"]
- else:
- if {money.%player%} >= {@prixor}:
- remove {@prixor} from {money.%player%}
- set {shopgold.%player%} to true
- send "{@prefixshop} &aShop Or Acheté !"
- else:
- send "{@prefixshop} &cTu n'a pas assez de Horror !"
- command /§goldarmes:
- trigger:
- wait 3 tick
- open chest with 1 rows named "&aMagasin Or" to player
- wait 1 tick
- format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shopgold"]
- if {armes.%player%} is "or":
- format slot 2 of player with golden sword named "&aEpée en Or" with lore "&aSelectionné √" to close
- else:
- 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"]
- if {armes.%player%} is "fer":
- format slot 3 of player with iron sword named "&aEpée en Fer" with lore "&aSelectionné √" to close
- else:
- 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"]
- command /§shopdiam:
- trigger:
- if player has permission "vanozia.vip":
- wait 3 tick
- open chest with 1 rows named "&aMagasin Diamant" to player
- wait 1 tick
- format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shop"]
- format slot 2 of player with stone sword named "&aArmes" to close then run [make player execute command "/§diamondarmes"]
- format slot 3 of player with xp bottle named "&aBoost" to close then run [make player execute command "/§dboost"]
- else:
- send "{@prefixshop} &cTu n'est pas &eVIP &c!"
- command /§dboost:
- trigger:
- wait 3 tick
- open chest with 1 rows named "&aMagasin Diamant" to player
- wait 1 tick
- format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shopdiam"]
- if {boost.%player%} is "&cAucun":
- 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"]
- else:
- format slot 2 of player with diamond sword named "&aBoost 1" with lore "&cDêja un Boost" to close
- command /§boost1:
- trigger:
- if {money.%player%} >= 500:
- remove 500 from {money.%player%}
- set {boost.%player%} to "&ax2"
- set {expire.%player%} to "2"
- send "&7[&aVanozia&7] &2Achat pour Boost x2 effectuée."
- else:
- send "&7[&aVanozia&7] &cTu n'a pas assez d'Horror !"
- command /§diamondarmes:
- trigger:
- wait 3 tick
- open chest with 1 rows named "&aMagasin Diamant" to player
- wait 1 tick
- format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shopdiam"]
- if {armes.%player%} is "diamant":
- format slot 2 of player with diamond sword named "&aEpée en Diamant" with lore "&aSelectionné √" to close
- else:
- 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"]
- command /§shopiron:
- trigger:
- if {shopiron.%player%} is true:
- wait 3 tick
- open chest with 1 rows named "&aMagasin Fer" to player
- wait 1 tick
- format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shop"]
- format slot 2 of player with head named "&aSkin" to close then run [make player execute command "/§ironskin"]
- format slot 3 of player with stone sword named "&aArmes" to close then run [make player execute command "/§ironarmes"]
- else:
- if {money.%player%} >= {@prixfer}:
- remove {@prixfer} from {money.%player%}
- set {shopiron.%player%} to true
- send "{@prefixshop} &aShop Fer Acheté !"
- else:
- send "{@prefixshop} &cTu n'a pas assez de Horror !"
- command /§ironarmes:
- trigger:
- wait 3 tick
- open chest with 1 rows named "&aMagasin Fer" to player
- wait 1 tick
- format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shopiron"]
- if {armes.%player%} is "bois":
- format slot 2 of player with wooden sword named "&aEpée en Bois" with lore "&aSelectionné √" to close
- else:
- 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"]
- if {armes.%player%} is "stone":
- format slot 3 of player with stone sword named "&aEpée en Pierre" with lore "&aSelectionné √" to close
- else:
- 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"]
- command /§boise:
- trigger:
- set {armes.%player%} to "bois"
- send "&7[&aVanozia&7] &cL'Armes a bien été changé."
- command /§stonee:
- trigger:
- if {achatstone} is true:
- set {armes.%player%} to "stone"
- send "&7[&aVanozia&7] &cL'Armes a bien été changé."
- else:
- if {money.%player%} >= 200:
- set {armes.%player%} to "stone"
- send "&7[&aVanozia&7] &cL'Armes a bien été changé est acheté."
- set {achatstone} to true
- execute console command "/eco remove %player% 200"
- else:
- send "&7[&aVanozia&7] &cTu n'a pas assez d'Horror !"
- command /§diamante:
- trigger:
- if {achatdiamant} is true:
- set {armes.%player%} to "diamant"
- send "&7[&aVanozia&7] &cL'Armes a bien été changé."
- else:
- if {money.%player%} >= 5000:
- set {armes.%player%} to "diamant"
- send "&7[&aVanozia&7] &cL'Armes a bien été changé est acheté."
- set {achatdiamant} to true
- execute console command "/eco remove %player% 5000"
- else:
- send "&7[&aVanozia&7] &cTu n'a pas assez d'Horror !"
- command /§irone:
- trigger:
- if {achatfer} is true:
- set {armes.%player%} to "fer"
- send "&7[&aVanozia&7] &cL'Armes a bien été changé."
- else:
- if {money.%player%} >= 1000:
- set {armes.%player%} to "fer"
- send "&7[&aVanozia&7] &cL'Armes a bien été changé est acheté."
- set {achatfer} to true
- execute console command "/eco remove %player% 1000"
- else:
- send "&7[&aVanozia&7] &cTu n'a pas assez d'Horror !"
- command /§ore:
- trigger:
- if {achatore} is true:
- set {armes.%player%} to "or"
- send "&7[&aVanozia&7] &cL'Armes a bien été changé."
- else:
- if {money.%player%} >= 500:
- set {armes.%player%} to "or"
- send "&7[&aVanozia&7] &cL'Armes a bien été changé est acheté."
- set {achatore} to true
- execute console command "/eco remove %player% 500"
- else:
- send "&7[&aVanozia&7] &cTu n'a pas assez d'Horror !"
- command /§ironskin:
- trigger:
- wait 3 tick
- open chest with 1 rows named "&aMagasin Fer" to player
- wait 1 tick
- format slot 0 of player with 35:14 named "&c<-" to close then run [make player execute command "/§shopiron"]
- if {skin.%player%} is "votre":
- format slot 2 of player with head named "&aVotre Skin" with lore "&aSelectionné √" to close
- else:
- format slot 2 of player with head named "&aVotre Skin" with lore "&cNon Selectionné " to close then run [make player execute command "/§votreskin"]
- if {skin.%player%} is "slender":
- format slot 3 of player with head named "&aSlenderMan" with lore "&aSelectionné √" to close
- else:
- format slot 3 of player with head named "&aSlenderMan" with lore "&cNon Selectionné " to close then run [make player execute command "/§slender"]
- command /§slender:
- trigger:
- set {skin.%player%} to "slender"
- send "&7[&aVanozia&7] &cVotre skin a bien été mis !"
- execute console command "/skin set %player% slender"
- command /§votreskin:
- trigger:
- set {skin.%player%} to "votre"
- send "&7[&aVanozia&7] &cVotre skin a bien été mis !"
- execute console command "/skin set %player% %player%"
- on join:
- wait 2 tick
- if {skin.%player%} is not set:
- set {skin.%player%} to "votre"
- if {skin.%player%} is "votre":
- execute console command "/skin set %player% %player%"
- if {skin.%player%} is "slender":
- execute console command "/skin set %player% slender"
- command /§shop:
- trigger:
- wait 2 tick
- open chest with 1 rows named "&eBoutique" to player
- wait 2 tick
- if {shopiron.%player%} is true:
- format slot 2 of player with iron ingot named "&aShop Fer" with lore "&aAcheté √ !" to close then run [make player execute command "/§shopiron"]
- else:
- 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"]
- if {shopgold.%player%} is true:
- format slot 4 of player with gold ingot named "&aShop Or" with lore "&aAcheté √ !" to close then run [make player execute command "/§shopgold"]
- else:
- 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"]
- if player has permission "{@permdiam}":
- format slot 6 of player with diamond named "&aShop Diamant" with lore "&aDisponible √ !" to close then run [make player execute command "/§shopdiam"]
- else:
- format slot 6 of player with diamond named "&aShop Diamant" with lore "&cNon &eVIP &c !" to close
- # LOBBY - GAMEPLAY
- options:
- maxplayer: 10
- on death:
- if victim is player:
- force respawn the victim
- if {tueur} is "%victim%":
- broadcast "&7[&aVanozia&7] &cLe Tueur est decedé."
- set {joueurl} to 0
- wait 5 seconds
- loop all players:
- if {enjeu.%loop-player%} is true:
- set {enjeu.%loop-player%} to false
- set {lobby.%loop-player%} to false
- set player's max health to 10
- delete {murder}
- delete {engame::*}
- if {tueur} is not "%loop-player%":
- if {boost.%loop-player%} is "&cAucun":
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&a&lFIN DE PARTIE." to loop-player
- message "&2Tueur Decedé." to loop-player
- message " " to loop-player
- message "&cAucun Boost" to loop-player
- message "&e+30 Horror pour avoir survecu." to loop-player
- message "&e+15 XP"
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- execute console command "/eco add %loop-player% 30"
- execute console command "/addxp %loop-player% 15"
- else if {boost.%loop-player%} is "&ax2":
- if {expire.%loop-player%} = 1:
- set {expire.%loop-player%} to "0"
- set {boost.%loop-player%} to "&cAucun"
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&a&lFIN DE PARTIE." to loop-player
- message "&2Tueur Decedé." to loop-player
- message " " to loop-player
- message "&2Boost 2" to loop-player
- message "&e+&e&m30 &r&e60 Horror pour avoir survecu." to loop-player
- message "&e+&e&m15 &r&e30 XP" to loop-player
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- execute console command "/eco add %loop-player% 60"
- execute console command "/addxp %loop-player% 30"
- else if {expire.%loop-player%} > 0:
- if {expire.%loop-player%} > 1:
- remove 1 from {expire.%loop-player%}
- set {expire.%loop-player%} to "0"
- set {boost.%loop-player%} to "&cAucun"
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&a&lFIN DE PARTIE." to loop-player
- message "&2Tueur Decedé." to loop-player
- message " " to loop-player
- message "&2Boost 2" to loop-player
- message "&e+&e&m30 &r&e60 Horror pour avoir survecu." to loop-player
- message "&e+&e&m15 &r&e30XP" to loop-player
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- execute console command "/eco add %loop-player% 60"
- execute console command "/addxp %loop-player% 30"
- execute console command "/mv tp %loop-player% Hub"
- clear the loop-player's inventory
- wait 1 tick
- set slot 2 of loop-player to a Compass named "&aJouer"
- set slot 6 of loop-player to a golden ingot named "&eBoutique"
- if {skin.%loop-player%} is "votre":
- execute console command "/skin set %loop-player% %loop-player%"
- if {skin.%loop-player%} is "slender":
- execute console command "/skin %loop-player% slender"
- delete {game}
- set {jeu} to false
- delete {tueur}
- else:
- if {enjeu.%victim%} is true:
- remove 1 from {nombrej}
- set {joueurl} to 0
- set slot 2 of victim to a Compass named "&aJouer"
- set slot 6 of victim to a golden ingot named "&eBoutique"
- if {nombrej} >= 2:
- stop
- else:
- broadcast "&7[&aVanozia&7] &cIl ne reste plus de survivant."
- wait 5 seconds
- loop all players:
- if {enjeu.%loop-player%} is true:
- set {enjeu.%loop-player%} to false
- set {lobby.%loop-player%} to false
- set player's max health to 10
- delete {murder}
- delete {engame::*}
- if {tueur} is "%loop-player%":
- if {boost.%loop-player%} is "&cAucun":
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&a&lFIN DE PARTIE." to loop-player
- message "&2Tu a tué tout le monde." to loop-player
- message " " to loop-player
- message "&cAucun Boost" to loop-player
- message "&e+30 Horror pour les avoirs tué." to loop-player
- message "&e+15XP" to loop-player
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- execute console command "/eco add %loop-player% 30"
- else if {boost.%loop-player%} is "&ax2":
- if {expire.%loop-player%} = 1:
- set {expire.%loop-player%} to "0"
- set {boost.%loop-player%} to "&cAucun"
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&a&lFIN DE PARTIE." to loop-player
- message "&2Tu a tué tout le monde." to loop-player
- message " " to loop-player
- message "&2Boost 2" to loop-player
- message "&e+&e&m30 &r&e60 Horror pour les avoirs tué" to loop-player
- message "&e+&e&m15 &r&e30XP" to loop-player
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- execute console command "/eco add %loop-player% 60"
- execute console command "/addxp %loop-player% 30"
- else if {expire.%loop-player%} > 0:
- if {expire.%loop-player%} > 1:
- remove 1 from {expire.%loop-player%}
- set {expire.%loop-player%} to "0"
- set {boost.%loop-player%} to "&cAucun"
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&a&lFIN DE PARTIE." to loop-player
- message "&2Tu a tué tout le monde." to loop-player
- message " " to loop-player
- message "&2Boost 2" to loop-player
- message "&e+&e&m30 &r&e60 Horror pour les avoirs tué" to loop-player
- message "&e+&e&m15 &r&e30XP" to loop-player
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- execute console command "/eco add %loop-player% 60"
- execute console command "/addxp %loop-player% 30"
- set loop-player's max health to 10
- execute console command "/mv tp %loop-player% Hub"
- clear the loop-player's inventory
- wait 1 tick
- set slot 2 of loop-player to a Compass named "&aJouer"
- set slot 6 of loop-player to a golden ingot named "&eBoutique"
- if {skin.%loop-player%} is "votre":
- execute console command "/skin set %loop-player% %loop-player%"
- if {skin.%loop-player%} is "slender":
- execute console command "/skin %loop-player% slender"
- delete {game}
- set {jeu} to false
- delete {tueur}
- on quit:
- if {tueur} is "%player%":
- broadcast "&7[&aVanozia&7] &cLe Tueur s'est deconnecté."
- wait 5 seconds
- loop all players:
- if {enjeu.%loop-player%} is true:
- set {enjeu.%loop-player%} to false
- set {lobby.%loop-player%} to false
- delete {murder}
- if {tueur} is not "%loop-player%":
- execute console command "/eco add %loop-player% 10"
- message "&7[&aVanozia&7] &2tu a reçu &b10 &2Horror pour avoir survecu !" to loop-player
- clear the loop-player's inventory
- execute console command "/mv tp %loop-player% Hub"
- set player's max health to 10
- clear the loop-player's inventory
- wait 1 tick
- set slot 2 of loop-player to a Compass named "&aJouer"
- set slot 6 of loop-player to a golden ingot named "&eBoutique"
- delete {game}
- delete {engame::*}
- set {jeu} to false
- delete {tueur}
- on join:
- wait 4 seconds
- set {lobby.%player%} to true
- set {enjeu.%player%} to false
- clear the player's inventory
- wait 1 tick
- set slot 2 of player to a Compass named "&aJouer"
- set slot 6 of player to a golden ingot named "&eBoutique"
- on right click with compass:
- if name of tool is "&aJouer":
- if {jeu} is true:
- send "&7[&aVanozia&7] &cLe jeu est en cours. &7(Le Mode Spectateur n'est pas encore ajoutez)"
- else:
- if {nombrel} = {@maxplayer}:
- send "&7[aVanozia&7] &cIl n'y a plus de plase disponible !"
- else:
- set {SousRole.%player%} to "&cAucun"
- set player's max health to 10
- add 1 to {nombrel}
- set {echapp} to false
- set {echap1} to false
- set {echap2} to false
- set {echap3} to false
- set {echap4} to false
- set {lobby.%player%} to true
- send "&7[&aVanozia&7] &2Tu a rejoint le jeu !"
- execute console command "/mv tp %player% lobby"
- clear the player's inventory
- wait 2 tick
- set slot 8 of player to a 355 named "&cQuitter"
- wait 10 ticks
- loop all players:
- if loop-player is in "lobby":
- message "&7[&aVanozia&7] &b%player% &2a rejoint le jeu ! ( &b%{nombrel}% / {@maxplayer}&2 )" to loop-player
- wait 3 tick
- if {launcher} is true:
- stop
- else:
- if {nombrel} >= 2:
- set {launcher} to true
- set {launch} to 30
- loop 30 times:
- wait 1 seconds
- if {stop} is true:
- set {stop} to false
- set {launcher} to false
- stop
- else:
- if {nombrel} >= 2:
- wait 1 tick
- if {launch} = 30:
- broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b30 &2seconds !" in world "lobby"
- if {launch} = 20:
- broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b20 &2seconds !" in world "lobby"
- if {launch} = 10:
- broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b10 &2seconds !" in world "lobby"
- if {launch} = 5:
- broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b5 &2seconds !" in world "lobby"
- if {launch} = 4:
- broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b4 &2seconds !" in world "lobby"
- if {launch} = 3:
- broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b3 &2seconds !" in world "lobby"
- if {launch} = 2:
- broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b2 &2seconds !" in world "lobby"
- if {launch} = 1:
- broadcast "&7[&aVanozia&7] &2Lancement du jeu dans &b1 &2seconds !" in world "lobby"
- execute console command "/§play"
- set {launcher} to false
- remove 1 from {launch}
- else:
- broadcast "&7[&aVanozia&7] &c Lancement annulé pas assez de joueur !" in world "lobby"
- set {launch} to 30
- set {stop} to true
- command /play:
- permission: vanozia.staff
- permission message: &7[&aVanozia&7] &cTu n'est pas membre du staff !
- trigger:
- set {launcher} to false
- execute console command "/§play"
- on quit:
- set {pouvoir.%player%} to false
- on join:
- set player's max health to 10
- on death:
- set victim's max health to 10
- on quit:
- set player's max health to 10
- on load:
- set {launcher} to false
- set {launch} to 30
- set {jeu} to false
- set {game} to false
- delete {engame::*}
- delete {murder}
- set {nombrej} to 0
- set {game} to false
- loop all players:
- if {enjeu.%loop-player%} is true:
- set {enjeu.%loop-player%} to false
- on load:
- loop all players:
- if {lobby.%loop-player%} is true:
- set {lobby.%loop-player%} to false
- set {nombrel} to 0
- command /§play:
- trigger:
- set {jeu} to true
- set {nombrej} to {nombrel}
- wait 1 tick
- set {nombrel} to 0
- loop all players:
- if {lobby.%loop-player%} is true:
- set {enjeu.%loop-player%} to true
- set {role.%loop-player%} to "&cAucun"
- set {lobby.%loop-player%} to false
- set {pouvoir.%loop-player%} to false
- wait 1 seconds
- delete {game}
- wait 1 tick
- if {game} is not set:
- set {game} to true
- delete {murder}
- delete {engame::*}
- wait 1 tick
- loop all players:
- if {enjeu.%loop-player%} is true:
- add "%loop-player%" to {engame::*}
- if {nombrej} >= 2:
- execute console command "/§play2"
- else:
- set {game} to false
- set {nombrej} to 0
- set {jeu} to false
- loop all players:
- if {enjeu.%loop-player%} is true:
- execute console command "/mv tp %loop-player% Hub"
- clear the loop-player's inventory
- wait 1 tick
- set slot 2 of loop-player to a Compass named "&aJouer"
- set slot 6 of loop-player to a golden ingot named "&eBoutique"
- set {enjeu.%loop-player%} to false
- delete {engame::*}
- on join:
- set {lobby.%player%} to false
- set {enjeu.%player%} to false
- on join:
- If {xp.%player%} is not set:
- set {xp.%player%} to 0
- If {xpmax.%player%} is not set:
- set {xpmax.%player%} to 1000
- If {level.%player%} is not set:
- set {level.%player%} to 0
- command /level [<player>]:
- Trigger:
- if arg 1 is not set:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send "&aXP: &7%{xp.%player%}% &2/ &7%{xpmax.%player%}%"
- send "&aLevel: &7%{level.%player%}%"
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else:
- if player has permission "vanozia.staff":
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send "&aXP: &7%{xp.%arg 1%}% &2/ &7%{xpmax.%arg 1%}%"
- send "&aLevel: &7%{level.%arg 1%}%"
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else:
- send "&7[&aVanozia&7] &cTu n'est pas membre du staff !"
- command /addxp [<player>] [<number>]:
- permission: vanozia.staff.admin
- trigger:
- if arg 1 is not set:
- send "&7[&aVanozia&7] &cTu doit mettre le pseudo !"
- else if arg 2 is not set:
- send "&7[&aVanozia&7] &cTu doit preciser le montant !"
- else:
- if arg 1 is set:
- if arg 2 is set:
- set {xp.%arg 1%} to {xp.%arg 1%} + arg 2
- message "&7[&aVanozia&7] &2Tu a gagner &b%arg 2% &2XP" to arg 1
- wait 2 tick
- if {xp.%arg 1%} >= {xpmax.%arg 1%}:
- remove {xpmax.%arg 1%} from {xp.%arg 1%}
- set {xpmax.%arg 1%} to {xpmax.%arg 1%} + 1000
- set {level.%arg 1%} to {level.%arg 1%} + 1
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to arg 1
- message "&7[&aVanozia&7] &2Tu a gagner &b1 &2Level." To arg 1
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to arg 1
- every 1 seconds:
- loop all players:
- if {xp.%loop-player%} >= {xpmax.%loop-player%}:
- remove {xpmax.%loop-player%} from {xp.%loop-player%}
- set {xpmax.%loop-player%} to {xpmax.%loop-player%} + 1000
- set {level.%loop-player%} to {level.%loop-player%} + 1
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message "&7[&aVanozia&7] &2Tu a gagner &b1 &2Level." To loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- command /addlevel [<player>] [<number>]:
- permission: vanozia.staff.admin
- trigger:
- if arg 1 is not set:
- send "&7[&aVanozia&7] &cTu doit mettre le pseudo !"
- else if arg 2 is not set:
- send "&7[&aVanozia&7] &cTu doit mettre le montant !"
- else if arg 1 is set:
- if arg 2 is set:
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to arg 1
- message "&7[&aVanozia&7] &2Tu a gagner &b%arg 2% &2Level !" To arg 1
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to arg 1
- set {level.%arg 1%} to {level.%arg 1%} + arg 2
- command /§play2:
- trigger:
- set {actu1} to "3 JeryCan"
- set {joueure} to {joueurj}
- loop all players:
- if loop-player is in "lobby":
- if {enjeu.%loop-player%} is true:
- execute console command "/mv tp %loop-player% Horror"
- clear the loop-player's inventory
- wait 1 seconds
- if {murder} is not set:
- set {murder} to a random element out of {engame::*}
- set {tueur} to {murder}
- set {role.%{tueur}%} to "&cTueur"
- wait 1 tick
- loop all players:
- if {tueur} is not "%loop-player%":
- set {pouvoir.%loop-player%} to false
- chance of 50%:
- set {role.%loop-player%} to "&aInnocent"
- chance of 50%:
- set {role.%loop-player%} to "&3Policier"
- loop all players:
- if {role.%loop-player%} is "&cAucun":
- if {tueur} is not set:
- set {tueur} to "%loop-player%"
- set {tueur} to {murder}
- set {role.%{tueur}%} to "&cTueur"
- else:
- chance of 70%:
- set {role.%loop-player%} to "&aInnocent"
- chance of 30%:
- set {role.%loop-player%} to "&3Policier"
- loop all players:
- if {enjeu.%loop-player%} is true:
- if {role.%loop-player%} is "&cAucun":
- set {ole.%loop-player%} to "&aInnocent"
- loop all players:
- if {enjeu.%loop-player%} is true:
- wait 1 seconds
- if {tueur} is "%loop-player%":
- set {spawngo} to a random element out of {spawntz::*}
- wait 1 tick
- execute console command "/tp %loop-player% %{spawngo}%"
- else if {role.%loop-value%} is "&ainnocent" or "&3Policier":
- set {spawngo} to a random element out of {spawnjz::*}
- wait 1 tick
- execute console command "/tp %loop-player% %{spawngo}%"
- execute console command "/§play3"
- on right click with paper:
- if name of tool is "&aSuper Pouvoir &7(Clique Droit)":
- remove 1 paper from player's inventory
- chance of 20%:
- apply invisibility 1 to the player for 5 seconds
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send "&aType: &bBien pour vous seul"
- send "&aEffectuée: &bInvisibilité pendant 5 seconds"
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- stop
- chance of 20%:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send "&aType: &bContre vous"
- send "&aEffectuée: &bDonne vos coordonné au tueur."
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- loop all players:
- if {enjeu.%loop-player%} is true:
- if {role.%loop-player%} is "&cTueur":
- message "&7[&aVanozia&7] &2Coordonnée d'un Innocent avec des pouvoirs: &b%location of player%" to loop-player
- stop
- chance of 10%:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send "&aType: &bBien pour les innocent/policier"
- send "&aEffectuée: &bDonne un effect de regeneration 2 pendant 6 seconds."
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- loop all players:
- if {enjeu.%loop-player%} is true:
- if {role.%loop-player%} is not "&cTueur":
- apply regeneration 2 to the loop-player for 6 seconds
- message "&7[&aVanozia&7] &2Régéneration 2 pendant 6 seconds donné par &b%player% &2!" to loop-player
- stop
- chance of 15%:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send "&aType: &bNul pour tout le monde !"
- send "&aEffectuée: &bDonne un effect de slowness 2 pendant 6 seconds a tout le monde."
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- loop all players:
- if {enjeu.%loop-player%} is true:
- if {role.%loop-player%} is not "&cTueur":
- apply slowness 2 to the loop-player for 6 seconds
- message "&7[&aVanozia&7] &2On remerci qui ??? &b%player% &2!!"
- stop
- chance of 15%:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send "&aType: &bBien pour toi !"
- send "&aEffectuée: &bDonne 1 pomme en or."
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- give 1 golden apple named "&aChance" to player
- stop
- chance of 10%:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send "&aType: &bBien !"
- send "&aEffectuée: &bDonne un effect de slowness 2 pendant 6 seconds a tout le monde."
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- stop
- chance of 10%:
- if {echapp} is true:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send "&aType: &bCoordonnée !"
- send "&aEffectuée: &bDonne les coordonnées de l'emplacement des policier."
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- if {echap1} is true:
- send "&7[&aVanozia&7] &2Policier: Nord"
- if {echap2} is true:
- send "&7[&aVanozia&7] &2Policier: East"
- if {echap3} is true:
- send "&7[&aVanozia&7] &2Policier: sud"
- if {echap4} is true:
- send "&7[&aVanozia&7] &2Policier: West"
- stop
- else:
- send "&7[&aVanozia&7] &cLe pouvoir n'a pas pus fonctionner car il peut fonctionner qu'a la fin."
- else:
- if {echapp} is true:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send "&aType: &bCoordonnée !"
- send "&aEffectuée: &bDonne les coordonnées de l'emplacement des policier."
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- if {echap1} is true:
- send "&7[&aVanozia&7] &2Policier: Nord"
- if {echap2} is true:
- send "&7[&aVanozia&7] &2Policier: East"
- if {echap3} is true:
- send "&7[&aVanozia&7] &2Policier: sud"
- if {echap4} is true:
- send "&7[&aVanozia&7] &2Policier: West"
- stop
- else:
- send "&7[&aVanozia&7] &cLe pouvoir n'a pas pus fonctionner car il peut fonctionner qu'a la fin."
- command /admin-horror [<text>]:
- permission: vanozia.staff
- permission message: &7[&aVanozia&7] &cTu n'est pas membre du staff !
- trigger:
- if arg 1 is not set:
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- send "&7/admin-horror test1 &2Permet de se give un pouvoir"
- send "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8("
- else:
- if arg 1 is not "test1":
- send "&7[&aVanozia&7] &cArgument non reconnu !"
- else if arg 1 is "test1":
- give 1 paper named "&aSuper Pouvoir &7(Clique Droit)" to player
- send "&7[&aVanozia&7] &2Effectuée !"
- every 1 seconds:
- loop all players:
- if {enjeu.%loop-player%} is true:
- if {tueur} is "%loop-player%":
- if {armes.%loop-player%} is "fer":
- set slot 0 of loop-player to a iron sword named "&aCouteau"
- set slot 1 of loop-player to a iron sword named "&aCouteau"
- set slot 2 of loop-player to a iron sword named "&aCouteau"
- set slot 3 of loop-player to a iron sword named "&aCouteau"
- set slot 4 of loop-player to a iron sword named "&aCouteau"
- set slot 5 of loop-player to a iron sword named "&aCouteau"
- set slot 6 of loop-player to a iron sword named "&aCouteau"
- set slot 7 of loop-player to a iron sword named "&aCouteau"
- set slot 8 of loop-player to a iron sword named "&aCouteau"
- if {armes.%loop-player%} is "bois":
- set slot 0 of loop-player to a wooden sword named "&aCouteau"
- set slot 1 of loop-player to a wooden sword named "&aCouteau"
- set slot 2 of loop-player to a wooden sword named "&aCouteau"
- set slot 3 of loop-player to a wooden sword named "&aCouteau"
- set slot 4 of loop-player to a wooden sword named "&aCouteau"
- set slot 5 of loop-player to a wooden sword named "&aCouteau"
- set slot 6 of loop-player to a wooden sword named "&aCouteau"
- set slot 7 of loop-player to a wooden sword named "&aCouteau"
- set slot 8 of loop-player to a wooden sword named "&aCouteau"
- if {armes.%loop-player%} is "stone":
- set slot 0 of loop-player to a stone sword named "&aCouteau"
- set slot 1 of loop-player to a stone sword named "&aCouteau"
- set slot 2 of loop-player to a stone sword named "&aCouteau"
- set slot 3 of loop-player to a stone sword named "&aCouteau"
- set slot 4 of loop-player to a stone sword named "&aCouteau"
- set slot 5 of loop-player to a stone sword named "&aCouteau"
- set slot 6 of loop-player to a stone sword named "&aCouteau"
- set slot 7 of loop-player to a stone sword named "&aCouteau"
- set slot 8 of loop-player to a stone sword named "&aCouteau"
- if {armes.%loop-player%} is "or":
- set slot 0 of loop-player to a golden sword named "&aCouteau"
- set slot 1 of loop-player to a golden sword named "&aCouteau"
- set slot 2 of loop-player to a golden sword named "&aCouteau"
- set slot 3 of loop-player to a golden sword named "&aCouteau"
- set slot 4 of loop-player to a golden sword named "&aCouteau"
- set slot 5 of loop-player to a golden sword named "&aCouteau"
- set slot 6 of loop-player to a golden sword named "&aCouteau"
- set slot 7 of loop-player to a golden sword named "&aCouteau"
- set slot 8 of loop-player to a golden sword named "&aCouteau"
- if {armes.%loop-player%} is "diamant":
- set slot 0 of loop-player to a diamond sword named "&aCouteau"
- set slot 1 of loop-player to a diamond sword named "&aCouteau"
- set slot 2 of loop-player to a diamond sword named "&aCouteau"
- set slot 3 of loop-player to a diamond sword named "&aCouteau"
- set slot 4 of loop-player to a diamond sword named "&aCouteau"
- set slot 5 of loop-player to a diamond sword named "&aCouteau"
- set slot 6 of loop-player to a diamond sword named "&aCouteau"
- set slot 7 of loop-player to a diamond sword named "&aCouteau"
- set slot 8 of loop-player to a diamond sword named "&aCouteau"
- on join:
- if {sword.%player%} is not set:
- set {sword.%player%} to "bois"
- every 25 seconds:
- loop all players:
- if {enjeu.%loop-player%} is true:
- if loop-player is not "%{tueur}%":
- if {pouvoir.%loop-player%} is true:
- give 1 paper named "&aSuper Pouvoir &7(Clique Droit)" to loop-player
- on drop iron sword or stone sword or wooden sword or diamond sword or golden sword or paper:
- cancel event
- on damage:
- if victim is in "Hub" or "lobby":
- cancel event
- command /§play3:
- trigger:
- loop {Radio::*}:
- set block at loop-value to a air
- execute console command "/setblock %loop-value% air"
- loop {Generateur::*}:
- set block at loop-value to air
- execute console command "/setblock %loop-value% air"
- loop {chest::*}:
- set block at loop-value to air
- execute console command "/setblock %loop-value% air"
- set {radi} to a random element out of {Radio::*}
- set {gen} to a random element out of {Generateur::*}
- wait 1 tick
- set block at {radi} to sea lantern
- execute console command "/setblock %{radi}% sea_lantern"
- set block at {gen} to iron block
- execute console command "/setblock %{gen}% iron_block"
- delete {JeryCan2::*}
- wait 1 tick
- loop {JeryCan1::*}:
- add "%loop-value%" to {JeryCan2::*}
- set block at loop-value to air
- execute console command "/setblock %loop-value% air"
- wait 1 seconds
- loop 3 times:
- set {can} to a random element out of {JeryCan2::*}
- wait 1 tick
- remove "%{can}%" from {JeryCan2::*}
- set block at {can} to redstone block
- execute console command "/setblock %{can}% redstone_block"
- loop 4 times:
- set {loots} to a random element out of {chest::*}
- wait 1 tick
- set block at {loots} to redstone block
- execute console command "/setblock %{loots}% chest"
- loop all players:
- if {enjeu.%loop-player%} is true:
- if {role.%loop-player%} is "&cAucun":
- set {role.%loop-player%} to "&aInnocent"
- set player's max health to 10
- send loop-player title "&2Role:" with subtitle "&aInnocent" for 4 seconds
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&2Tu est &aInnocent&2." to loop-player
- message " " to loop-player
- message "&2Ton bute est de trouver des JeryCan puis un Generateur et une Radio!" to loop-player
- message "&2Tu doit aussi aider les innocent et les Policiers !" to loop-player
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- chance of 20%:
- message "&7[&aVanozia&7] &cTu n'a pas de super pouvoir !" to loop-player
- chance of 80%:
- message "&7[&aVanozia&7] &cTu a des super Pouvoirs !" to loop-player
- set {pouvoir.%loop-player%} to true
- if {role.%loop-player%} is "&3Policier":
- send loop-player title "&2Role:" with subtitle "&3Policier" for 4 seconds
- set player's max health to 10
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&2Tu est &3Policier&2." to loop-player
- message " " to loop-player
- message "&2Ton bute est d'aider les Innocent a s'enfuir!" to loop-player
- message "&2Tu est muni d'une arme pour ralentir le tueur !" to loop-player
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- execute console command "/shot give %loop-player% TAZER"
- execute console command ":skin set %loop-player% Police"
- if {role.%loop-player%} is "&aInnocent":
- set player's max health to 10
- send loop-player title "&2Role:" with subtitle "&aInnocent" for 4 seconds
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&2Tu est &aInnocent&2." to loop-player
- message " " to loop-player
- message "&2Ton bute est de trouver des JeryCan puis un Generateur et une Radio!" to loop-player
- message "&2Tu doit aussi aider les innocent et les Policiers !" to loop-player
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- chance of 20%:
- message "&7[&aVanozia&7] &cTu n'a pas de super pouvoir !" to loop-player
- chance of 80%:
- message "&7[&aVanozia&7] &cTu a des super Pouvoirs !" to loop-player
- set {pouvoir.%loop-player%} to true
- if {role.%loop-player%} is "&cTueur":
- set {_m} to loop-player's max health
- wait 1 tick
- set loop-player's max health to {_m} + 40
- wait 1 tick
- execute console command "/heal %loop-player%"
- send loop-player title "&2Role:" with subtitle "&cTueur" for 4 seconds
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- message " " to loop-player
- message "&2Tu est &cTueur&2." to loop-player
- message " " to loop-player
- message "&2Ton bute est de Tuer Tout le Monde!" to loop-player
- message "&2Tu peut t'amuser avec eu !" to loop-player
- message " " to loop-player
- message "&8)&7&m----------&8( &aVanozia &8)&7&m----------&8(" to loop-player
- give 1 stone sword named "&aCouteau" to loop-player
- execute console command "/skin set %loop-player% slender"
- message "&cAttention Vous ne pouvais pas recuperer de la vie sauf en trouvant des object ou en activant des trucs!"
- on hunger meter change:
- if player is in "Hub" or "lobby" or "Horror":
- set player's food bar to 10
- every 5 seconds:
- if {game} is true:
- if {nombrej} >= 2:
- stop
- else:
- broadcast "&7[&aVanozia&7] &cFin de la partie." in world "Horror"
- set {joueurl} to 0
- loop all players:
- if {enjeu.%loop-player%} is true:
- execute console command "/mv tp %loop-player% Hub"
- set loop-player's max health to 10
- broadcast "&7[&aVanozia&7] &cFin de partie: &b10 &2Horror" in world "Horror"
- execute console command "/eco add %loop-player% 10"
- wait 5 seconds
- loop all players:
- if {enjeu.%loop-player%} is true:
- execute console command "/mv tp %loop-player% Hub"
- clear the loop-player's inventory
- set loop-player's max health to 10
- wait 1 tick
- set slot 2 of loop-player to a Compass named "&aJouer"
- set slot 6 of loop-player to a golden ingot named "&eBoutique"
- set {enjeu.%loop-player%} to false
- delete {game}
- delete {engame::*}
- set {jeu} to false
- on load:
- delete {engame::*}
- delete {game}
- on drop 355:
- cancel event
- on right click with 355:
- if name of tool is "&cQuitter":
- cancel event
- if {lobby.%player%} is true:
- set {lobby.%player%} to false
- send "&7[&aVanozia&7] &cTu a quitter le jeu !"
- remove 1 from {nombrel}
- set player's max health to 10
- execute console command "/mv tp %player% Hub"
- clear the player's inventory
- wait 1 tick
- set slot 2 of player to a Compass named "&aJouer"
- set slot 6 of player to a golden ingot named "&eBoutique"
- loop all players:
- if loop-player is in "lobby":
- message "&7[&aVanozia&7] &b%player% &2a quitter le jeu ! ( &b%{nombrel}% / {@maxplayer}&2 )" to loop-player
- on quit:
- if {lobby.%player%} is true:
- set {lobby.%player%} to false
- remove 1 from {nombrel}
- loop all players:
- if loop-player is in "lobby":
- message "&7[&aVanozia&7] &b%player% &2a quitter le jeu ! ( &b%{nombrel}% / {@maxplayer}&2 )" to loop-player
- on drop compass or gold ingot or bed item:
- cancel event
- on load:
- delete {murder}
- on quit:
- if {enjeu.%player%} is true:
- set {enjeu.%player%} to false
- remove 1 from {nombrej}
- on load:
- set {nombrej} to 0
- set {jeu} to false
Advertisement
Add Comment
Please, Sign In to add comment