hi! im having problem with cid on this function =/
console error :
<uaDoTeleportThing> Thing not found....
etc =/
what is causing this error? :O
does onadditem dont have cid in funcition?
Lua:
function onAddItem(moveItem, tileItem, position, cid)
local newpos = {x=32791, y=32332, z=10}
if moveItem.itemid == 2016 then
doSendMagicEffect(position,0)
doTeleportThing(cid, newpos)
doCreatureSay(cid, "Muahahahaha...", TALKTYPE_ORANGE_1, false, 0, newpos)
doSendMagicEffect(newpos,10)
doRemoveItem(moveItem.uid, 1)
else
doCreatureSay(cid, "Muahahahaha...", TALKTYPE_ORANGE_1, false, 0, position)
end
return TRUE
end
console error :
<uaDoTeleportThing> Thing not found....
etc =/
what is causing this error? :O
does onadditem dont have cid in funcition?