Hi, i use teckman script to riddle the pillows but i get error:
Here is the script:
Im using 1.0
Thanks
Code:
Lua Script Error: [MoveEvents Interface]
data/movements/scripts/dreamer challenge quest/dreamerChallengeQuestRiddle.lua:o
nStepIn
LuaScriptInterface::luaDoTeleportThing(). Thing not found
stack traceback:
[C]: in function 'doTeleportThing'
.../dreamer challenge quest/dreamerChallengeQuestRiddle.lua:7: in functi
on <.../dreamer challenge quest/dreamerChallengeQuestRiddle.lua:1>
Here is the script:
Code:
function onStepIn(cid, item, position, lastPosition)
if(item.actionid == 2245) then
doTeleportThing(getThingFromPos({x = position.x + 2, y = position.y, z = position.z, stackpos = 1}).uid, {x = 32842, y = 32340, z = 9})
for i = 1, 5 do
doTeleportThing(getThingFromPos({x = position.x + 2 + i, y = position.y, z = position.z, stackpos = 1}).uid, {x = position.x + 1 + i, y = position.y, z = position.z})
end
doTeleportThing(getThingFromPos({x = 32842, y = 32340, z = 9, stackpos = 1}).uid, {x = position.x + 7, y = position.y, z = position.z})
elseif(item.actionid == 2246) then
doTeleportThing(getThingFromPos({x = position.x, y = position.y + 2, z = position.z, stackpos = 1}).uid, {x = 32842, y = 32340, z = 9})
for i = 1, 5 do
doTeleportThing(getThingFromPos({x = position.x, y = position.y + 2 + i, z = position.z, stackpos = 1}).uid, {x = position.x, y = position.y + 1 + i, z = position.z})
end
doTeleportThing(getThingFromPos({x = 32842, y = 32340, z = 9, stackpos = 1}).uid, {x = position.x, y = position.y + 7, z = position.z})
end
return true
end
Im using 1.0
Thanks
Last edited: