diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-30 18:13:16 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-30 18:13:16 +0000 |
commit | 08d47edb4cd49b4c4fa77085257127c8e2cee74a (patch) | |
tree | 9275f509d1dca8459ecaf7b6035130f67df74276 /src/map/script.c | |
parent | a871325dd0d55160996124d4a67c7ba23d748be0 (diff) | |
download | hercules-08d47edb4cd49b4c4fa77085257127c8e2cee74a.tar.gz hercules-08d47edb4cd49b4c4fa77085257127c8e2cee74a.tar.bz2 hercules-08d47edb4cd49b4c4fa77085257127c8e2cee74a.tar.xz hercules-08d47edb4cd49b4c4fa77085257127c8e2cee74a.zip |
[Optimized]:
- clif_specialeffect to use the enums.
[Improved]:
- buildin_specialeffect and buildin_specialeffect2 to accept effect area definition.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6855 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c index 41d84a92a..1707b59eb 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -669,8 +669,8 @@ struct { {buildin_petskillsupport,"petskillsupport","iiiii"}, // [Skotlex] {buildin_skilleffect,"skilleffect","ii"}, // skill effect [Celest] {buildin_npcskilleffect,"npcskilleffect","iiii"}, // npc skill effect [Valaris] - {buildin_specialeffect,"specialeffect","i"}, // npc skill effect [Valaris] - {buildin_specialeffect2,"specialeffect2","i"}, // skill effect on players[Valaris] + {buildin_specialeffect,"specialeffect","i*"}, // npc skill effect [Valaris] + {buildin_specialeffect2,"specialeffect2","i*"}, // skill effect on players[Valaris] {buildin_nude,"nude",""}, // nude command [Valaris] {buildin_mapwarp,"mapwarp","ssii"}, // Added by RoVeRT {buildin_inittimer,"inittimer",""}, @@ -8646,7 +8646,7 @@ int buildin_specialeffect(struct script_state *st) if(bl==NULL) return 0; - clif_specialeffect(bl,conv_num(st,& (st->stack->stack_data[st->start+2])), 0); + clif_specialeffect(bl,conv_num(st,& (st->stack->stack_data[st->start+2])), ((st->end > st->start+3)?conv_num(st,& (st->stack->stack_data[st->start+3])):AREA)); return 0; } @@ -8658,7 +8658,7 @@ int buildin_specialeffect2(struct script_state *st) if(sd==NULL) return 0; - clif_specialeffect(&sd->bl,conv_num(st,& (st->stack->stack_data[st->start+2])), 0); + clif_specialeffect(&sd->bl,conv_num(st,& (st->stack->stack_data[st->start+2])), ((st->end > st->start+3)?conv_num(st,& (st->stack->stack_data[st->start+3])):AREA)); return 0; } |