diff options
-rw-r--r-- | npc/003-10/kreist.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/003-10/kreist.txt b/npc/003-10/kreist.txt index 21fc18745..be3ed7e0c 100644 --- a/npc/003-10/kreist.txt +++ b/npc/003-10/kreist.txt @@ -171,7 +171,7 @@ function script Guardhouse_RandQuestCheck { getq2(General_MobHunting1) == .@mobId) { .@q3=getq3(General_MobHunting1); .@killamount=get_byte(.@q3, 1); - set_byte(.@q3, 1, .@killamount+1); + set_byte(.@q3, 1, min(255, .@killamount+1)); setq3 General_MobHunting1, .@q3; if (!(.@killamount % 5)) dispbottom l("%d/%d %s killed", .@killamount, get_byte(.@q3, 0), getmonsterlink(.@mobId)); |