someone can help me?, i have a problem when i try move from door of lvl , my character get a freeze and the console show that error (see pic), im use avesta rev 94 and my closingdoor.lua is that
if someone can help me, thanks in advance, greetings
Code:
function onStepOut(cid, item, pos)
if(item.actionid == 0) then
return TRUE
end
local topos = getPlayerPosition(cid)
doRelocate(pos, topos)
local tmpPos = {x=pos.x, y=pos.y, z=pos.z, stackpos=-1}
local tileCount = getTileThingByPos(tmpPos)
local i = 1
local tmpItem = {uid = 1}
while(tmpItem.uid ~= 0 and i < tileCount) do
tmpPos.stackpos = i
tmpItem = getTileThingByPos(tmpPos)
if(tmpItem.uid ~= item.uid and tmpItem.uid ~= 0) then
doRemoveItem(tmpItem.uid)
else
i = i + 1
end
end
doTransformItem(item.uid, item.itemid-1)
return TRUE
end
if someone can help me, thanks in advance, greetings
Attachments
-
closingdoor.png11.7 KB · Views: 21 · VirusTotal