On inventory click

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

    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.

TDragon_

Active Member
Jul 19, 2018
86
1
0
I have a problem with the "on inventory click".

Code:
code_language.skript:
on inventory click:
    if inventory name of player's current inventory is "&6Test":
        if clicked slot is 10:
            cancel event
            if clicked type is left mouse button:
                send "teste"

Error:
code_language.skript:
[13:55:29 ERROR]: Can't compare a slot with an integer (TDmaquinas.sk, line 275: if clicked slot is 10:')
[doublepost=1542740519,1542729374][/doublepost]Semeone?
 
Which version of Skript are you using?
And which version of Spigot?
(Please dont say latest)

I tested this on both 1.13.2 with Skript 2.3 beta2 and 1.12.2 Skript 2.2dev37c
And it works just fine!
 
I have a problem with the "on inventory click".

Code:
code_language.skript:
on inventory click:
    if inventory name of player's current inventory is "&6Test":
        if clicked slot is 10:
            cancel event
            if clicked type is left mouse button:
                send "teste"

Error:
code_language.skript:
[13:55:29 ERROR]: Can't compare a slot with an integer (TDmaquinas.sk, line 275: if clicked slot is 10:')
[doublepost=1542740519,1542729374][/doublepost]Semeome?
Which version of Skript are you using?
And which version of Spigot?
(Please dont say latest)

I tested this on both 1.13.2 with Skript 2.3 beta2 and 1.12.2 Skript 2.2dev37c
And it works just fine!
Spigot 1.8.8
Skript 2.2-dev37c
 
Status
Not open for further replies.