Discord Thread 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 community!

    Now, what are you waiting for? Join the community now!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.
<@415356187161395201
is this gonne work
code_language.skript:
vb
command /ranks:
  trigger: 
    set metadata tag "ranks" of player to a new chest inventory with 3 rows named "&8Ranks"
    set {_n} to 0
    loop 10 times:
      set slot {_n} of metadata tag "ranks" of player to gray stained glass pane named ""
      add 1 to {_n}
    set {_n} to 17
    loop 10 times:
      set slot {_n} of metadata tag "ranks" of player to gray stained glass pane named ""
      add 1 to {_n}
    set {_vip_helmet} to leather helmet with all flags hidden
    set slot 11 of metadata tag "ranks" of player to {_vip_helmet} named "<##FFF300>&lVIP RANK"
    set {_booster_helmet} to iron helmet with all flags hidden
    set slot 12 of metadata tag "ranks" of player to {_booster_helmet} named "<##B900FF>&lBOOSTER RANK"
    set {_god_helmet} to gold helmet with all flags hidden
    set slot 13 of metadata tag "ranks" of player to {_god_helmet} named "<##FF9200>&lGOD RANK"
    set {_chub_helmet} to diamond helmet with all flags hidden
    set slot 14 of metadata tag "ranks" of player to {_chub_helmet} named "<##FF0000>&lCHUB RANK"
    set {_media_helmet} to netherite helmet with all flags hidden
    set slot 15 of metadata tag "ranks" of player to {_media_helmet} named "<##FF00E8>&lMEDIA RANK" with all flags hidden
    set slot 10 of metadata tag "ranks" of player to chest named "<##06ff00>&lKEYS" with lore "&fClick to go to the <##06ff00>&lKEYS"
    set slot 16 of metadata tag "ranks" of player to paper named "<##008DFF>&lWEBSTORE" with lore "&fClick to go to the <##008DFF>&lWEBSTORE"
    open (metadata tag "ranks" of player) to player


on inventory click:
    event-inventory is metadata tag "ranks" of player
    cancel event
    set {_e} to index of clicked slot
    if {_e} is 10:
        make player execute command "/keys"
    if {_e} is 16:
        close player's inventory
        send formatted "<##008DFF>&l⬇ WEBSTORE ⬇%nl%&l"

Posted by: drchubs from the skUnity Discord.
 
why two loops?
just set all the slots
it doesnt matter if you set them to other items later
its like paper, you can just put something else "over top" of it
just
set slot (integers between 0 and 26) to gray stained glass pane named " "
, and then set your items after..

Posted by: x8ight from the skUnity Discord.
 
Status
Not open for further replies.