From b30b4f5f1bd8c8559fe1d7422e9811f123d69c82 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 4 Jan 2019 22:24:19 -0200 Subject: Consistency when killing House Maggots. Use a true killmonster() function on 005-3 This means buggy house maggots won't be killed by bug bomb. --- npc/005-3/barrel.txt | 2 +- npc/005-7/trainer.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/npc/005-3/barrel.txt b/npc/005-3/barrel.txt index d01200f3f..7330129de 100644 --- a/npc/005-3/barrel.txt +++ b/npc/005-3/barrel.txt @@ -37,7 +37,7 @@ L_BarrelTally: message strcharinfo(0), "You found the bug bomb."; specialeffect(14); specialeffect(51); - killmonsterall("005-3"); + killmonster("005-3", "Trainer::OnKillHouseMaggot"); setq CandorQuest_Barrel, 3; } @rand = rand(7); diff --git a/npc/005-7/trainer.txt b/npc/005-7/trainer.txt index ca8a8b24d..c7005eb4c 100644 --- a/npc/005-7/trainer.txt +++ b/npc/005-7/trainer.txt @@ -98,7 +98,7 @@ L_Trainment: } else if (.@q == 3) { mesq l("Less maggots means more food to the town. So, this time the monsters will be a little stronger."); next; - mesq l("In the storehouse, kill 5 @@. They keep respawning and are annoying.", getmonsterlink(HouseMaggot)); + mesq l("In the storehouse, kill 4 @@. They keep respawning and are annoying.", getmonsterlink(HouseMaggot)); setq CandorQuest_Trainer, 4, 0; } else if (.@q == 4) { mesq l("You are killing @@ at the storehouse.", getmonsterlink(HouseMaggot)); @@ -514,12 +514,12 @@ OnKillHouseMaggot: .@q=getq(CandorQuest_Trainer); .@k=getq2(CandorQuest_Trainer); // Get number of kills (via getq2) if (.@q == 4) { - if (.@k+1 >= 5) { + if (.@k+1 >= 4) { trainer_max_kills(); message strcharinfo(0), l("All house maggots are dead!"); } else { trainer_add_kills(); - message strcharinfo(0), l("@@/5 House Maggots", .@k+1); + message strcharinfo(0), l("@@/4 House Maggots", .@k+1); } } else { if (is_staff()) -- cgit v1.2.3-70-g09d2