summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/003-10/kreist.txt18
1 files 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