From 3d046f4fc73a3439b3aad78861b84350f58735ff Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 6 Jul 2019 17:08:47 -0300 Subject: Bug %%e --- npc/commands/kami.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'npc/commands/kami.txt') diff --git a/npc/commands/kami.txt b/npc/commands/kami.txt index 503c405c1..01a28aff5 100644 --- a/npc/commands/kami.txt +++ b/npc/commands/kami.txt @@ -44,10 +44,24 @@ OnBuff: } end; +OnInstDestroy: + .@request = implode(.@atcmd_parameters$, " "); + if (.@request != 0) + instance_destroy(.@request); + end; + +OnInstCheck: + .@request$ = implode(.@atcmd_parameters$, " "); + dispbottom has_instance2(.@request$); + end; + OnInit: bindatcmd "k", "@k::OnCall", 80, 80, 1; bindatcmd "servmsg", "@k::OnServMsg", 99, 99, 1; - bindatcmd "blessing", "@k::OnBuff", 100, 100, 1; + bindatcmd "blessing", "@k::OnBuff", 99, 100, 1; + + bindatcmd "instcheck", "@k::OnInstCheck", 99, 100, 1; + bindatcmd "instdestr", "@k::OnInstDestroy", 99, 100, 1; } // kamibroadcast( message{, sender} ) -- cgit v1.2.3-70-g09d2