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.
code_language.skript:
vb
command ranks [<string>]:
    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 {_vip_helmet} to leather helmet with all flags hidden
        set slot 11 of {_ranksbuy} to {_vip_helmet} named "<##FFF300>&lVIP RANK"
        set {_booster_helmet} to iron helmet with all flags hidden
        set slot 12 of {_ranksbuy} to {_booster_helmet} named "<##B900FF>&lBOOSTER RANK"
        set {_god_helmet} to gold helmet with all flags hidden
        set slot 13 of {_ranksbuy} to {_god_helmet} named "<##FF9200>&lGOD RANK"
        set {_chub_helmet} to diamond helmet with all flags hidden
        set slot 14 of {_ranksbuy} to {_chub_helmet} named "<##FF0000>&lCHUB RANK"
        set {_media_helmet} 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":
    if index of event-slot = 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 11 or 12 or 13 or 14 or 15 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26:
        cancel event
    if name of event-inventory is "&8Ranks":
    if index of event-slot = 10:
        make player execute command "/keys"
    if name of event-inventory is "&8Ranks":
    if index of event-slot = 16:
        close player's inventory
        send formatted "<##008DFF>&l⬇ WEBSTORE ⬇%nl%&l"

Posted by: drchubs from the skUnity Discord.
 
No.
This is a place where you ask for help in the form of feedback and advice.

This is not a place where you can ask others to do your work for you
They’ve told you whats wrong with your code, now go fix it yourself. If you don’t know whats wrong with it, look at some tutorials like the one provided earlier

Posted by: x8ight from the skUnity Discord.
 
if the condition is passed, the code to run has to be indented more; one unit (spaces or tabs) to the right
code_language.skript:
if {variable} = "example":
  broadcast "This code is run when the condition is passed (meets the requirements)"
broadcast "This will run regardless"
so after you check the name you want to indent the next conditions where you check the index of the slot
just gonna point this out again

Posted by: x8ight from the skUnity Discord.
 
?
can i youse c h a t g p t for it im stupid
code_language.skript:
vb
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 {_vip_helmet} to leather helmet with all flags hidden
    set slot 11 of {_ranksbuy} to {_vip_helmet} named "<##FFF300>&lVIP RANK"
    set {_booster_helmet} to iron helmet with all flags hidden
    set slot 12 of {_ranksbuy} to {_booster_helmet} named "<##B900FF>&lBOOSTER RANK"
    set {_god_helmet} to gold helmet with all flags hidden
    set slot 13 of {_ranksbuy} to {_god_helmet} named "<##FF9200>&lGOD RANK"
    set {_chub_helmet} to diamond helmet with all flags hidden
    set slot 14 of {_ranksbuy} to {_chub_helmet} named "<##FF0000>&lCHUB RANK"
    set {_media_helmet} 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"
is this gonne work?
<@418899084557156362
srry for @
<@1005039851546091520
srry for @

Posted by: drchubs from the skUnity Discord.
 
you've spelled "use" wrong twice....
use has nothing to do with a person, where do you get the "you" from??
dont ping people, be patient. Don't ping them and then say "sorry for the ping". dont ping a second person when the first doesnt immediatley respond
.
what is that monstrosity of a line? thats not even needed...
set the slots
integers between a and b
too
they'll get overridden by the actual itesm

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