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.
command ranks:
trigger:
set {_ranksbuy} to a new chest inventory with 3 rows named "&8Ranks"
set slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 of {_ranksbuy} to gray stained glass pane named " "
set {viphelmet} to leather helmet with all flags hidden
set slot 11 of {ranksbuy} to {vip_helmet} named "<##FFF300>&lVIP RANK"
set {boosterhelmet} to iron helmet with all flags hidden
set slot 12 of {ranksbuy} to {booster_helmet} named "<##B900FF>&lBOOSTER RANK"
set {godhelmet} to gold helmet with all flags hidden
set slot 13 of {ranksbuy} to {god_helmet} named "<##FF9200>&lGOD RANK"
set {chubhelmet} to diamond helmet with all flags hidden
set slot 14 of {ranksbuy} to {chub_helmet} named "<##FF0000>&lCHUB RANK"
set {mediahelmet} to netherite helmet with all flags hidden
set slot 15 of {ranksbuy} to {media_helmet} named "<##FF00E8>&lMEDIA RANK" with all flags hidden
set slot 10 of {_ranksbuy} to chest named "<##06ff00>&lKEYS" with lore "&fClick to go to the <##06ff00>&lKEYS"
set slot 16 of {_ranksbuy} to paper named "<##008DFF>&lWEBSTORE" with lore "&fClick to go to the <##008DFF>&lWEBSTORE"
open {_ranksbuy} to player

on inventory click:
if name of event-inventory is "&8Ranks":
cancel event
if index of event-slot = 0 or index of event-slot = 1 or index of event-slot = 2 or index of event-slot = 3 or index of event-slot = 4 or index of event-slot = 5 or index of event-slot = 6 or index of event-slot = 7 or index of event-slot = 8 or index of event-slot = 9 or index of event-slot = 11 or index of event-slot = 12 or index of event-slot = 13 or index of event-slot = 14 or index of event-slot = 15 or index of event-slot = 17 or index of event-slot = 18 or index of event-slot = 19 or index of event-slot = 20 or index of event-slot = 21 or index of event-slot = 22 or index of event-slot = 23 or index of event-slot = 24 or index of event-slot = 25 or index of event-slot = 26:
if index of event-slot = 10:
make player execute command "/keys"
else if index of event-slot = 16:
close player's inventory
send formatted "<##008DFF>&l⬇ WEBSTORE ⬇%nl%&l"

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