Hello. I need some help with that script
If i step on this tiles and i wait 5 seconds then script don't teleport me to pos MARS. What i need add to script ?
This is a console Description
Code:
function onStepIn(cid, item, pos)
if(item.actionid == 4545) and isPlayer(cid) == TRUE then
addEvent(waiting, 5 * 1000, cid)
end
function waiting(cid)
doTeleportThing(cid,mars)
mars = {x=1000, y=1000, z=7}
end
return true
end
If i step on this tiles and i wait 5 seconds then script don't teleport me to pos MARS. What i need add to script ?
This is a console Description
Code:
[03/04/2012 17:08:13] [Error - MoveEvents Interface]
[03/04/2012 17:08:13] data/movements/scripts/tp.lua:onStepIn
[03/04/2012 17:08:13] Description:
[03/04/2012 17:08:13] (luaAddEvent) Callback parameter should be a function.