exploding NPCs

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

exploding NPCs

Post 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
Former programmer for the TMWA server.
4144
Knight
Knight
Posts: 965
Joined: 03 Aug 2009, 11:57

Re: exploding NPCs

Post by 4144 »

Skill works, but server not send packet to client what skill was used.
User avatar
Jenalya
TMW Adviser
TMW Adviser
Posts: 717
Joined: 22 Sep 2010, 19:28

Re: exploding NPCs

Post 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.
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: exploding NPCs

Post 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.
Former programmer for the TMWA server.
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: exploding NPCs

Post 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.
Former programmer for the TMWA server.
Post Reply