first off all: a big thank you to all the people that offered to test my changes, and to tamarae for hosting the server.
as for the seemingly unrelated not working features:
thats what you get if you try to optimize functions you dont really understand ... let that be a lesson to you all

)
-- lifetaps (and all other damaging spells) should work again.
(was a problem in the damage calculation i tried to make work properly)
-- casting pets should no longer crash the zone.
(just silly programming error on my side)
concerning latency times and disconnects: the code for "NPC-AI" is kinda long, as far as runtime is concerned. on slower machines it could be possible that the server misses some packages or something. i hope with a little outside help we can get the "AI" to work a bit faster. (if thats the problem at all, i got random PL even before the AI was coded - time will tell ...)
the new files are available on the ftp-server. these files are new:
attack.cpp
MiscFunctions.cpp
NpcAI.cpp
spells.cpp