Skript/Skquery 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.

SoMuchWessel

Active Member
Apr 3, 2017
147
3
18
46
Hey guys, i wrote a skript for a gui menu with flansmod (it explains the id's):


command /choosegunsp:
trigger:
set {executor.player} to player
wait 1 tick
open chest with 1 row named "&c&l-Primary-" to player
format slot 0 of player with red stained glass named "&b" to be unstealable
format slot 1 of player with orange stained glass named "&b" to be unstealable
format slot 2 of player with 4308 named "&c&lM16A4" with lore "&cClick to choose the M16A4!" to close then run "choosepm16"


command choosepm16:
trigger:
execute console command "minecraft:give %{executor.player}% 4308 1 0 {attachments:{barrel:{Count:1,Damage:0,id:4266},grip:{Count:1,Damage:0,id:4264},scope:{Count:1,Damage:0,id:4265}}}"
execute console command "minecraft:give %{executor.player}% 4166 12 0"
execute console command "choosegunss"


command /choosegunss:
executable by: players and console
trigger:
set {executor.player} to player
wait 1 tick
open chest with 1 row named "&c&l-Secondary-" to player
format slot 0 of player with 4336 named "&c&lW1200" with lore "&cClick to choose the W1200" to close then run "choosesw1200"



command choosesw1200:
trigger:
execute console command "minecraft:give %{executor.player}% 4336 1 0 {attachments:{scope:{Count:1,Damage:0,id:4262},grip:{Count:1,Damage:0,id:4264}}}"
execute console command "minecraft:give %{executor.player}% 4197 8 0"


The first gui menu works, after i choose the m16a4 option, it executes the 2 console commands, but doesnt open the next gui (/choosegunss)
How can i fix that?
 
Please use the 'Code' function
chrome_2017-05-13_14-44-06.png


Try TuSKe's Inventory format function, SkQuery is buggy:
http://skunity.com/search?search=Make+GUI
 
Please use the 'Code' function
chrome_2017-05-13_14-44-06.png


Try TuSKe's Inventory format function, SkQuery is buggy:
http://skunity.com/search?search=Make+GUI

Thanks, i will give it a try!
[doublepost=1494680857,1494680331][/doublepost]
Please use the 'Code' function
chrome_2017-05-13_14-44-06.png


Try TuSKe's Inventory format function, SkQuery is buggy:
http://skunity.com/search?search=Make+GUI


I tried TuSKe but I came to an error right away using this code:


code_language.skript:
command /p:
    trigger:
        set  {executor.player} to player
        wait 1 tick
        open virtual chest inventory with size 6 named "&c&l-Primary-" to player
        create a gui slot 1 of player with red stained glass named "&b" to do nothing


This is the error i got:
https://gyazo.com/65ff52e815bde824af7d4a8bdca6ff83
 
javaw_2017-05-13_15-15-14.png

That works fine for me.
Spigot 1.11.2, Skript 2.2-dev25, TuSKe 1.7.4

Do you use TuSKe 1.7.4? If not, try updating
Do you use Bensku's Skript Fork (<2.2-dev25)? Try downgrading to 2.2-dev25
 
javaw_2017-05-13_15-15-14.png

That works fine for me.
Spigot 1.11.2, Skript 2.2-dev25, TuSKe 1.7.4

Do you use TuSKe 1.7.4? If not, try updating
Do you use Bensku's Skript Fork (<2.2-dev25)? Try downgrading to 2.2-dev25

well i use MC version 1.7.10, maybe that is a problem?
 
The Skript version for 1.7.10 not is 2.0.2? is a old version.
Try download Skript 2.2 in 1.8 and use ProtocolSupport for use the version 1.7.10
 
Status
Not open for further replies.