Manu_Freezi Posté(e) le 17 janvier 2016 Posté(e) le 17 janvier 2016 Bonjour, j'ai récement crée un bot avec citizen et sentry et j'aimerais savoir comment faire un skript pour pouvoir le 1vs1 dans une arène avec un compte a rebourd de 3 secondes avant que le pvp commence Quand on pop dans l'arene le stuff se met automatiquement Quand on kill le bot on retourne au spawn Merci d'avance :p
kumakuma215 Posté(e) le 19 janvier 2016 Posté(e) le 19 janvier 2016 Bonjour, j'ai récement crée un bot avec citizen et sentry et j'aimerais savoir comment faire un skript pour pouvoir le 1vs1 dans une arène avec un compte a rebourd de 3 secondes avant que le pvp commence Quand on pop dans l'arene le stuff se met automatiquement Quand on kill le bot on retourne au spawn Merci d'avance :p Le Code : on death of npc: if name of victim contains "BOT PVP": loop 36 times: set slot {_count} of player's inventory to {inventaire.%UUID of player%.%{_count}%} add 1 to {_count} set the player's helmet slot to {inventaire.%player's UUID%.Helmet} set the player's chestplate slot to {inventaire.%player's UUID%.Chestplate} set the player's leggings slot to {inventaire.%player's UUID%.Leggings} set the player's boots slot to {inventaire.%player's UUID%.Boots} teleport player to spawn set {_select} to the first element of {ListeAttente::*} remove {select} from {ListeAttente::*} make player run command "/1v1 BOT" command /1v1 BOT: trigger: if {1v1.EnCours} is true: send "&4Un 1vs1 est déjà en cours! Vous êtes désormais à la liste d'attente!" add player to {ListeAttente::*} else: send "&4Téléportation dans 3 secondes..." set {_count} to 0 loop 36 times: set {inventaire.%UUID of player%.%{_count}%} to slot {_count} of player's inventory add 1 to {_count} set {inventaire.%player's UUID%.Helmet} to the player's helmet slot set {inventaire.%player's UUID%.Chestplate} to the player's chestplate slot set {inventaire.%player's UUID%.Leggings} to the player's leggings slot set {inventaire.%player's UUID%.Boots} to the player's boots slot wait 3 seconds clear the player's inventory set the player's helmet slot to iron helmet set the player's chestplate slot to iron chestplate set the player's leggings slot to iron leggings set the player's boots slot to iron boots set the first slot of player to iron sword set the second slot of player to 64 steaks set the third slot of player to bow set the fourth slot of player to 4 arrows teleport player to {Spawn.Player} send "&4Bon combat!" /!\Je n'ai pas testé le code/!\
Messages recommandés