Gui help

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

Raz3rniels

Member
Jan 27, 2018
3
0
0
26
Hey guys, im quiet new to skript and i have a bug which me and a friend of mine neither can't solve.
If i open the gui and want to click on one of the slots to execute another command it wont execute.
code_language.skript:
command /server:
    permission: Raz3rniels.server
    trigger:
        open chest with 5 rows named "&8[&3DragonKingdom&8]&f-&8[&3Server info&8]" to player
        wait 1 tick
        format slot 10 of player with armor stand named "&8[&3Staff Leden&8]" with lore "&bKlik hier voor de staff lijst!" to close then run "stafflijst"
        format slot 14 of player with brick named "&8[&3Server Informatie&8]" with lore "&bKlik hier voor wat informatie over de server!" to close then run "serverinformatie"
        format slot 16 of player with blaze rod named "&8[&3Ranks&8]" with lore "&bKlik hier voor de ranks van de server!" to close then run "ranks"
on inventory click:
    if inventory name of player's current inventory is "&8[&3DragonKingdom&8]&f-&8[&3Server info&8]":
        if clicked slot is 10:
            close inventory of player
            execute player command "/stafflijst"
        if clicked slot is 14:
            close inventory of player
            execute player command "/serverinformatie"
        if clicked slot is 16:
            close inventory of player
            execute player command "/ranks"
 
Try using Tuske for your GUI instead, its much better, less buggy and easier to use.^-^
Tutorial here. I prefer the advanced gui, myself
 
Try using Tuske for your GUI instead, its much better, less buggy and easier to use.^-^
Tutorial here. I prefer the advanced gui, myself
Thanks that works a lot better, but i got one more question if i try to send a message by clicking on one of the slots it wont close automaticly,
heres a some lines of my skript
code_language.skript:
create /vote:
    trigger:
        create a gui with virtual chest with 1 rows named "vote":
            make gui 0 with golden nugget named "vote":
                send "here's you vote link [link]"
 
code_language.skript:
create /vote:
    trigger:
        create a gui with virtual chest with 1 rows named "vote":
            make gui 0 with golden nugget named "vote":
                send "here's you vote link [link]"
                close gui-player's inventory
you can have as many things as you want happen when its clicked
 
code_language.skript:
create /vote:
    trigger:
        create a gui with virtual chest with 1 rows named "vote":
            make gui 0 with golden nugget named "vote":
                send "here's you vote link [link]"
                close gui-player's inventory
you can have as many things as you want happen when its clicked
thanks that helped a lot :emoji_grinning:
 
Status
Not open for further replies.