From fa3736643aa254064cbd64cbce3a8ec3e7bf6d0d Mon Sep 17 00:00:00 2001 From: NetSysFire <59517351+NetSysFire@users.noreply.github.com> Date: Sat, 17 Sep 2022 21:53:22 +0200 Subject: setq3 properly --- npc/003-10/kreist.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/npc/003-10/kreist.txt b/npc/003-10/kreist.txt index 2c02c901a..9f15b2c19 100644 --- a/npc/003-10/kreist.txt +++ b/npc/003-10/kreist.txt @@ -105,7 +105,6 @@ L_QuestMaster: // Explanation why the city needs that if (.@q2 == Maggot ) { mesq l("%ss have infested the store houses, spilling onto the streets. Stop them from destroying even more food.", getmonsterlink(.@q2)); - .@killamount=30; set_byte(.@q3, 0, 30); } else if (.@q2 == GiantMaggot) { mesq l("The %ss are the cause for all the little maggots to appear, so we need you to stop the problem at the source.", getmonsterlink(.@q2)); @@ -137,6 +136,7 @@ L_QuestMaster: } else if (.@q2 == DesertLogHead) { mesq l("The %ss are growing and disturbing the already rather infertile desert soil, preventing our crops from growing.", getmonsterlink(.@q2)); } + setq3 .@q3; mesq l("So, please kill %d/%d %ss for us and make the city a better place!", get_byte(.@q3, 1), get_byte(.@q3, 0), getmonsterlink(.@q2)); close; @@ -171,7 +171,8 @@ function script Guardhouse_RandQuestCheck { getq2(General_MobHunting1) == .@mobId) { .@q3=getq3(General_MobHunting1); .@killamount=get_byte(.@q3, 1); - setq3 General_MobHunting1, set_byte(.@q3, 1, .@killamount+1); + set_byte(.@q3, 1, .@killamount+1); + setq3 General_MobHunting1 .@q3; if (!(.@killamount % 5)) dispbottom l("%d/%d %s killed", .@killamount, get_byte(.@q3, 0), getmonsterlink(.@mobId)); } -- cgit v1.2.3-60-g2f50