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.

GUI skript help

Discussion in 'Skript' started by bebeli555, Feb 24, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. bebeli555

    bebeli555 Member

    Joined:
    Feb 6, 2020
    Messages:
    28
    Likes Received:
    0
    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"
     

    Attached Files:

  2. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    Requires TuSKe:
    Code (Text):
    1. command /RuneShop:
    2.     trigger:
    3.         open virtual chest with 3 rows named "&6&LRune&a&LShop" to player
    4.         format gui slot 0 of player with grass named "&b&lExample" to run:
    5.             # do skript stuff here :D
     
  3. Potato

    Potato Active Member

    Joined:
    Feb 24, 2020
    Messages:
    57
    Likes Received:
    0
    Code (Text):
    1. command /RuneShop:
    2.     trigger:
    3.         open virtual chest inventory with size 3 named "&6&LRune&a&LShop" to player
    4.         format gui slot 0 of player with grass named "&b&lExample" to run:
    5.             you can put the if command here.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...