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