Bonjour je travaille sur un serveur en 1.8.9 et en ce moment sur un systeme d'amis , je me suis aider d'un skript avec "/friends add"
Citation
command /friendsgui:
trigger:
open chest with 6 rows named "&dAmis" to player
wait 3 ticks
format slot 0 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 1 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 2 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 3 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 4 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 5 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 6 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 7 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 8 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 0 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 46 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 47 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 48 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 49 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 50 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 51 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 52 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 53 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 59 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 45 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 69 of player with Poppy named "&cAmis" with lore "&cMenu d'amis" to be unstealable
format slot 21 of player with Enchantment Table named "&cAjouter des Amis" with lore "&6Ajouter des Amis" to close then run [make player execute command "/friendsaddgui"]
format slot 23 of player with Ender Portal Frame named "&cRetirer des amis" with lore "&6Retirer des Amis" to close then run [make player execute command "/friendsremovegui"]
format slot 22 of player with Anvil named "&cListe des Amis" with lore "&6Liste des Amis" to close then run [make player execute command "/friendslistgui"]
format slot 31 of player with Redstone Comparator named "&cReglage des Amis" with lore "&6Reglage des Amis" to close then run [make player execute command "/freindsreggui"]
command /friendsaddgui:
trigger:
wait 3 ticks
open chest with 6 rows named "&dListe des joueurs" to player
wait 3 ticks
set {_slot} to 0
loop all players:
wait 1 ticks
format slot {_slot} of player with loop-player's skull named "%loop-player%" with lore "&6Vous voulez l'ajouter en amis ?" to close then run [make player execute command "/friend add %loop-value%"]
add 1 to {_slot}
command /friendsremovegui:
trigger:
wait 3 ticks
open chest with 6 rows named "&dListe de vos Amis" to player
loop {amis.%player%::*}:
if {online.%loop-value%} is true:
add 1 to {_varl}
format slot {_varl} of player with loop-value's skull named "%loop-value%" with lore "&aEN LIGNE" to close then run [make player execute command "/friend remove %loop-value%"]
else:
add 1 to {_varl}
format slot {_varl} of player with loop-value's skull named "%loop-value%" with lore "&cHORS-LIGNE" to close then run [make player execute command "/friend remove %loop-value%"]
command /friendslistgui:
trigger:
wait 3 ticks
open chest with 6 rows named "&dListe de vos Amis" to player
loop {amis.%player%::*}:
if {online.%loop-value%} is true:
add 1 to {_varl}
format slot {_varl} of player with loop-value's skull named "%loop-value%" with lore "&aEN LIGNE" to close then run [make player execute command "/friend menu %loop-value%"]
else:
add 1 to {_varl}
format slot {_varl} of player with loop-value's skull named "%loop-value%" with lore "&cHORS-LIGNE" to close then run [make player execute command "/friend menu %loop-value%"]
command /friendsreggui:
trigger:
wait 3 ticks
open chest with 4 rows named "&dReglage" to player
wait 2 ticks
format slot 11 of player with Cobweb named "&cDemande d'amis" with lore "&6Changer si vous voulez recevoir des demandes d'amis ou non" to be unstealable
if {amis.demande.reg} is true:
format slot 20 of player with Lime Dye named "&aVous pouvez recevoir des demandes d'amis" with lore "&cCliquez si ne voulez plus en recevoir" to close then run [make player execute command "/friendsdemandeon"]
else:
format slot 20 of player with Gray Dye named "&cVous ne pouvez pas recevoir de demande d'amis" with lore "&aCliquez si vous voulez en recevoir a nouveau" to close then run [make player execute command "/friendsdemandeoff"]
command /friendsdemandeon:
trigger:
set {amis.demande.reg} to false
send "&c Vous ne pouvez plus recevoir de demande d'amis"
command /friendsdemandeoff:
trigger:
set {amis.demande.reg} to true
send "&aVous pouvez recevoir des demande d'amis"
on first join:
set {amis.demande.reg} to true
Citation
Il me dit qu'a la ligne 26 il y a une erreur : "friend add %loop-value%" is not a text . et pareil a la ligne 72 alors qu'il a une ligne presque identique en dessous : "/friendsdemandeon" is not a text
S'il vous plait aider moi j'ai mis 3h a faire ce skript (oui meme s'il est facile)
Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.
Question
parad
Bonjour je travaille sur un serveur en 1.8.9 et en ce moment sur un systeme d'amis , je me suis aider d'un skript avec "/friends add"
Il me dit qu'a la ligne 26 il y a une erreur : "friend add %loop-value%" is not a text . et pareil a la ligne 72 alors qu'il a une ligne presque identique en dessous : "/friendsdemandeon" is not a text
S'il vous plait aider moi j'ai mis 3h a faire ce skript (oui meme s'il est facile)
16 réponses à cette question
Messages recommandés