viniciusturko
New Member
Where is the error in this function?
Can someone solve it?
LUA:
function doRemoveItemByPosition(pos, item) -- Function by CyberM
for j = 1, 255 do
pos.stackpos = j
local thing = getTileThingByPos(pos).itemid
if thing == 0 then
break
elseif thing == item then
doRemoveItem(thing, 1)
end
end
return i
end
XML:
Lua doRemoveItem : Item not found
Can someone solve it?
Last edited: