debsndprgs5 Posté(e) le 11 février 2017 Posté(e) le 11 février 2017 ShotBattle Version de minecraft / skript : 1.8.(x) Type du skript : Mini-Jeu Description : Bonsoir , je viens ici dans l'espoir que quelqu'un d'assez expérimenté m'aide , je voudrait un Skript de MiniJeu , le minijeu serait : de 2 à 4 joueurs , chaque équipe a une base , dans le ciel a 50 blocks d'écarts. Je voudrait qu'avec une commande on puisse définir le point de spawn des deux équipes , les deux équipes recevront dans leur inventaire au début de la partie : - 64 redstones - 64 répéteurs - 64 boutons en bois - 64 pistons collants - 64 blocks de slime - 5 seaux d'eau - 5 fois 64 obsidiennes - 3 briquets - le reste de l'inventaire en TnT les deux équipes peuvent détruire la base ennemie et poser des blocks n'importe ou.. au bout de 5 morts , le joueur est éliminé et passe en mode spectateur jusqu’à la fin de la partie La fin de la partie : Quand une équipe n'a plus de joueurs , la partie s’arrête et la map (le world) intitulé "ShortBattle" se régénère comme elle était. Commandes : la commande /shotbattle setspawn rouge /shotbattle setspawn bleu /shotbattle setlobby Autres précisions : Un lobby ! avec la commande /shotbattle join vous êtes tp dans une salle jusqu’à ce que les 2-4 joueurs soient rentrés (si possible mettre 2 laines bleue et rouge pour choisir son équipe ou bien au hasard...) (/shotbattle setlobby pour definir cette salle) A la fin de la partie , les joueurs exécutent la commande /spawn Si vous avez la gentillesse de créer se Sk pour moi , je vous en serait très reconnaissant... (a voir je peut vous passer un grade VIP sur mon serveur ! xD) Je peut également recourir a une rémunération ! (je ne dépasserait pas 10 euros) Merci..
MrForoche Posté(e) le 12 février 2017 Posté(e) le 12 février 2017 Hey , je suis disponible pour coder ton jeu :) Il me faut plus de détails , donc pourrait tu venir sur Skype ? Si oui demande moi > mrforoche
debsndprgs5 Posté(e) le 13 février 2017 Auteur Posté(e) le 13 février 2017 Bonjour , j'ai le code , mais il y a des erreurs , pourriez vous arranger ça ?.. voir me dire si il y a des addons qu'il faut en particulier every 1 seconds: if {jeu.on} is true: if {shoot.join} is bigger than 1: set {jeu.on} to false execute console command "§resetavance" broadcast "&9ShootBattle: &7Téléporation en jeu dans : &330 secondes" in "shootbattle" set {temps.shoot} to "30 secondes" wait 10 second broadcast "&9ShootBattle: &7Téléporation en jeu dans : &320 secondes" in "shootbattle" set {temps.shoot} to "20 secondes" wait 10 second broadcast "&9ShootBattle: &7Téléporation en jeu dans : &310 secondes" in "shootbattle" set {temps.shoot} to "10 secondes" wait 5 second broadcast "&9ShootBattle: &7Téléporation en jeu dans : &35 secondes" in "shootbattle" set {temps.shoot} to "5 secondes" wait 1 second broadcast "&9ShootBattle: &7Téléporation en jeu dans : &34 secondes" in "shootbattle" set {temps.shoot} to "4 secondes" wait 1 second broadcast "&9ShootBattle: &7Téléporation en jeu dans : &33 secondes" in "shootbattle" set {temps.shoot} to "3 secondes" wait 1 second broadcast "&9ShootBattle: &7Téléporation en jeu dans : &32 secondes" in "shootbattle" set {temps.shoot} to "2 secondes" wait 1 second broadcast "&9ShootBattle: &7Téléporation en jeu dans : &31 seconde" in "shootbattle" set {temps.shoot} to "1 seconde" wait 1 second loop all players: if loop-player is in "shootbattle": execute loop-player command "shootstart" command /§resetavance: permission: admin trigger: wait 15 minutes broadcast "&9ShootBattle: &a&lMap Disponible ! &aChargement terminé." set {shoot.join} to 0 set {temps.shoot} to "0 minute" set {jeu.on} to true loop {blocks.SHOOT::*}: set block at loop-value to air on load: set {shoot.join} to 0 set {temps.shoot} to "0 minute" set {jeu.on} to true loop {blocks.SHOOT::*}: set block at loop-value to air on place: if player is in "shootbattle": add location of event-block to {blocks.SHOOT::*} on break: if player is in "shootbattle": if event-block is not redstone or 93 or 143 or 29 or 165 or tnt: cancel event command /setspawnbleu: permission: set.spawn trigger: set {spawn.bleu} to player's location message "&aTu as set le spawn des &9bleus &a!" command /setspawnrouge: permission: set.spawn trigger: set {spawn.rouge} to player's location message "&aTu as set le spawn des &crouges &a!" command /setspawnshootbattle: permission: set.spawn trigger: set {spawn.shoot} to player's location message "&aTu as set le spawn!" command /setmortshootbattle: permission: set.spawn trigger: set {lobbymort} to player's location message "&aTu as set le spawn de mort!" command /shootjoin: trigger: if player is in "shootbattle": set {equipe.%player%} to "rien" set {mort.shoot.%player%} to 0 heal the player clear the player's inventory wait 0.5 ticks add 1 to {shoot.join} broadcast "&9ShootBattle: %player% &7à rejoint la partie ! &3(%{shoot.join}%/4)" in world "shootbattle" wait 1 ticks play raw sound "random.click" at player with pitch 1 volume 1 wait 1 ticks teleport player to {spawn.shoot} set slot 3 of player to 35:11 named "&9EQUIPE BLEUE" set slot 5 of player to 35:14 named "&cEQUIPE ROUGE" on right click with wool: if player is in "shootbattle": If name of player's tool is "&9EQUIPE BLEUE": cancel event set {equipe.%player%} to "bleue" wait 5 ticks remove 35:11 named "&9EQUIPE BLEUE" from player's inventory remove 35:14 named "&cEQUIPE ROUGE" from player's inventory message "&9ShootBattle: &7Tu as rejoint l'équipe &3bleue" set player tab name to "&f%player% &7[&3â—�&7]" If name of player's tool is "&cEQUIPE ROUGE": cancel event set {equipe.%player%} to "rouge" wait 5 ticks remove 35:11 named "&9EQUIPE BLEUE" from player's inventory remove 35:14 named "&cEQUIPE ROUGE" from player's inventory message "&9ShootBattle: &7Tu as rejoint l'équipe &crouge" set player tab name to "&f%player% &7[&câ—�&7]" command /shootstart: trigger: if player is in "shootbattle": message "&9ShootBattle: &3Démarrage en cours !" to player wait 1 second if {equipe.%player%} is "bleue": teleport player to {spawn.bleu} if {equipe.%player%} is "rouge": teleport player to {spawn.rouge} else if {equipe.%player%} is "rien": teleport player to {lobbymort} message "&9ShootBattle: &cTu n'as pas choisi d'équipe ! Donc tu ne peux pas jouer !" clear the player's inventory set player's gamemode to survival message "&9ShootBattle: Partie démarrer ! Bonne chance à toi !" to player give 64 redstone to player give 64 93 to player give 64 143 to player give 64 29 to player give 64 165 to player give 64 obsidian to player give 64 obsidian to player give 64 obsidian to player give 64 obsidian to player give 64 obsidian to player give 3 259 to player wait 2 ticks give 2000 tnt to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &315 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &314 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &313 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &312 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &311 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &310 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &39 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &38 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &37 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &36 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &35 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &34 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &33 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &32 minutes !" to player wait 1 minute if player is in "ShootBattle": message "&9ShootBattle: &7La fin du jeu dans: &31 minute !" to player wait 1 minute loop all players: if loop-player is in "ShootBattle": kill loop-player broadcast "&9ShootBattle: &6Fin de la partie ! &c&lAucun gagnant." on explosion: if event-world is "shootbattle": cancel event create a safe explosion of force 2 loop exploded blocks: if loop-block is stone: set loop-block to air on damage: victim is a player attacker is a player attacker's world is "shootbattle" if {equipe.%attacker%} is "rouge": if {equipe.%victim%} is "rouge": cancel event else if {equipe.%attacker%} is "bleue": if {equipe.%victim%} is "bleue": cancel event on death of player: victim is in world "shootbattle" if {equipe.%player%} is "bleue": set player tab name to "&f%player% &7[&3â—�&7]" teleport player to {spawn.bleu} broadcast "&9ShootBattle: &6%victim% &7[&3â—�&7] &eest mort !" in "ShootBattle" if {equipe.%player%} is "rouge": set player tab name to "&f%player% &7[&câ—�&7]" teleport player to {spawn.rouge} broadcast "&9ShootBattle: &6%victim% &7[&câ—�&7] &eest mort !" in "ShootBattle" on respawn: if player is in world "shootbattle": wait 5 ticks if {equipe.%player%} is "bleue": teleport player to {spawn.bleu} if {equipe.%player%} is "rouge": teleport player to {spawn.rouge} add 1 to {mort.shoot.%player%} wait 2 ticks if {mort.shoot.%player%} >= 5: strike lightning effect at the player play raw sound "mob.wither.spawn" at player with pitch 100 volume 100 remove 1 from {shoot.join} wait 5 ticks broadcast "&9ShootBattle: &4%player% &6est éliminer de la partie ! (%{shoot.join}% restants)" in "shootbattle" set player's gamemode to spectator set {_attacker.l} to attacker's location teleport player to {_attacker.l} send player title "" with subtitle "&e3" for 1 seconds wait 1 seconds send player title "" with subtitle "&e2" for 1 seconds wait 1 seconds send player title "" with subtitle "&e1" for 1 seconds wait 1 seconds set player's gamemode to survival teleport player to {lobbymort} message " " to player message "&9ShootBattle: &e&lVous avez était éliminer de la partie !" to player every 5 seconds: if {jeu.on} is false: if {shoot.join} = 1: loop all players: if loop-player is in "shootbattle": wait 2 seconds broadcast "&9ShootBattle: &c%loop-player% &6à gagner la partie !" set {shoot.join} to 0 wait 2 seconds teleport loop-player to {lobbymort} message "&9ShootBattle: Félicitation! Vous avez gagné la partie !" to loop-player on quit: if player is in "shootbattle": if {jeu.on} is false: remove 1 from {shoot.join} broadcast "&9ShootBattle: &4%player% &6à quitter le jeu &6! &e[&6%{shoot.join}% restant(s)&e]" in world "shootbattle" wait 1.5 ticks else: message "&cError 402: Attend que la partie soit lancée avant d'être téléporter au hub !" stop on death of player: wait 1 tick force respawn victim Erreurs : [12:43:49 INFO]: [skript] Reloading the config and all scripts... [12:43:49 INFO]: Loaded a total of 11504 english aliases [12:43:49 WARN]: There are no aliases defined for the following ids: 165, 166, 167, 168, 169, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 409, 410, 411, 412, 413, 414, 415, 416, 423, 424, 425, 427, 428, 429, 430, 431 [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '2259' with e.g. 'chirp music disc'. (ModStaff.sk, line 120: on rightclick with 2259:') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '2259' with e.g. 'chirp music disc'. (ModStaff.sk, line 122: if player is holding 2259 named "&aRandomTP":') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '143' with e.g. 'wooden button'. (ShotBattle(1).sk, line 57: if event-block is not redstone or 93 or 143 or 29 or 165 or tnt:') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '93' with e.g. 'redstone repeater block off'. (ShotBattle(1).sk, line 57: if event-block is not redstone or 93 or 143 or 29 or 165 or tnt:') [12:43:49 ERROR]: 'world "shootbattle"' is not a world (ShotBattle(1).sk, line 90: broadcast "&9ShootBattle: %player% &7à rejoint la partie ! &3(%{shoot.join}%/4)" in world "shootbattle"') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '35:11' with e.g. 'blue wool'. (ShotBattle(1).sk, line 95: set slot 3 of player to 35:11 named "&9EQUIPE BLEUE"') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '35:14' with e.g. 'red wool'. (ShotBattle(1).sk, line 96: set slot 5 of player to 35:14 named "&cEQUIPE ROUGE"') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '35:11' with e.g. 'blue wool'. (ShotBattle(1).sk, line 104: remove 35:11 named "&9EQUIPE BLEUE" from player's inventory') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '35:14' with e.g. 'red wool'. (ShotBattle(1).sk, line 105: remove 35:14 named "&cEQUIPE ROUGE" from player's inventory') [12:43:49 ERROR]: 'player tab name' is not an entity type (ShotBattle(1).sk, line 107: set player tab name to "&f%player% &7[&3â��&7]"') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '35:11' with e.g. 'blue wool'. (ShotBattle(1).sk, line 112: remove 35:11 named "&9EQUIPE BLEUE" from player's inventory') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '35:14' with e.g. 'red wool'. (ShotBattle(1).sk, line 113: remove 35:14 named "&cEQUIPE ROUGE" from player's inventory') [12:43:49 ERROR]: 'player tab name' is not an entity type (ShotBattle(1).sk, line 115: set player tab name to "&f%player% &7[&câ��&7]"') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '93' with e.g. 'redstone repeater block off'. (ShotBattle(1).sk, line 133: give 64 93 to player') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '143' with e.g. 'wooden button'. (ShotBattle(1).sk, line 134: give 64 143 to player') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '29' with e.g. 'sticky piston base'. (ShotBattle(1).sk, line 135: give 64 29 to player') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '165' with e.g. 'slime block'. (ShotBattle(1).sk, line 136: give 64 165 to player') [12:43:49 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '259' with e.g. 'flint and steel'. (ShotBattle(1).sk, line 142: give 3 259 to player') [12:43:49 ERROR]: 'player tab name' is not an entity type (ShotBattle(1).sk, line 220: set player tab name to "&f%player% &7[&3â��&7]"') [12:43:49 ERROR]: 'player tab name' is not an entity type (ShotBattle(1).sk, line 224: set player tab name to "&f%player% &7[&câ��&7]"') [12:43:49 ERROR]: 'spectator' is not an entity type (ShotBattle(1).sk, line 243: set player's gamemode to spectator') [12:43:49 ERROR]: Cannot use 'attacker' outside of a damage/death/destroy event (ShotBattle(1).sk, line 244: set {_attacker.l} to attacker's location') [12:43:49 ERROR]: 'player title "" with subtitle "&e3" for 1 seconds' is not a text (ShotBattle(1).sk, line 246: send player title "" with subtitle "&e3" for 1 seconds') [12:43:49 ERROR]: 'player title "" with subtitle "&e2" for 1 seconds' is not a text (ShotBattle(1).sk, line 248: send player title "" with subtitle "&e2" for 1 seconds') [12:43:49 ERROR]: 'player title "" with subtitle "&e1" for 1 seconds' is not a text (ShotBattle(1).sk, line 250: send player title "" with subtitle "&e1" for 1 seconds') [12:43:49 ERROR]: 'world "shootbattle"' is not a world (ShotBattle(1).sk, line 273: broadcast "&9ShootBattle: &4%player% &6à quitter le jeu &6! &e[&6%{shoot.join}% restant(s)&e]" in world "shootbattle"') [12:43:50 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '410' with e.g. 'prismarine crystals'. (cuirblock.sk, line 9: drop 1 of 410')
MrForoche Posté(e) le 13 février 2017 Posté(e) le 13 février 2017 Chez moi tout marche , comme j'ai dis, sa vien surment des addons
debsndprgs5 Posté(e) le 13 février 2017 Auteur Posté(e) le 13 février 2017 Oui , mais quels addons justement ?!..
Messages recommandés