Aller au contenu
  • 0

Panneau join V2


Question

Posté(e)

Bonjour Bonsoir

J'ai un probleme mais enfaite on y a deja repondu et voila que je fait le meme systeme sa marche pas ! pourtant le premier marche parfaitement

VOICI LE PROBLEME :

        if arg 1 is "panneau":
           if arg 2 is set:
               if targeted block is a sign:
                   if {bb.slots.%arg 2%} isn't set:
                       set {bb.slots.%arg 2%} to 0
                   set line 1 of targeted block to "{@logo}"
                   set line 2 of targeted block to "%arg-2%"
                   set line 3 of targeted block to "%{bb.slots.%arg-2%}%/12"
                   if {bb.slots.%arg 2%} is less than 12:
                       set line 4 of targeted block to "&6&oEn Attente ..."
                   set {panneau.%arg 2%} to targeted block

on rightclick on sign:
   if line 1 is "{@logo}":
       if line 2 is set:
           Run player command "/bb join %line 2 of clicked block%" as op
           set line 3 of clicked block to "%{bb.slots.%line 2%}%/12"

Voici le 1er systeme du meme type mais ... qui marche:

on rightclick on sign:
   if line 1 is "{@logo}":
       if line 2 is set:
           Run player command "/sc join %line 2 of clicked block%" as op
           set line 3 of clicked block to "%{sc.slots.%line 2%}%/4"

       if arg 1 is "panneau":
           if arg 2 is set:
               if targeted block is a sign:
                   if {sc.slots.%arg 2%} isn't set:
                       set {sc.slots.%arg 2%} to 0
                   set line 1 of targeted block to "{@logo}"
                   set line 2 of targeted block to "%arg-2%"
                   set line 3 of targeted block to "%{sc.slots.%arg-2%}%/4"
                   set {panneau.%arg 2%} to targeted block

Je tient a dire que les {@logo} marche car les deux skript sont pas dans le meme fichier donc ....

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)

J'ai déjà eu ce problème. Je connais deux solutions:

Soit ton panneau est trop près du point de spawn central (qui est protégé par toutes sortes d'interactions)

Soit ton panneau est dans une région WorldGuard ou le flag interact (ou peut-être use) est refusé. Si c'est le cas essayes "/region flag <name> interact(ou use) allow"

  • 0
Posté(e)

Soit tu fais comme moi et tu bidouille tout et que tu rajoutes sa ! ps: j'ai juste rajouter make player execute command "/mvtp %player% %player%"

on rightclick on sign:

if line 1 is "Creatif":

if line 2 is set:

Run player command "/mvtp %player% %player%"

set line 3 of clicked block to "&eViens dans ton monde !!"

set line 1 of clicked block to "&6Creatif"

make player execute command "/mvtp %player% %player%"

 

 

if arg 1 is "panneau":

if arg 2 is set:

if targeted block is a sign:

if {sc.slots.%arg 2%} isn't set:

set {sc.slots.%arg 2%} to 0

set line 1 of targeted block to "&6Creatif"

set line 2 of targeted block to "&eViens dans ton monde !!"

set line 3 of targeted block to "&6Creatif"

set {panneau.%arg 2%} to targeted block

 

 

Merci de me dire si c'est sa !

×
×
  • Créer...

Information importante

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.