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

onAddItem, cid problem

d4rkbl0od

Member
Joined
Mar 21, 2008
Messages
160
Reaction score
7
hi! im having problem with cid on this function =/

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?
 
Back
Top