Issue information

Issue ID
#595
Status
Fixed
Severity
Low
Started
Hercules Elf Bot
Dec 11, 2007 23:23
Last Post
Hercules Elf Bot
Dec 11, 2007 23:23
Confirmation
N/A

Hercules Elf Bot - Dec 11, 2007 23:23

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

I got a report that after a @reloadscript, npcs that had OnTouch zones now throw "npc_touch_areanpc: some bug" wtf errors.

After a quick look at the code, I found this:
CODE
int npc_remove_map(struct npc_data* nd)
{
...
    if (nd->subtype == WARP)
    {// Remove corresponding NPC CELLs

So, for non-warp npcs, the ontouch zone doesn't get cleared. Maybe that's an optimization (assuming that the same npcs will come back, with the same ontouch zone dimensions)... of course it'd crap out on @unloadnpc either way.

To test, just get a npc with a touch area, then unload it.