Inventory name check problem T-T

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

Avery_s

New Member
May 4, 2019
7
0
0
24
code_language.skript:
command /inv:
 trigger:
  set {_inv} to chest with 2 row named "&0REWARD"
  open {_inv} to player

on inventory close:
 if inventory name of player's current inventory contains "&0REWARD":
  message "&fREWARD SET!"

"if inventory name of player's current inventory contains "&0REWARD":" doesn't work. It works well in Skript 2.2 but after I update it to 2.3 Skript nothing happen if I close chest name "&0REWARD". Please help me T-T
 
You need Bensku for that:
Code:
on inventory close:
    if event-inventory's display name contains "&0REWARD":
        message "&fREWARD SET!"
 
code_language.skript:
command /inv:
 trigger:
  set {_inv} to chest with 2 row named "&0REWARD"
  open {_inv} to player

on inventory close:
 if inventory name of player's current inventory contains "&0REWARD":
  message "&fREWARD SET!"

"if inventory name of player's current inventory contains "&0REWARD":" doesn't work. It works well in Skript 2.2 but after I update it to 2.3 Skript nothing happen if I close chest name "&0REWARD". Please help me T-T
What server version and Skript version are you using?
 
code_language.skript:
if name of event-inventory = "&0REWARD":
    send "&fREWARD SET!"
try that
 
Last edited:
I always just use
code_language.skript:
if name of player's current inventory contains "&0REWARD":
It always works for me. If its not working for you, probably has to do with a version issue.
 
i said that
no need to keep replying to an already solved thread. Although, he hasn't marked it as Solved yet :/
 
Status
Not open for further replies.