Por favor, me ajudem!
Este script está me causando o seguinte problema:
[Error - MoveEvent::executeStep] Call stack overflow.
Script:
<movevent type="StepIn" itemid="11777-11785;1533-1542; 11809-11811; 5303-5304; 1111-1119; 873-878; 1036-1048; 6436-6439" event="script" value="block2wall.lua"/>
function onStepIn(cid, item, position, fromPosition)
if isSummon(cid) and getCreatureName(cid) == "Gastly" or getCreatureName(cid) == "Shiny Gastly" or getCreatureName(cid) == "Haunter" or getCreatureName(cid) == "Shiny Haunter" or getCreatureName(cid) == "Gengar" or getCreatureName(cid) == "Shiny Gengar" or getCreatureName(cid) == "Misdreavus" then
return true
end
if isPlayer(cid) then
doTeleportThing(cid, fromPosition, false)
return true
end
if isSummon(cid) then
doTeleportThing(cid, fromPosition, false)
return true
end
if isMonster(cid) then
doTeleportThing(cid, fromPosition, false)
return true
end
end