From 943b66a0ccf2ead307c99bde513b3acc5bea958e Mon Sep 17 00:00:00 2001 From: NetSysFire <59517351+NetSysFire@users.noreply.github.com> Date: Mon, 26 Sep 2022 09:31:35 +0200 Subject: actually fix the killamount thing --- npc/003-10/kreist.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/npc/003-10/kreist.txt b/npc/003-10/kreist.txt index c4ca9b312..834433d20 100644 --- a/npc/003-10/kreist.txt +++ b/npc/003-10/kreist.txt @@ -170,33 +170,33 @@ function script Guardhouse_RandQuestCheck { if (getq(General_MobHunting1) == .@d && getq2(General_MobHunting1) == .@mobId) { .@q3=getq3(General_MobHunting1); - .@killamount=get_byte(.@q3, 1); - set_byte(.@q3, 1, min(255, .@killamount+1)); + .@killamount=get_byte(.@q3, 1)+1; + set_byte(.@q3, 1, min(255, .@killamount)); setq3 General_MobHunting1, .@q3; if (!(.@killamount % 5)) - dispbottom l("%d/%d %s killed", .@killamount+1, get_byte(.@q3, 0), getmonsterlink(.@mobId)); + dispbottom l("%d/%d %s killed", .@killamount, get_byte(.@q3, 0), getmonsterlink(.@mobId)); } // Medium Task if (getq(General_MobHunting2) == .@d && getq2(General_MobHunting2) == .@mobId) { .@q3=getq3(General_MobHunting2); - .@killamount=get_byte(.@q3, 1); - set_byte(.@q3, 1, .@killamount+1); + .@killamount=get_byte(.@q3, 1)+1; + set_byte(.@q3, 1, .@killamount); setq3 General_MobHunting2, .@q3; if (!(.@killamount % 5)) - dispbottom l("%d/%d %s killed", .@killamount+1, get_byte(.@q3, 0), getmonsterlink(.@mobId)); + 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); - .@killamount=get_byte(.@q3, 1); - set_byte(.@q3, 1, .@killamount+1); + .@killamount=get_byte(.@q3, 1)+1; + set_byte(.@q3, 1, .@killamount); setq3 General_MobHunting3, .@q3; if (!(.@killamount % 5)) - dispbottom l("%d/%d %s killed", .@killamount+1, get_byte(.@q3, 0), getmonsterlink(.@mobId)); + dispbottom l("%d/%d %s killed", .@killamount, get_byte(.@q3, 0), getmonsterlink(.@mobId)); } // Frostia's Task -- cgit v1.2.3-60-g2f50