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

Solved Teleport tile

lol94

Loler
Joined
Dec 23, 2008
Messages
764
Reaction score
55
Location
Mexico
Good Morning/afternoon/evening!

I have this little problem, my script is working 100%! allright but in the console its says that something wrong is happening.

Code:
[24/7/2013 11:7:18] [Error - LuaInterface::loadFile] cannot open data/movements/scripts/teleportrook: No such file or directory
[24/7/2013 11:7:18] [Error - Event::checkScript] Cannot load script (data/movements/scripts/teleportrook)
[24/7/2013 11:7:19] cannot open data/movements/scripts/teleportrook: No such file or directory

Here are movements.xml
PHP:
	<movevent type="StepIn" uniqueid="1002" event="script" value="teleportrook.lua"/>

teleportrook.lua
PHP:
local positions =
{
    place = {x=32369, y=32241, z=7} -- New position.
}
function onStepIn(cid, item, fromPos, item2, toPos)
    if (item.uid == 1002) then -- Unique ID of the Tile.
        doTeleportThing(cid, positions.place)
    end
    return TRUE
end

Somebody help me! I will repp++
 
Back
Top