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!

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

TuSKe GUI Manager Tutorial

Discussion in 'Tutorials' started by Tuke_Nuke, Feb 23, 2017.

  1. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,872
    Likes Received:
    126
    That's because %itemstack% with lore %string% it's an expression from SkQuery. The vanilla skript lore expression is used in Multi Action example, as said above.
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,872
    Likes Received:
    126
    I would like to loop through a player's gui that's currently open and broadcast the name of the item in each slot.

    I've tried:
    Code (Skript):
    1.  
    2. loop 54 times:
    3.     broadcast "%loop-value gui-slot of player%" # Doesn't work
    4.  
    I'm really confused on how to do this.
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,872
    Likes Received:
    126
    You can just use normal expressions to get a item in a slot, using bensku's fork dev25+ or SkQuery:
    Code (Skript):
    1. loop integers from 0 to 53:
    2.     broadcast "%slot loop-integer of current inventory of player%"
     
  4. s

    sklake Member

    Joined:
    Mar 30, 2018
    Messages:
    7
    Likes Received:
    0
    love Tuke_Nuke's addon so much. Good addon and Good tutorial!
     
  5. joshwenke

    joshwenke Member

    Joined:
    Jan 26, 2017
    Messages:
    6
    Likes Received:
    1
    This may be a stupid question, but how would one go about formatting a slot (using the advanced syntax) that can be edited by players? (aka the item can be stolen)
     
  6. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    289
    Likes Received:
    8
    try
    Code (Skript):
    1. set slot 1 of player's currently inventory to diamomd sword
     
  7. Blueyescat

    Blueyescat Member

    Joined:
    Jan 26, 2017
    Messages:
    16
    Likes Received:
    5
    Medals:
    Code (Skript):
    1. make gui slot 0 with stone:
    2.     uncancel event
    3.  
     
  8. Soufreur78

    Soufreur78 Member

    Joined:
    Feb 25, 2017
    Messages:
    2
    Likes Received:
    0
    Hi, I'm french :

    I upgrade my server to 1.9.
    I use Tuske 1.8.2 and Skript 2.3.7

    "to run:" doesn't work now.

    With this type of code :
    Code (Text):
    1. command /test:
    2.     trigger:
    3.         open virtual chest with size 1 named "SkUnity test" to player
    4.         format gui slot 2 of player with diamond named "Hi men" to run:
    5.             broadcast "Hello i'm here"
    The diamond in slot 2 doesn't appear since I upgrade my server to 1.9 :/ but there is not error when I reload the skript
     
  9. R

    Joined:
    Feb 13, 2019
    Messages:
    7
    Likes Received:
    0
    This is NOT a TuSKe guide, its SkQuery. SkQuery menus are bad!
    --- Double Post Merged, Jul 18, 2019 at 4:35 PM, Original Post Date: Jul 18, 2019 at 4:31 PM ---
    You are using SkQuery menus! It has no gui slot !
     
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,872
    Likes Received:
    126
    I'm not really sure what you are on about but you are wrong.

    SkQuery = "format slot"
    Tuske = "format gui slot"
    All the code above IS Tuske NOT skQuery
     
  11. R

    Joined:
    Feb 13, 2019
    Messages:
    7
    Likes Received:
    0
    It uses a SkQueryeffect to open the gui
    Code (Text):
    1. open (virtual %inventory type% inventory [with size %integer%] [(named|with (name|title)) %string%]) to %players%
     
  12. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,872
    Likes Received:
    126
    That's Tuske not SkQuery
     
Loading...