Solved What version of SkQuery use 1.8.8

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

Caf3

Member
Sep 30, 2019
15
0
0
19
im trying to make a gui plugin and i know that i need SkQuery..
What version of SkQuery do i need to use?
Or im just idiot and my code doesnt work well..
This is my code:
Code:
            open chest with 3 rows named "&4» &cHelper Punish" to player
            set slot 0 of player's current inventory to black stained glass pane named "&7" to be unstealable

 
You're code is wrong.
You can't use "to be unstealable" with skquery's sintax.
You maybe wanted to use "format slot" instead of "set slot"
i think you're versione is right.
 
this isnt working...
i tried this:
Code:
            open chest with 3 rows named "&4» &cHelper Punish" to player
            format slot 0 of player's current inventory to black stained glass pane named "&7" to close
and this:
Code:
            open chest with 3 rows named "&4» &cHelper Punish" to player
            format slot 0 of player's current inventory to black stained glass pane named "&7" to be unstealable
but it isnt working... idk what to do

edit: I saw you wrote I cant use to be unstealable with skquery
so with what can I?
 
oh nono, the format slot has another sintax.

for the set slot you can use this :
set slot SLOT of player's current inventory to ITEM named "NAME" with lore "LORE".

# the 'cancel event' for the set slot
on inventory click:
if inventory name of player's current inventory is "NAME OF INVENTORY":
cancel event
stop

the format slot:
format slot SLOT of player with item named "NAME" with lore "LORE" to be unstealable
 
i dont understand,
i want to create GUI with item and the item will be unstealable,
i used the code:
Code:
command /hpunish [<offline player>]:
    aliases: /hp
    permission: cstaff.helper.punish
    permission message: &4&lCafeStaff &8» &cYou dont have permission!
    trigger:
        if arg 1 is not set:
            send "/hpunish <player>"
        if arg 1 is set:
            wait 1 tick
            open chest with 3 rows named "&4» &cHelper Punish" to player
            format slot 0 of player with item named "&7" with lore "&7" to be unstealable

this is all my code, and the last line doesnt work because there is no "to be unstealable"..

edit: i forgot to set the item name, now it work
thanks!!!!!!!

another edit: how can i do a command item?
 
Status
Not open for further replies.