SkQuery GUI Not Wanting to cooperate...

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

Julius Ohly

Member
Mar 20, 2021
19
0
1
23
so i was making a GUI for my server wich lead to some errors...
so i was trying to make someone rightclick on an npc (wich worked) to execute an command, thts the command i need help for!

so here's the skript:


command /Fisherman:
trigger:
open chest with 5 rows named "&bFisherman's Shop" to player
wait 1 tick

format slot 0 of player with Gray stained glass pane named " " to close
format slot 1 of player with Gray stained glass pane named " " to close
format slot 2 of player with Gray stained glass pane named " " to close
format slot 3 of player with Gray stained glass pane named " " to close
format slot 4 of player with Gray stained glass pane named " " to close
format slot 5 of player with Gray stained glass pane named " " to close
format slot 6 of player with Gray stained glass pane named " " to close
format slot 7 of player with Gray stained glass pane named " " to close
format slot 8 of player with Gray stained glass pane named " " to close
format slot 9 of player with Gray stained glass pane named " " to close
format slot 10 of player with Gray stained glass pane named " " to close
format slot 11 of player with glowing Iron Chestplate named "Armors" to close then run [execute player command "/fishermanarmors"]
format slot 12 of player with Gray stained glass pane named " " to close
format slot 13 of player with Gray stained glass pane named " " to close
format slot 14 with Gray of player stained glass pane named " " to close
format slot 15 of player with glowing Iron Sword named "Weapons" to close then run [execute player command "/fishermanweapons"]
format slot 16 of player with Gray stained glass pane named " " to close
format slot 17 of player with Gray stained glass pane named " " to close
format slot 18 of player with Gray stained glass pane named " " to close
format slot 19 of player with Gray stained glass pane named " " to close
format slot 20 of player with Gray stained glass pane named " " to close
format slot 21 of player with Gray stained glass pane named " " to close
format slot 22 of player with Gray stained glass pane named " " to close
format slot 23 of player with Gray stained glass pane named " " to close
format slot 24 of player with Gray stained glass pane named " " to close
format slot 25 of player with Gray stained glass pane named " " to close
format slot 26 of player with Gray stained glass pane named " " to close
format slot 27 of player with Gray stained glass pane named " " to close
format slot 28 of player with Gray stained glass pane named " " to close
format slot 29 of player with Gray stained glass pane named " " to close
format slot 30 of player with Gray stained glass pane named " " to close
format slot 31 of player with glowing Fishing rod named "Fishing rods" to close then run [execute player command "/fishermanfishingrods"]
format slot 32 of player with Gray stained glass pane named " " to close
format slot 33 of player with gray stained glass pane named " " to close
format slot 34 of player with Gray stained glass pane named " " to close
format slot 35 of player with Gray stained glass pane named " " to close
format slot 36 of player with Gray stained glass pane named " " to close
format slot 37 of player with Gray stained glass pane named " " to close
format slot 38 of player with Gray stained glass pane named " " to close
format slot 39 of player with Gray stained glass pane named " " to close
format slot 40 of player with Gray stained glass pane named " " to close
format slot 41 of player with Gray stained glass pane named " " to close
format slot 42 of player with Gray stained glass pane named " " to close
format slot 43 of player with Gray stained glass pane named " " to close
format slot 44 of player with Gray stained glass pane named " " to close
format slot 45 of player with Gray stained glass pane named " " to close


But it says "Invalid line: All code has to be put into triggers."
i have another skript formatted EXACLY like this one, that works.

Here the working skript i made is:


command /Die:
trigger:
open chest with 1 rows named "&bCONFIRMATION" to player
wait 1 tick

format slot 0 of player with gray stained glass pane named "Cancel" to close
format slot 1 of player with gray stained glass pane named "Cancel" to close
format slot 2 of player with gray stained glass pane named "Cancel" to close
format slot 3 of player with gray stained glass pane named "Cancel" to close
format slot 4 of player with Glowing Barrier named "&4CONFIRM" to close then run [execute player command "/suicide"]
format slot 5 of player with gray stained glass pane named "Cancel" to close
format slot 6 of player with gray stained glass pane named "Cancel" to close
format slot 7 of player with gray stained glass pane named "Cancel" to close
format slot 8 of player with gray stained glass pane named "Cancel" to close


And that one works perfecly, please help!
 
Works perfect for me EXCEPT slot 14. Read this over again.

Code:
format slot 14 with Gray of player stained glass pane named " " to close

compared to:

Code:
format slot 13 of player with Gray stained glass pane named " " to close


Make sure everything is tabbed correctly, I tabbed mine correctly and got 1 error, the slot 14 code.
 
Last edited:
Hmm @Daniel Greer , mine doesent say that its tabbed incorrectly.
mine says: "invalid line: all code has to be put into triggers", so its not the tabbing, thing is.
it opens a GUI but it doesent have formatting...
could you help?

Do you have any other skript addons that could interfeer? if yes could you try remove it and then try execute /fisherman?
 
Last edited:
Hmm @Daniel Greer , mine doesent say that its tabbed incorrectly.
mine says: "invalid line: all code has to be put into triggers", so its not the tabbing, thing is.
it opens a GUI but it doesent have formatting...
could you help?

Do you have any other skript addons that could interfeer? if yes could you try remove it and then try execute /fisherman?


I'm not going to remove them if it fixes your problem... Download these three addons. skRayFall, SkQuery, and TuSKe. Then try /fisherman, also fix the line from
Code:
format slot 14 with Gray of player stained glass pane named " " to close
to
Code:
format slot 14 of player with Gray stained glass pane named " " to close
 
Status
Not open for further replies.