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.

Solved HELP ON RIGHT CLICK!!

Discussion in 'Skript' started by DaviPatrick, Mar 16, 2018.

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

    DaviPatrick Member

    Joined:
    Mar 16, 2018
    Messages:
    23
    Likes Received:
    0
    CODE:

    on right click:
    if player is holding diamond sword named "&aMinigames":
    open chest named "&aMinigames" with 3 rows to player

    ERROR:
    'chest' named "&aMinigames" with 3 rows to player is not an entity type
    --- Double Post Merged, Mar 16, 2018, Original Post Date: Mar 16, 2018 ---
    bump
     
  2. Best Answer:
    Post #2 by Wynnevir, Mar 16, 2018
  3. Wynnevir

    Wynnevir Well-Known Member

    Joined:
    Jul 9, 2017
    Messages:
    974
    Likes Received:
    57
    Beleive the syntax should be
    Code (Skript):
    1. open chest with 3 rows named "name" to player
     
  4. DaviPatrick

    DaviPatrick Member

    Joined:
    Mar 16, 2018
    Messages:
    23
    Likes Received:
    0
    Thank you, but how to get players coins? I'm am using essentials to economy.
     
  5. Wynnevir

    Wynnevir Well-Known Member

    Joined:
    Jul 9, 2017
    Messages:
    974
    Likes Received:
    57
    There's syntax for giving money or adding/taking from a balance in the documentation. If you want to have it give them money when you click something in the GUI, I would recommend using tuske instead. It's easier and less buggy.
     
  6. DaviPatrick

    DaviPatrick Member

    Joined:
    Mar 16, 2018
    Messages:
    23
    Likes Received:
    0
    But i need to show his money.
     
  7. Wynnevir

    Wynnevir Well-Known Member

    Joined:
    Jul 9, 2017
    Messages:
    974
    Likes Received:
    57
    You can display it with the %player's balance% expression? :0
     
  8. DaviPatrick

    DaviPatrick Member

    Joined:
    Mar 16, 2018
    Messages:
    23
    Likes Received:
    0
    ok thanks. <3
     
    • Friendly Friendly x 1
Thread Status:
Not open for further replies.
Loading...