From d24c00ac556a924dd79f674db88a8cb812d74640 Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Tue, 22 Jun 2010 22:09:11 +0000 Subject: * Added support for NPC names in the 'specialeffect' script command, go go copy/paste! * Updated several NPCs to use the updated specialeffect command, updated more NPCs to use the updated emotion command. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14353 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index eef1bfcd6..51d5f8376 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -10996,7 +10996,14 @@ BUILDIN_FUNC(specialeffect) if(bl==NULL) return 0; - clif_specialeffect(bl, type, target); + if( script_hasdata(st,4) ) + { + TBL_NPC *nd = npc_name2id(script_getstr(st,4)); + if(nd) + clif_specialeffect(&nd->bl, type, target); + } + else + clif_specialeffect(bl, type, target); return 0; } -- cgit v1.2.3-70-g09d2