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.

Token Lore glitch

Discussion in 'Skript' started by Vane, Jun 3, 2019.

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

    Vane New Member

    Joined:
    May 27, 2019
    Messages:
    7
    Likes Received:
    0
    Code (Text):
    1.                     if player has enough space for 1 magma cream:
    2.                         remove {_token} from {token::balance::%player%}
    3.                         give player 1 magma cream named "%{_token}%" with lore "&7This is a physical token. To claim it||&7simply &fright-click &7and claim tokens!||||&7Withdrawed by- &a&o%player%||&7Amount- &a&o%{_token}% &7token(s)."
    http://prntscr.com/nwy4fo Why does it do that? Please help me, thanks.
     
  2. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,500
    Likes Received:
    107
    Medals:
    You have to use lore as a list: "line 1", "line 2" and "line 3"
     
  3. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    It is easier if you do it this way (Although it will take more time and lines of code):
    Code (Skript):
    1.  
    2. set {_cream} to magma cream named "%{_token}%"
    3. set line 1 of lore of {_cream} to "&7This is a physical token. To claim it"
    4. set line 2 of lore of {_cream} to "&7simply &fright-click &7and claim tokens!"
    5. set line 4 of lore of {_cream} to "&7Withdrawed by- &a&o%player%"
    6. set line 5 of lore of {_cream} to "&7Amount- &a&o%{_token}% &7token(s)."
    7. give 1 of {_cream} to player
     
  4. AsuDev

    VIP

    Joined:
    Jan 27, 2017
    Messages:
    243
    Likes Received:
    21
    Code (Skript):
    1. set {_cream} to magma cream named "%{_token}%" with lore "&7This is a physical token. To claim it", "&7simply &fright-click &7and claim tokens!", "&7Withdrawed by- &a&o%player%" and "&7Amount- &a&o%{_token}% &7token(s)."
    2. if player has enough space for {_cream}:
    3.     remove {_token} from {token::balance::%player%}
    4.     give {_cream} to player
     
Thread Status:
Not open for further replies.

Share This Page

Loading...