summaryrefslogtreecommitdiff
path: root/npc/commands/kami.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/kami.txt')
-rw-r--r--npc/commands/kami.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/npc/commands/kami.txt b/npc/commands/kami.txt
index 5d70dde0d..4591e62d8 100644
--- a/npc/commands/kami.txt
+++ b/npc/commands/kami.txt
@@ -55,6 +55,18 @@ OnInstCheck:
dispbottom has_instance2(.@request$);
end;
+OnPurify:
+ getmapxy(.@m$, .@x, .@y, 0);
+ .@r=60;
+ .@b=BL_PET;
+
+ .@c=getunits(.@b, .@mbs, false, .@m$, .@x-.@r, .@y-.@r, .@x+.@r, .@y+.@r);
+ for (.@i = 0; .@i < .@c; .@i++) {
+ specialeffect(FX_LIGHTNING, AREA, .@mbs[.@i]);
+ unitkill(.@mbs[.@i]);
+ }
+ end;
+
OnInit:
bindatcmd "k", "@k::OnCall", 60, 80, 1;
bindatcmd "servmsg", "@k::OnServMsg", 80, 99, 1;
@@ -62,6 +74,8 @@ OnInit:
bindatcmd "instcheck", "@k::OnInstCheck", 99, 100, 1;
bindatcmd "instdestr", "@k::OnInstDestroy", 99, 100, 1;
+ bindatcmd "burnlivio", "@k::OnPurify", 99, 100, 1;
+ end;
}
// kamibroadcast( message{, sender} )