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

Lua Noob problem with doRemoveItem

lenidas

New Member
Joined
Mar 18, 2010
Messages
149
Reaction score
0
there is part of my script:

Lua:
if(itemEx.uniqueid == 55535) and (itemEx.itemid == 1304) then
	doRemoveItem(55535,1)
	doSendMagicEffect(fromPosition, CONST_ME_POOF)
	return TRUE
end

Why it doesnt remove item with unique id 55535?
 
try this
Code:
if(itemEx.uniqueid == 55535) and (itemEx.itemid == 1304) then
        doRemoveItem(item.uid, 55535)
        doSendMagicEffect(fromPosition, CONST_ME_POOF)
        return TRUE
end
 
Well i did
Code:
	if itemEx.uid == 55535 then
		doRemoveItem(itemEx.uid)
		doSendMagicEffect(toPosition, CONST_ME_POFF)
	end

and now it works :)
thanks anyway, repped
 
Back
Top