1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved What version of SkQuery use 1.8.8

Discussion in 'Skript' started by Caf3, Sep 30, 2019.

Thread Status:
Not open for further replies.
  1. Caf3

    Caf3 Member

    Joined:
    Sep 30, 2019
    Messages:
    15
    Likes Received:
    0
    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 (Text):
    1.             open chest with 3 rows named "&4» &cHelper Punish" to player
    2.             set slot 0 of player's current inventory to black stained glass pane named "&7" to be unstealable
     
  2. BowYard

    BowYard Member

    Joined:
    Nov 2, 2017
    Messages:
    45
    Likes Received:
    0
    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.
     
  3. Caf3

    Caf3 Member

    Joined:
    Sep 30, 2019
    Messages:
    15
    Likes Received:
    0
    this isnt working...
    i tried this:
    Code (Text):
    1.             open chest with 3 rows named "&4» &cHelper Punish" to player
    2.             format slot 0 of player's current inventory to black stained glass pane named "&7" to close
    and this:
    Code (Text):
    1.             open chest with 3 rows named "&4» &cHelper Punish" to player
    2.             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?
     
  4. BowYard

    BowYard Member

    Joined:
    Nov 2, 2017
    Messages:
    45
    Likes Received:
    0
    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
     
  5. Caf3

    Caf3 Member

    Joined:
    Sep 30, 2019
    Messages:
    15
    Likes Received:
    0
    i dont understand,
    i want to create GUI with item and the item will be unstealable,
    i used the code:
    Code (Text):
    1. command /hpunish [<offline player>]:
    2.     aliases: /hp
    3.     permission: cstaff.helper.punish
    4.     permission message: &4&lCafeStaff &8» &cYou dont have permission!
    5.     trigger:
    6.         if arg 1 is not set:
    7.             send "/hpunish <player>"
    8.         if arg 1 is set:
    9.             wait 1 tick
    10.             open chest with 3 rows named "&4» &cHelper Punish" to player
    11.             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?
     
  6. BowYard

    BowYard Member

    Joined:
    Nov 2, 2017
    Messages:
    45
    Likes Received:
    0
    you have to replace "item" with your item .-.
     
  7. Vorze

    Vorze Active Member

    Joined:
    Jul 10, 2017
    Messages:
    69
    Likes Received:
    2
Thread Status:
Not open for further replies.

Share This Page

Loading...