Well i tested the script and what i found out was, that the npc can not be unselectable and cast spell that does any damage. For some reason the server makes the unit unable to attack when he is flagged as not selectable. So the only thing i found out, that can make this script work blizzlike up to some extend is to make the npc not selectable when he goes in combat. Also, the faction that this npc gets spawned with in whydb is 35 (friendly to all), so i had to change the faction in creature_proto (used faction 16) in order to make the npc hostile when spawned and allow his spell damage players. This is what i could do so far: