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.

Warp GUI help

Discussion in 'Skript' started by GiorgixPRO, Jul 26, 2019.

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

    GiorgixPRO Member

    Joined:
    Jul 29, 2017
    Messages:
    44
    Likes Received:
    0
    Hello guys I've created a warp GUI but when the player clicks on the item the command doesnt run.
    This is the code:

    Code (Text):
    1. command /warps:
    2.     trigger:
    3.         open chest with 6 row named "&bWarps" to player
    4.         wait 1 tick
    5.         format slot 0 of player with green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    6.         format slot 1 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    7.         format slot 2 of player with green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    8.         format slot 3 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    9.         format slot 4 of player with red glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    10.         format slot 5 of player with blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    11.         format slot 6 of player with light green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    12.         format slot 7 of player with blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    13.         format slot 8 of player with light green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    14.         format slot 11 of player with diamond sword named "&c&lWarp War" with lore "&bMondo Fazione [30000x30000]||&cPVP Attivo!" to close then run "warp war"
    15.         format slot 13 of player with item frame named "&a&lWarp Info" with lore "&aImpara i &dcomandi &ae le &6meccaniche &adel server" to close then run "warp info"
    16.         format slot 15 of player with obsidian named "&d&lWarp Portali" with lore "&6Avventuratevi nel &cNether & End!" to close then run "Warp Portali"
    17.         format slot 21 of player with diamond pickaxe named "&b&lWarp Enchant & Fabbro" with lore "&dIncanta Armi, Armature e Picconi." to close then run "Warp Enchant"
    18.         format slot 23 of player with pink wool named "&e&lWarp Parkour" with lore "&aCompleta tutti i parkours con diverse difficolta,vincerai fantastici premi!!" to be unstealable
    19.         format slot 38 of player with coal block named "&a&lWarp Miniera Pubblica" with lore "&aScava e Vendi per ottenere Soldi + Tokens.||&aMiniera NO PVP." to be unstealable
    20.         format slot 39 of player with redstone block named "&c&lWarp MinieraWar" with lore "&aScava e vendi per ottenere Soldi + Tokens||&cPVP Attivo" to be unstealable
    21.         format slot 41 of player with diamond block named "&b&lWarp Miniere VIP" with lore "&4Accesso alle miniere vip||VIP necessario per scavare in queste miniere. &a(&9/Warp VIP&a)" to be unstealable
    22.         format slot 42 of player with diamond named "&9&lWarp VIP" with lore "&6Acquista il VIP per avere &7comandi e vantaggi unici nel server!" to be unstealable
    23.         format slot 45 of player with light green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    24.         format slot 46 of player with blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    25.         format slot 47 of player with light green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    26.         format slot 48 of player with blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    27.         format slot 49 of player with red glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    28.         format slot 50 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    29.         format slot 51 of player with green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    30.         format slot 52 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
    31.         format slot 53 of player with green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
     
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    I do not recommend that you use the SkQuery GUI. Instead, use TuSKe GUIs, since they are free of errors.

    Code (Skript):
    1.  
    2.  
    3. command /warps:
    4.     trigger:
    5.         open chest with 6 row named "&bWarps" to player
    6.         wait 1 tick
    7.         format a gui slot 0 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
    8.         format a gui slot 1 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
    9.         format a gui slot 2 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
    10.         format a gui slot 3 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
    11.         format a gui slot 4 of player with red glass pane named "&b&lGalactic&a&lFuture" to do nothing
    12.         format a gui slot 5 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
    13.         format a gui slot 6 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing
    14.         format a gui slot 7 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
    15.         format a gui slot 8 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing
    16.         format a gui slot 11 of player with diamond sword named "&c&lWarp War" with lore "&bMondo Fazione [30000x30000]||&cPVP Attivo!" to close:
    17.             player command "warp war"
    18.         format a gui slot 13 of player with item frame named "&a&lWarp Info" with lore "&aImpara i &dcomandi &ae le &6meccaniche &adel server" to close:
    19.             player command "warp info"
    20.         format a gui slot 15 of player with obsidian named "&d&lWarp Portali" with lore "&6Avventuratevi nel &cNether & End!" to close:
    21.             player command "Warp Portali"
    22.         format a gui slot 21 of player with diamond pickaxe named "&b&lWarp Enchant & Fabbro" with lore "&dIncanta Armi, Armature e Picconi." to close:
    23.             player command "Warp Enchant"
    24.         format a gui slot 23 of player with pink wool named "&e&lWarp Parkour" with lore "&aCompleta tutti i parkours con diverse difficolta,vincerai fantastici premi!!" to do nothing
    25.         format a gui slot 38 of player with coal block named "&a&lWarp Miniera Pubblica" with lore "&aScava e Vendi per ottenere Soldi + Tokens.||&aMiniera NO PVP." to do nothing
    26.         format a gui slot 39 of player with redstone block named "&c&lWarp MinieraWar" with lore "&aScava e vendi per ottenere Soldi + Tokens||&cPVP Attivo" to do nothing
    27.         format a gui slot 41 of player with diamond block named "&b&lWarp Miniere VIP" with lore "&4Accesso alle miniere vip||VIP necessario per scavare in queste miniere. &a(&9/Warp VIP&a)" to do nothing
    28.         format a gui slot 42 of player with diamond named "&9&lWarp VIP" with lore "&6Acquista il VIP per avere &7comandi e vantaggi unici nel server!" to do nothing
    29.         format a gui slot 45 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing
    30.         format a gui slot 46 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
    31.         format a gui slot 47 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing
    32.         format a gui slot 48 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
    33.         format a gui slot 49 of player with red glass pane named "&b&lGalactic&a&lFuture" to do nothing
    34.         format a gui slot 50 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
    35.         format a gui slot 51 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
    36.         format a gui slot 52 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
    37.         format a gui slot 53 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
    --- Double Post Merged, Jul 26, 2019, Original Post Date: Jul 26, 2019 ---
    Also, I don't know if you realized that in your code, in lines you put "to be unstealable" when (from what I see) a command should go.
    For example:
    upload_2019-7-25_19-46-18.png
     
  3. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    314
    Likes Received:
    21
    Off-Topic: Please use loops when you want to decorate your things with useless items that just have the same name...

    Example
    Code (Text):
    1. format a gui slot 0 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
    2.         format a gui slot 1 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
    3.         format a gui slot 2 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
    4.         format a gui slot 3 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
    5.         format a gui slot 4 of player with red glass pane named "&b&lGalactic&a&lFuture" to do nothing
    6.         format a gui slot 5 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
    7.         format a gui slot 6 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing
    8.         format a gui slot 7 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
    9.         format a gui slot 8 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing
    Loop 9 times, set slot loop-value - 1 and boom
     
  4. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    I don't know if you noticed that each crystal is "blue-green-blue-red". I think that is the reason why this guy didn't make the code that way.
     
  5. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    314
    Likes Received:
    21
    have a look @ modulos
    [​IMG]
     
Thread Status:
Not open for further replies.

Share This Page

Loading...