Help with envoys

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

SkyDev

Member
Mar 25, 2017
18
0
0
27
Hello, so I am trying to make an envoy skript but something is wrong.
Code:
        if arg-1 is set:
            if arg-1 is "add":
                add "%player's location%" to {envoys::*}
                send "&6&lEnvoy &8» &f'%player's location%'"
            if arg-1 is "gui":
                set {_num} to -1
                open chest with 1 row named "&8Crate-uri envoy" to player
                loop {envoys::*}:
                    add 1 to {_num}
                    if loop-value is set:
                        format slot {_num} of player with player head named "&6&lCrate ##%{_num}%" with lore "&e%loop-value%" to close then run [send "%loop-value%"]


Everything works in the gui, but when I click on a crate it shows the coords of the last crate set. I don't know if I explained this right, so I'll upload a video to youtube to explain it.
 
Status
Not open for further replies.