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

Lua Dream Challenge Quest Pillow Riddle error (By Teckman)

zippy

Member
Joined
Feb 1, 2011
Messages
233
Reaction score
8
Hi, i use teckman script to riddle the pillows but i get error:

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:
Greypaw, it seems you are new to otland, that is clearly 1.0. Since 0.4 was also renamed to 0.3.

@Topic
The problem with the script is just the configuration with the posistion.
 
Back
Top