From bc7f9019e8ec1ed3802c49baeaa35fdd20be2ab3 Mon Sep 17 00:00:00 2001 From: AnnieRuru Date: Thu, 11 Apr 2019 11:19:09 +0800 Subject: Standardize to "all" in script commands --- src/map/script.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index fe8638ac3..01245a617 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11043,10 +11043,16 @@ static BUILDIN(killmonster) int16 m,allflag=0; mapname=script_getstr(st,2); event=script_getstr(st,3); - if(strcmp(event,"All")==0) + + if (strcmpi(event, "all") == 0) { + if (strcmp(event, "all") != 0) { + ShowWarning("buildin_killmonster: \"%s\" deprecated! Please use \"all\" instead.\n", event); + script->reportsrc(st); + } allflag = 1; - else + } else { script->check_event(st, event); + } if( (m=map->mapname2mapid(mapname))<0 ) return true; -- cgit v1.2.3-60-g2f50