GUI skript help

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

bebeli555

Member
Feb 6, 2020
28
0
0
25
So im making a GUI menu that sells items with my custom currency
Check the file i put here as an example

So like. ive searched everywhere on internet but all GUI's seem to just use console commands so
how can i make like a GUI that when an item is clicked in side of the GUI it would execute an skript
not just a console command ---> format slot 0 of player with grass named "&b&lExample" to close then run [execute console command "command"] <---- Not this

Like when a player clicks the grass named &b&LExample inside the menu it would execute this skript:
if {point.%player%} is 150:
remove 150 from {point.%player%}
message "&a&LYou now have access to /warp!"
make console execute command "manuaddp %player% essentials.warp"
 

Attachments

  • GuiShop.sk
    217 bytes · Views: 178
Requires TuSKe:
Code:
command /RuneShop:
    trigger:
        open virtual chest with 3 rows named "&6&LRune&a&LShop" to player
        format gui slot 0 of player with grass named "&b&lExample" to run:
            # do skript stuff here :D
 
Code:
command /RuneShop:
    trigger:
        open virtual chest inventory with size 3 named "&6&LRune&a&LShop" to player
        format gui slot 0 of player with grass named "&b&lExample" to run:
            you can put the if command here.
 
Status
Not open for further replies.