From bb9948e0cc574ec009a0357640385c569aa2a6f7 Mon Sep 17 00:00:00 2001 From: NetSysFire <59517351+NetSysFire@users.noreply.github.com> Date: Sat, 17 Sep 2022 22:23:37 +0200 Subject: apply changes to the medium and hard task --- npc/003-10/kreist.txt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/npc/003-10/kreist.txt b/npc/003-10/kreist.txt index 9cc95e3da..21fc18745 100644 --- a/npc/003-10/kreist.txt +++ b/npc/003-10/kreist.txt @@ -180,19 +180,23 @@ function script Guardhouse_RandQuestCheck { // Medium Task if (getq(General_MobHunting2) == .@d && getq2(General_MobHunting2) == .@mobId) { - .@q3=getq3(General_MobHunting2)+1; + .@q3=getq3(General_MobHunting2); + .@killamount=get_byte(.@q3, 1); + set_byte(.@q3, 1, .@killamount+1); setq3 General_MobHunting2, .@q3; - if (!(.@q3 % 10)) - dispbottom l("@@/@@ @@ killed", .@q3, .@killamount, getmonsterlink(.@mobId)); + if (!(.@killamount % 5)) + dispbottom l("%d/%d %s killed", .@killamount, get_byte(.@q3, 0), getmonsterlink(.@mobId)); } // Hard Task if (getq(General_MobHunting3) == .@d && getq2(General_MobHunting3) == .@mobId) { - .@q3=getq3(General_MobHunting3)+1; + .@q3=getq3(General_MobHunting3); + .@killamount=get_byte(.@q3, 1); + set_byte(.@q3, 1, .@killamount+1); setq3 General_MobHunting3, .@q3; - if (!(.@q3 % 10)) - dispbottom l("@@/@@ @@ killed", .@q3, .@killamount, getmonsterlink(.@mobId)); + if (!(.@killamount % 5)) + dispbottom l("%d/%d %s killed", .@killamount, get_byte(.@q3, 0), getmonsterlink(.@mobId)); } // Frostia's Task -- cgit v1.2.3-60-g2f50