#loop player's inventory
1 messages · Page 1 of 1 (latest)
i asked for help in chat and this "solved"
The thing was, when looping and don't stopping, messages were spammed in the chat, having and not having the item in inventory, SO it didn't work
Adding these 2 stop loop it resolved, but now it works only in My Main account, in any other not
what
Yeah try this without stopping and it Will not work
Look i will show u
having "test" item in inventory i got this:
also it removes 1 from inventory
command /test: trigger: wait 0.1 seconds loop all items in the player's inventory: if name of loop-item is "test": remove 1 of loop-item from player's inventory else: send "you don't have test item"
no because i want to send to player that he requires that item
i doing a check if player has the item to enter a certain zone
and if he does not have it, send a msg what he requires
and it does do that
What I see is that you don't have the item in your inventory, but it was still removed...
and what are those previous messages?
is there a way to prevent that?
if your goal is a specific item, just check if player's inventory contains (item)
is there a way to prevent a linear sequence?
beyond this, no
i will try it
but how is it possible that the first code works for me (but only for me)?
so there is no other way to avoid this...
solved with this