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 our 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.

GUI Help

Discussion in 'Skript' started by Dovkin, Jan 12, 2019.

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

    Dovkin Member

    Joined:
    Oct 10, 2018
    Messages:
    11
    Likes Received:
    0
    Code (Skript):
    1.         if text-arg is not set:
    2.             if player-arg is not set:
    3.                 set {_p} to "%player%" parsed as player
    4.                 open chest with 2 rows named "&7Coins - You have %{coins::%uuid of player%}%" to player
    5.                 format slot 4 of player with skull of {_p} named "&aCoins" with lore "&fBuy everything from tags to" and "&fplayer particles!" and " " and "&f&lYour Coins Balance:" and "&a%{coins::%uuid of player%}%" to be unstealable
    6.                 format slot 12 of player with end crystal named "&aCoin Shop" with lore "&fSpend your coins here." and "&fUpdated often with tons" and "&fof new items!" to close then run [make player execute command "coin shop"]
    7.                 format slot 14 of player with chest named "&aGet Coins" with lore "&fPurchase some coins!" to close then run [make player execute command "buy"]
    Code (Skript):
    1. to close then run [make player execute command "buy"]
    This part doesn't work? No errors in Console when starting/reloading and no in game errors when reloading the skript itself.
     
  2. Runakai1

    Runakai1 Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    376
    Likes Received:
    19
    Use set slot instead of format slot
     
  3. M

    MeHow Well-Known Member

    Joined:
    Feb 6, 2017
    Messages:
    125
    Likes Received:
    11
    Use Tuske addon
     
  4. R

    Rina Tennoji Member

    Joined:
    Jan 12, 2019
    Messages:
    5
    Likes Received:
    0
    Code (Skript):
    1.         if text-arg is not set:
    2.             if player-arg is not set:
    3.                 set {_p} to "%player%" parsed as player
    4.                 open chest with 2 rows named "&7Coins - You have %{coins::%uuid of player%}%" to player
    5.                 format slot 4 of player with skull of {_p} named "&aCoins" with lore "&fBuy everything from tags to", "&fplayer particles!", " ", "&f&lYour Coins Balance:" and "&a%{coins::%uuid of player%}%" to be unstealable
    6.                 format slot 12 of player with end crystal named "&aCoin Shop" with lore "&fSpend your coins here.", "&fUpdated often with tons" and "&fof new items!" to close then run [make player execute command "coin shop"]
    7.                 format slot 14 of player with chest named "&aGet Coins" with lore "&fPurchase some coins!" to close then run [make player execute command "buy"]
    This might be your problem, when you have more than 2 lines of lore I believe you need to have it like "line 1", "line2", "line 3" and "line 4".
    Though I might be wrong, cause I am slightly new to skript.
     
  5. Dave

    Dave Well-Known Member

    Joined:
    Jul 20, 2018
    Messages:
    46
    Likes Received:
    0
    You must use ''II'' to make a new line in lore:
    Code (Skript):
    1. format slot 4 of player with skull of {_p} named "&aCoins" with lore "&fBuy everything from tags to||&fplayer particles!|| ||&f&lYour Coins Balance:||&a%{coins::%uuid of player%}%" to be unstealable
    2. format slot 12 of player with end crystal named "&aCoin Shop" with lore "&fSpend your coins here||&fUpdated often with tons||&fof new items!" to close then run [make player execute command "coin shop"]
    3. format slot 14 of player with chest named "&aGet Coins" with lore "&fPurchase some coins!" to close then run [make player execute command "buy"]
    4.  
     
  6. Runakai1

    Runakai1 Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    376
    Likes Received:
    19
    Depends on your Skript version. If it works, fine, use it but if not: replace || with "" and ""
     
  7. Dave

    Dave Well-Known Member

    Joined:
    Jul 20, 2018
    Messages:
    46
    Likes Received:
    0
    That the syntax of SKQuery's gui manager, and also i guess he's using 1.8 or something
     
  8. R

    Rina Tennoji Member

    Joined:
    Jan 12, 2019
    Messages:
    5
    Likes Received:
    0
    "||" Isn't supported in the latest version of skQuery
     
  9. Dave

    Dave Well-Known Member

    Joined:
    Jul 20, 2018
    Messages:
    46
    Likes Received:
    0
    Then, try to use Tuske
     
  10. B

    Brok3nmind Well-Known Member

    Joined:
    Feb 3, 2017
    Messages:
    62
    Likes Received:
    1
    You have to use Tuske because SkQuery will not be further developed. If you want to add a new line use this
    Code (Skript):
    1. format gui slot 0 of player with stone named "It won't do anything" with lore "Line1", "Line2" and "Line3"
    SkQuery will not be further developed and the lore's was removed and were add to Skript
     
Thread Status:
Not open for further replies.
Loading...