Issue information

Issue ID
#3512
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Aug 21, 2009 5:35
Last Post
Hercules Elf Bot
Apr 5, 2012 10:22
Confirmation
N/A

Hercules Elf Bot - Aug 21, 2009 5:35

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

Going directly to the point, the 'monster' commands fails when trying to summon a monster in an instanced map other than 001<map>.
You can reproduce this error with a script I made specially for testing, attached to this post.

The solution is pretty simple, and as far as I could test it did not affect the behavior of script-called monsters in and out o instanced maps.

Just look for "BUILDIN_FUNC(monster)" inside script.c, and delete these lines near the end of the function:

CODE
        if( map[m].flag.src4instance && st->instance_id )
        { // Try to redirect to the instance map, not the src map
            if( (m = instance_mapid2imapid(m, st->instance_id)) < 0 )
            {
                ShowError("buildin_monster: Trying to spawn monster (%d) on instance map (%s) without instance attached.\n", class_, mapn);
                return 1;
            }
        }


Below is a script for testing this bug.


This post has been edited by LimitLine: Aug 20 2009, 10:41 PM
Attached File(s)
Attached File  instance.txt ( 1.97K ) Number of downloads: 6
 

Hercules Elf Bot - Dec 20, 2011 5:26

Originally posted by [b]Ind[/b]
was fixed in a previous eA revision