Issue information

Issue ID
#4060
Status
Duplicate
Severity
None
Started
Hercules Elf Bot
Feb 14, 2010 23:08
Last Post
Hercules Elf Bot
Feb 14, 2010 23:08
Confirmation
N/A

Hercules Elf Bot - Feb 14, 2010 23:08

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

Monster spawn commands was thought to spawn monsters with small and big size if you put 2 or 4 in the event field. However, the check event function doesn't allow them to use these events. I have modified the check event function in script.c to allow this option again:

CODE
/// Checks event parameter validity
static void check_event(struct script_state *st, const char *evt)
{
    if( strlen(evt) > 2 && *evt != '\0' && !stristr(evt,"::On") ){
        ShowError("NPC event parameter deprecated! Please use 'NPCNAME::OnEVENT' instead of '%s'.\n",evt);
        script_reportsrc(st);
    }
}


This post has been edited by Ivion: Feb 16 2010, 07:15 PM