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.
Here are movements.xml
teleportrook.lua
Somebody help me! I will repp++
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++