Solved Skellett inventory action? How to open a new gui by clicking on a slot?

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

Lukhausen

Active Member
Mar 20, 2017
145
11
18
Hey :emoji_slight_smile:

How am I able to interact with a slot created by Skellett like this

code_language.skript:
set slot {_slot} of player's current inventory to ("%loop-value%" parsed as offline player)'s skull named "&6%loop-value%" with lore "&eTrade with %loop-value%."

So i want if i click on the head that there is a nother gui opened.
But i dont know how...
Can somone help please?
 
Hey :emoji_slight_smile:

How am I able to interact with a slot created by Skellett like this

code_language.skript:
set slot {_slot} of player's current inventory to ("%loop-value%" parsed as offline player)'s skull named "&6%loop-value%" with lore "&eTrade with %loop-value%."

So i want if i click on the head that there is a nother gui opened.
But i dont know how...
Can somone help please?

code_language.skript:
on inventory click:
    broadcast "Item: &5%clicked item%"
    if name of clicked item is set:
        broadcast "Name: &d%name of clicked item%"
    set clicked item to stone named "&aHello world!"
code_language.skript:
on inventory click:
    broadcast "Slot: &6%clicked slot%"
 
code_language.skript:
on inventory click:
    broadcast "Item: &5%clicked item%"
    if name of clicked item is set:
        broadcast "Name: &d%name of clicked item%"
    set clicked item to stone named "&aHello world!"
code_language.skript:
on inventory click:
    broadcast "Slot: &6%clicked slot%"
So I can just use" if name of clicked item is {_name}" in a on inventory click event?
 
Status
Not open for further replies.