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

check item on pos

Ecstacy

Mothafuckaaa
Joined
Dec 26, 2008
Messages
3,836
Reaction score
108
Location
The Netherlands
Code:
Hey,

I need some help on this part of my script,
it doesn't see the item, even though its there.

[code=lua]local t = {
	wolf = {2826,2829,5897,11228}
	}

function onUse(cid, item, fromPosition, itemEx, toPosition)
local target,v = getThingFromPos(toPosition),getThingPos(cid)
	if getTileItemById(target,t.wolf[1]).itemid > 0 then

it always return not true.[/CODE]

it's solved.
 
Last edited:
Back
Top