• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved how to check itemEx is in your inventory

yandere

New Member
Joined
Feb 1, 2014
Messages
76
Reaction score
4
how to check itemEx is in your inventory? I must write code that send error when itemEx is not in inventory, backpack etc.

i tried if toPosition ~= getCreaturePosition(cid) but this doesnt works.
how to check itemEx count?

0.3.6 tfs
 
@Limos
if toPosition.x ~= CONTAINER_POSITION then

its working but i dont know why. can u explain me what is .x after toPosition?
I never seen .x in scripts :D
 
A position is like this, x = 100, y = 100, z = 7. If you do toPosition.x, you get the x number of the position, but if it's in your backpack it gives a different number and not the one from the positiom, like this you can check if it's a container position or a position in the map.

@ka0zstyle
You should post in your own thread, this is the thread from yandere :p
 
how to get itemid and itemcount from this database when id is actionid of used item

6GhInIr.png


what is wrong with this
db.executeQuery("SELECT FROM table WHERE id = "..item.actionid..";")
 
Back
Top