Aller au contenu
  • 0

URGENT!! Arena list in gui


Question

Posté(e)

I am trying toput a arena list in a gui with skript the code is the next:

command /arenasetlobby:
           permission: {@PermissionAdm}
           trigger:
                       set {_num} to -1
                       loop {arenas::*}:
                                   add 1 to {_num}
                                   wait 2 tick
                                   open chest with 6 rows named "&6               SET ARENA LOBBY" to player
                                   wait 4 tick
                                   format slot {_num} of player with 1 carpet named "&a%{arenas::*}%" with lore "" to close then run [make player execute "/setarenawaitlobby"]

When i open it, it make this:

THNKS

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Hi guys, (But i think you don't are english), I have work on your code :

command /arenasetlobby:
   permission: {@PermissionAdm}
   trigger:
       set {_num} to -1
       open chest with 6 rows named "&6          SET ARENA LOBBY" to player # Here a changement because you make open the gui X times
       loop 36 times: # I Have set "36 Times" because you have not defined the variable {arenas::*}
           add 1 to {_num}
           wait 2 tick
           wait 4 tick
           format slot {_num} of player with 1 carpet named "&a%{arenas::*}%" with lore "" to close then run [make player execute "/setarenawaitlobby"]

Sorry for my english but i'm french and it's a french forum, please, if you are english use a english forum like SkUnity etc.

  • 0
Posté(e)

Merci, je suis espagnol mais je parle un petit de français. I love this foro and i think the forums of skunity are very bad D:

Thnk you for the help. :D

  • J'aime 1
  • 0
Posté(e)
It does not work D: IT MAKES THIS:https://www.youtube.com/watch?v=_BzW1U91uQ4

THNK U FOR THE HELP

You mustn't close your GUI when you launch the GUI,

It is now working but i have a problem the name is not a name from the list is all the list

mhhh… Set your list to number (variable.exemple::1 etc.), And if variable.exemple::1 is 1 in list set name of tool to <name of 1 in list> OR identify everything in the variable list and use Expression (please see this with the Documentation of this Forum or the forum : SkUnity)

But, I don't know what you want as skript

  • 0
Posté(e)

It is now working :D i used this:

command /arenasetlobby:
   permission: {@PermissionAdm}
   trigger:
       set {_num} to -1
       wait 2 tick
       open chest with 6 rows named "&6SET ARENA LOBBY" to player
       loop {arenas::*}:
           add 1 to {_num}
           wait 3 tick
           wait 4 tick
           format slot {_num} of player with 1 carpet named "&a%loop-value%" with lore "" to close then run [make player execute "/setarenawaitlobby"]

×
×
  • 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.