SnoZ_ Posté(e) le 18 avril 2016 Posté(e) le 18 avril 2016 Bonjour, je débute en skript et j'ai un problème, "Invalide line - all code has to be put into triggers" Voici le Skript : command /camp description: This is an example command permission: skript.camp usage: /camp trigger: make console execute command "/give %player% 268 1 0 {ench:[{id:19,lvl:10}]}" make console execute command "/vanish %player%" set slot 2 of player to stick named "&6Verif" set slot 3 of player book named "&eInfos" on right click on a player: if player's tool is a stick: make console execute command "/verif %targeted entity%" on right click on a player: if player's tool is a book: if name of player's tool is "&6Livre d'informations": send "&3Nom: &b%targeted entity%" send "&3UUID: &b%targeted entity's uuid%" send "&3Adresse IP: &b%targeted entity's ip%" send "&3Ping: &b%targeted entity's ping%" send "&3Vie: &b%targeted entity's health%/10" send "&3Gamemode: &b%targeted entity's gamemode%" if targeted entity is op: send "&3OP: &2true" else if targeted entity is not op: send "&3OP: &cfalse" Merci pour votre aide :) Cordialement, SnoZ_
0 Nashoba Posté(e) le 18 avril 2016 Posté(e) le 18 avril 2016 Tu n'a pas mis ":" après "command /camp". De plus, tu n'a pas mis ton code entre [.code][./code] (sans les points), je ne peux pas voir les tabulations. Du coup j'ai refait les tabulations: command /camp: description: This is an example command permission: skript.camp usage: /camp trigger: make console execute command "/give %player% 268 1 0 {ench:[{id:19,lvl:10}]}" make console execute command "/vanish %player%" set slot 2 of player to stick named "&6Verif" set slot 3 of player book named "&eInfos" on right click on a player: if player's tool is a stick: make console execute command "/verif %targeted entity%" on right click on a player: if player's tool is a book: if name of player's tool is "&6Livre d'informations": send "&3Nom: &b%targeted entity%" send "&3UUID: &b%targeted entity's uuid%" send "&3Adresse IP: &b%targeted entity's ip%" send "&3Ping: &b%targeted entity's ping%" send "&3Vie: &b%targeted entity's health%/10" send "&3Gamemode: &b%targeted entity's gamemode%" if targeted entity is op: send "&3OP: &2true" else if targeted entity is not op: send "&3OP: &cfalse" 1
Question
SnoZ_
Bonjour, je débute en skript et j'ai un problème, "Invalide line - all code has to be put into triggers"
Voici le Skript :
command /camp
description: This is an example command
permission: skript.camp
usage: /camp
trigger:
make console execute command "/give %player% 268 1 0 {ench:[{id:19,lvl:10}]}"
make console execute command "/vanish %player%"
set slot 2 of player to stick named "&6Verif"
set slot 3 of player book named "&eInfos"
on right click on a player:
if player's tool is a stick:
make console execute command "/verif %targeted entity%"
on right click on a player:
if player's tool is a book:
if name of player's tool is "&6Livre d'informations":
send "&3Nom: &b%targeted entity%"
send "&3UUID: &b%targeted entity's uuid%"
send "&3Adresse IP: &b%targeted entity's ip%"
send "&3Ping: &b%targeted entity's ping%"
send "&3Vie: &b%targeted entity's health%/10"
send "&3Gamemode: &b%targeted entity's gamemode%"
if targeted entity is op:
send "&3OP: &2true"
else if targeted entity is not op:
send "&3OP: &cfalse"
Merci pour votre aide :) Cordialement, SnoZ_
2 réponses à cette question
Messages recommandés