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.

Solved shop

Discussion in 'Skript' started by thomas_nietoke, Mar 4, 2019.

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

    Joined:
    Feb 26, 2019
    Messages:
    29
    Likes Received:
    0
    command /shop:
    trigger:
    open chest with 5 rows named "&6Shop" to player
    create a gui slot 10 of player with gold block named "&6&l+1GPC" to run:
    if {gold::%player%} >= 100:
    remove 100 from {gold::%player%}
    on right click on gold block:
    add 1 to {gold::%player%}
    if {gold::%player%} <= 100:
    stop
    How do i make it so the thing with on right click on gold block works when i buy it in the shop?
     
  2. Best Answer:
    Post #2 by ShaneBee, Mar 4, 2019
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    change this line
    Code (Text):
    1. create a gui slot 10 of player with gold block named "&6&l+1GPC" to run:
    to this
    Code (Text):
    1. create a gui slot 10 of player with gold block named "&6&l+1GPC" to run using "right" click:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...