CustomDeathMessage.txt

Maps a monster class (monster type id) to a custom taunt delivered to the killed player in chat. Overrides the vanilla death message for that monster class. Gated by Custom.dat CustomDeathMessageSwitch.

File Location#

Data/Custom/CustomDeathMessage.txt

Loaded once at GameServer startup. Changes require a restart.

Format#

Plain text, whitespace-delimited. The first comment line names the columns; each following row is <index> "<text>". The file is terminated by the literal end on its own line or by end-of-file.

//index text
1 "Hihihih I'm Very Strong Monster"
2 "Hihihih I'm Very Strong Monster"
...
end

Columns#

ColumnTypeEffect
indexintMonster class (the monster's type id). Same numbering as Monster.xml entries
textquoted stringTaunt sent to the player's chat when a monster of this class kills them. Stored in a 128-byte buffer (127 usable chars plus null terminator)

Important Behavior#

  • Enabled by Custom.dat CustomDeathMessageSwitch = 1. Setting it to 0 disables the feature entirely; no replacement message is sent
  • Only triggers when a monster kills a player. Player-on-player kills are unaffected
  • The taunt is delivered to the killed player only, shown as chat originating from the killing monster. It is NOT broadcast to nearby players
  • Monster classes not listed here produce no custom taunt; there is no fallback vanilla death-line system - the field is simply silent
  • Duplicate indices: the last occurrence wins silently
  • Rows beyond the 127-char text limit are truncated when loaded; the chat send path truncates further at 255 bytes

Examples#

CustomDeathMessage.txt fragment
//index text
34 "Are You crazy !! You attack me"
131 "You cannot defeat me!"
200 "Bow before Kundun."
426 "Ashes to ashes."
end

Cross-File Dependencies#

ValueRelated in
indexMust match a monster class id in Monster.xml
Master toggleCustom.dat CustomDeathMessageSwitch

Common Issues#

  • Messages not appearing - CustomDeathMessageSwitch = 0 in Custom.dat, or the killing monster's class is not listed here
  • Wrong monster says the wrong line - index mismatch with the monster class table; verify the shipped monster list
  • Text cut off mid-sentence - message exceeded the 127-char text buffer or the 255-byte chat send cap; shorten it
  • Special characters mangled - file encoding is ANSI; multibyte characters may garble. Use plain ASCII where possible

Last updated August 20, 2026