I'm working on a 8.54 Open Tibia Server using The Forgotten Server - Version 0.2.7 (Mystic Spirit).
Every time I walk on a sqm with the correct action id i'm getting teleported but also the following error appears in my console.
[01/09/2014 16:12:08] [Error] Call stack overflow. MoveEvent::executeStep
Server\data\movements\movements.xml
Server\data\movements\scripts\others\mountain jump.lua
Every time I walk on a sqm with the correct action id i'm getting teleported but also the following error appears in my console.
[01/09/2014 16:12:08] [Error] Call stack overflow. MoveEvent::executeStep
Server\data\movements\movements.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<movements>
<movevent event="StepIn" fromid="4526" toid="4541" script="others/mountain jump.lua"/>
<movevent event="StepIn" itemid="7356" script="others/mountain jump.lua"/>
</movements>
Server\data\movements\scripts\others\mountain jump.lua
Code:
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) == TRUE and item.actionid == 55560 then
position.y = position.y + 3
doTeleportThing(cid, position)
elseif isPlayer(cid) == TRUE and item.actionid == 55561 then
position.y = position.y - 3
doTeleportThing(cid, position)
end
return true
end
