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.

Format a player inventory?

Discussion in 'Skript' started by BryHunter, Mar 27, 2018.

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

    BryHunter Member

    Joined:
    Jan 10, 2018
    Messages:
    33
    Likes Received:
    1
    This is not a GUI help, I was wondering if there was a way to do,
    Code (Skript):
    1. on join:
    2.   format slot 5 of players inventory with compass named "server selector"
    3.  
    4.   on right-click of compass:
    5.      ect.
    6.  
    So basically when the player joins their inventory has a compass in it which has a name, also avoid them from moving it to another slot
     
  2. AsuDev

    VIP

    Joined:
    Jan 27, 2017
    Messages:
    243
    Likes Received:
    21
    Code (Skript):
    1.  
    2. on join:
    3.     set slot 5 of player's inventory to 1 of compass named "server selector"
    4.  
    5. on right click holding compass:
    6.     if name of player's held item is "server selector":
    7.         #do stuff
    8.  
    9. on inventory click:
    10.     name of clicked item is "server selector"
    11.     cancel event
    12.  
     
    #2 AsuDev, Mar 27, 2018
    Last edited: Mar 27, 2018
    • Like Like x 1
  3. BryHunter

    BryHunter Member

    Joined:
    Jan 10, 2018
    Messages:
    33
    Likes Received:
    1
    Thank you so much!
     
  4. Syst3ms

    Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    191
    Likes Received:
    22
    Please do not use skQuery for your menus (e.g format slot). Please do take a look at TuSKe's GUI Manager.
    If you want me to list why format slot is utter trash compared to it, then just ask me to.
     
  5. DieHollander_

    DieHollander_ Active Member

    Joined:
    Mar 25, 2018
    Messages:
    188
    Likes Received:
    12
    in case this thread is solved.
    Can you please mark it as solved
     
Thread Status:
Not open for further replies.

Share This Page

Loading...