This server is the most unstable for my spells, 9/36 don't work!
function moveByDir(cid, dir)
local pos = getCreaturePosition(cid)
local newpos = getPosByDir(pos, dir)
if getThingfromPos(newpos).uid > 0 and queryTileAddThing(cid, newpos) == 1 and getTilePzInfo(newpos) == 0 and getTileHouseInfo(newpos) == 0 then
doMoveCreature(cid, dir)
doSendMagicEffect(pos, 2)
end
end
function onCastSpell(cid, var)
for i = 0, 4 do
addEvent(moveByDir, i*100, cid, getPlayerLookDir(cid))
end
end
This spell don't works, on older version it works:
What happend? It was stable on the first release with 3 days now 20 hours and crash??Segmentation fault
admin@r18616:~/fire$ ./fire
The Forgotten Server, version 0.3.4 (Crying Damson)
A server developed by Elf, Talaturen, Lithium, Kiper, Kornholijo, KaczooH, slawkens & Macroman.
Visit our forum for updates, support and resources: http://otland.net.
you forgot 'return true', thx.