[crossfire] Spellcasting Swords & Python Troubles
Alex Schultz
alex_sch at telus.net
Fri May 20 09:05:39 CDT 2005
Hi again,
The python code for the spellcasting swords is now working perfectly now
except for one issue. If the spell casted kills the monster before the
monster gets hit by the sword normally, then the server crashes with
this message:
PYTHON - triggerEvent:: eventcode 2
PYTHON - HandleEvent:: got script file >/python/swordcast.py<
PYTHON - HandleEvent:: script loaded (/python/swordcast.py)!
Object (null) is freed but has speed.
Aborted
Which would seem to be the case because the spell already killed the
monster and it was freed from memory, and then when the sword tries to
hit it, after the spell is cast it fails because the monster died so
quickly. Cone spells to not appear to be effected (probably only damages
after 1 tick or so), bolt spells like small lightning and steambolt are
affected, and I haven't tested it yet, but finger of death and bullet
spells might be affected too. If anybody has any ideas on how to get
around this, I would appreciate it.
Thanks,
Alex Schultz (aka Rednaxela)
More information about the crossfire
mailing list