Solved Name of inventory

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

ELROX

Member
Jan 26, 2017
30
1
0
33
How to get name of inventory without skquery?

I need this without skquery:
code_language.skript:
on inventory close:
    if inventory name of current inventory of player contains "Trash":
        send "OK"
 
Can do it with WildSkript

cacce7c431fd4fc97abe3b1b3923d5df.png
 
You've just asked for 2 different things, though?

code_language.skript:
on inventory close:
    if inventory name of current inventory of player contains "Trash":
        send "OK"

whilst that is a different thing, so make your mind up
 
How to get name of inventory without skquery?

I need this without skquery:
code_language.skript:
on inventory close:
    if inventory name of current inventory of player contains "Trash":
        send "OK"
I don't know if contains works but just try it like this:

code_language.skript:
on inventory close:
    if inventory name of player's current inventory contains "Trash":
        send "OK"
[doublepost=1490881244,1490881107][/doublepost]
I don't know if contains works but just try it like this:

code_language.skript:
on inventory close:
    if inventory name of player's current inventory contains "Trash":
        send "OK"
And please just use skquery. Don't make it more complicated that it has to be :emoji_wink:
 
@ELROX As said above can you send, console log, spigot version, skript version and any other info that may be useful. You can also use Skellett to do this.

code_language.skript:
on inventory close:
    set {_name} to method "getName" from event-inventory
Needs Bensku's edit where I added the event value event-inventory aswell.
 
  • Like
Reactions: ELROX
Status
Not open for further replies.