Solved shop

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Feb 26, 2019
29
0
1
23
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?
 
change this line
Code:
create a gui slot 10 of player with gold block named "&6&l+1GPC" to run:
to this
Code:
create a gui slot 10 of player with gold block named "&6&l+1GPC" to run using "right" click:
 
Status
Not open for further replies.