Issue information

Issue ID
#3076
Status
Fixed
Severity
None
Started
Hercules Elf Bot
May 14, 2009 13:08
Last Post
Hercules Elf Bot
May 14, 2009 13:08
Confirmation
N/A

Hercules Elf Bot - May 14, 2009 13:08

Originally posted by [b]theultramage[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3076

I found some ancient code mentioning a 'level' attribute in mob spawn data.

CODE
    // parse MOB_NAME,[MOB LEVEL]
    if (sscanf(w3, "%127[^,],%d", mobname, &level) > 1)
        mob.level = level;


So instead of
<map name>,<x>,<y>,<xs>,<ys>%TAB%monster%TAB%<monster name>%TAB%<mob id>,<amount>,<delay1>,<delay2>,<event>
it would be
<map name>,<x>,<y>,<xs>,<ys>%TAB%monster%TAB%<monster name>[,custom level]%TAB%<mob id>,<amount>,<delay1>,<delay2>,<event>

This thing was added in... r139... yea, it's that old! And it was never documented!
I would like to remove this, since it has some very awkward consequences in rest of the code.