summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-15 07:31:38 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-15 07:31:38 -0300
commitb35b4ed77eeb1748787c79c4d75813a3c203f6b2 (patch)
treea988fa60d1b4c218d5b7b8c8e8c39cdbb4fd5ad0 /npc/commands
parente8e96e0948943d2d56a6ba6d5096ea65540b88f1 (diff)
downloadserverdata-b35b4ed77eeb1748787c79c4d75813a3c203f6b2.tar.gz
serverdata-b35b4ed77eeb1748787c79c4d75813a3c203f6b2.tar.bz2
serverdata-b35b4ed77eeb1748787c79c4d75813a3c203f6b2.tar.xz
serverdata-b35b4ed77eeb1748787c79c4d75813a3c203f6b2.zip
[skip ci] intervene
Diffstat (limited to 'npc/commands')
-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} )