diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-07-06 17:08:47 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-07-06 17:08:47 -0300 |
commit | 3d046f4fc73a3439b3aad78861b84350f58735ff (patch) | |
tree | 5aaca1389ed8b560e6187c82582357028c20d7be | |
parent | 4e24e1226870c7f3b25a849b7ff0c2b1a9217957 (diff) | |
download | serverdata-3d046f4fc73a3439b3aad78861b84350f58735ff.tar.gz serverdata-3d046f4fc73a3439b3aad78861b84350f58735ff.tar.bz2 serverdata-3d046f4fc73a3439b3aad78861b84350f58735ff.tar.xz serverdata-3d046f4fc73a3439b3aad78861b84350f58735ff.zip |
Bug %%e
-rw-r--r-- | npc/023-3-1/logic.txt | 4 | ||||
-rw-r--r-- | npc/commands/kami.txt | 16 |
2 files changed, 17 insertions, 3 deletions
diff --git a/npc/023-3-1/logic.txt b/npc/023-3-1/logic.txt index 4adf97ea1..5e62775cb 100644 --- a/npc/023-3-1/logic.txt +++ b/npc/023-3-1/logic.txt @@ -57,7 +57,7 @@ OnTouch: 023-3-1,45,63,0 script #Ambush02331 NPC_HIDDEN,10,0,{ OnTouch: .@q=getq(FrostiaQuest_Homunculus); - if (.@q < 3) { + if (.@q < 2) { dispbottom l("Error, cheater detected"); percentheal -100, -100; end; @@ -88,7 +88,7 @@ OnTouch: if (instance_id() < 0) end; .@q=getq(FrostiaQuest_Homunculus); - if (.@q < 3) { + if (.@q < 2) { dispbottom l("Error, cheater detected"); percentheal -100, -100; end; 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} ) |