* Fixed map-server printing deprecation message, when monster event label was used as transport for special attributes (small/large monsters etc.) in script command 'monster' and related commands (bugreport:1274, since r6592, related r5707).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14814 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
@@ -577,9 +577,17 @@ static void disp_error_message2(const char *mes,const char *pos,int report)
|
||||
/// Checks event parameter validity
|
||||
static void check_event(struct script_state *st, const char *evt)
|
||||
{
|
||||
if( evt != NULL && *evt != '\0' && !stristr(evt,"::On") ){
|
||||
ShowError("NPC event parameter deprecated! Please use 'NPCNAME::OnEVENT' instead of '%s'.\n",evt);
|
||||
script_reportsrc(st);
|
||||
if( evt && evt[0] && !stristr(evt, "::On") )
|
||||
{
|
||||
if( npc_event_isspecial(evt) )
|
||||
{
|
||||
; // portable small/large monsters or other attributes
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowError("NPC event parameter deprecated! Please use 'NPCNAME::OnEVENT' instead of '%s'.\n", evt);
|
||||
script_reportsrc(st);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user