Page 1 of 1

exploding NPCs

Posted: 23 Jan 2013, 19:22
by o11c
Currently, the NPC_SELFDESTRUCT skill is the *only* skill that uses the "area-of-effect damage" code, which is a pretty messy thousand lines of code.

Some questions:
  • Does this actually work? I haven't observed it, but then I play an archer. I do seem to recall some sort of complaints, I'm kind of fuzzy on exactly what (and might be confusing it with magic summons).
  • Do we actually want self-destruct to damage beings other than the attacker?
The mobs that use this are:
  • 1092 SlimeBlast
  • 1093 WhiteSlime
  • 1049 Bee
  • 1070 BallLightning

Re: exploding NPCs

Posted: 23 Jan 2013, 20:18
by 4144
Skill works, but server not send packet to client what skill was used.

Re: exploding NPCs

Posted: 23 Jan 2013, 21:20
by Jenalya
cody wrote:
o11c wrote:
  • Do we actually want self-destruct to damage beings other than the attacker?
It makes things more interesting. This effect makes the snowland slimes very different from the woodland slimes.
I agree and think this feature should be kept.

Re: exploding NPCs

Posted: 24 Jan 2013, 00:11
by o11c
Jenalya wrote:I agree and think this feature should be kept.
Okay, I'll figure out how a way to do it with new code instead of keeping the old code.

Re: exploding NPCs

Posted: 05 Feb 2013, 01:23
by o11c
well, I found out what was confusing me ... there are actually two completely separate code paths that are supposed to do self-destruct, but one of them reads and writes arbitrary memory due to ab off-by-two error and but is not actually executed, whereas one is.