summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNetSysFire <59517351+NetSysFire@users.noreply.github.com>2022-09-17 22:23:37 +0200
committerJesusaves <cpntb1@ymail.com>2022-09-25 21:54:01 -0300
commitbb9948e0cc574ec009a0357640385c569aa2a6f7 (patch)
treeaf7088a941737028634c1b5146c3380a2db8be0a
parent7e5668436023878c12ff57a57973b54f4d206502 (diff)
downloadserverdata-bb9948e0cc574ec009a0357640385c569aa2a6f7.tar.gz
serverdata-bb9948e0cc574ec009a0357640385c569aa2a6f7.tar.bz2
serverdata-bb9948e0cc574ec009a0357640385c569aa2a6f7.tar.xz
serverdata-bb9948e0cc574ec009a0357640385c569aa2a6f7.zip
apply changes to the medium and hard task
-rw-r--r--npc/003-10/kreist.txt16
1 files 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