summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level2-summon-snakes.txt
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-11-11 17:18:14 -0500
committergumi <git@gumi.ca>2018-11-11 22:36:15 -0500
commit0e1a7f000ccdcf6f84ec66192b025f261772cdb3 (patch)
tree7367604274d14b0fdabae946985ef30fc71aa8de /world/map/npc/magic/level2-summon-snakes.txt
parent15e556361dabcee7d215cb6aeb2f157d30c0963a (diff)
downloadserverdata-0e1a7f000ccdcf6f84ec66192b025f261772cdb3.tar.gz
serverdata-0e1a7f000ccdcf6f84ec66192b025f261772cdb3.tar.bz2
serverdata-0e1a7f000ccdcf6f84ec66192b025f261772cdb3.tar.xz
serverdata-0e1a7f000ccdcf6f84ec66192b025f261772cdb3.zip
give unique ids to magic spell effects
Diffstat (limited to 'world/map/npc/magic/level2-summon-snakes.txt')
-rw-r--r--world/map/npc/magic/level2-summon-snakes.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/world/map/npc/magic/level2-summon-snakes.txt b/world/map/npc/magic/level2-summon-snakes.txt
index 952f9446..8756355a 100644
--- a/world/map/npc/magic/level2-summon-snakes.txt
+++ b/world/map/npc/magic/level2-summon-snakes.txt
@@ -15,8 +15,7 @@ OnCast:
addtimer 15000, "Magic Timer::OnClear"; // set the new debuff
callfunc "adjust_spellpower";
set Sp, Sp - 40;
- misceffect FX_MAGIC_DARKRED, strcharinfo(0);
- misceffect FX_PENTAGRAM_BUILDUP, strcharinfo(0);
+ misceffect FX_MAGIC_SNAKE_CAST, strcharinfo(0);
callfunc "magic_exp";
set .@puppet$, "#"+strnpcinfo(0)+"#"+BL_ID;
set .@puppet, puppet(getmap(), POS_X, POS_Y, .@puppet$, 127);
@@ -32,7 +31,7 @@ OnSummon:
if (!(isloggedin(.master))) destroy;
if(get(Hp, .master) < 1) destroy; // destroy if master is missing
if(getmap(.master) != strnpcinfo(3)) destroy; // destroy if master left the map
- specialeffect FX_PENTAGRAM_BURST;
+ specialeffect FX_MAGIC_SNAKE_SPAWN;
set .@i, 0;
set .@x, getnpcx();
set .@y, getnpcy();
@@ -44,7 +43,12 @@ OnDestroy:
destroy;
S_SummonAll:
- summon .@map$, rand(.@x-2,.@x+2), rand(.@y-2,.@y+2), .master, 1010, 2, .lifetime;
+ set .@sn, rand(0, 3);
+
+ if (.@sn == 0) summon .@map$, rand(.@x-2,.@x+2), rand(.@y-2,.@y+2), .master, 1021, 2, .lifetime;
+ elif (.@sn == 1) summon .@map$, rand(.@x-2,.@x+2), rand(.@y-2,.@y+2), .master, 1010, 2, .lifetime;
+ elif (.@sn == 2) summon .@map$, rand(.@x-2,.@x+2), rand(.@y-2,.@y+2), .master, 1026, 2, .lifetime;
+ elif (.@sn == 3) summon .@map$, rand(.@x-2,.@x+2), rand(.@y-2,.@y+2), .master, 1034, 2, .lifetime;
set .@i, .@i + 1;
if (.@i < .count) goto S_SummonAll;
destroy;