summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/mobhunter.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/npc/functions/mobhunter.txt b/npc/functions/mobhunter.txt
index 6f99c5451..4cd58f6c5 100644
--- a/npc/functions/mobhunter.txt
+++ b/npc/functions/mobhunter.txt
@@ -54,18 +54,21 @@ function script GHQ_GetMonsterIDByQuestID {
// MobID, Place, Prize
function script GHQ_Assign {
.@id=GHQ_GetQuestIDByMonsterID(getarg(0));
+ .@q=getq(General_Hunter);
+ .@p=getq2(General_Hunter);
+ .@m=GHQ_GetMonsterIDByQuestID(.@q);
next;
- //mesq l("Current Quest Progress: @@/10,000 kills", getq2(General_Hunter));
+ //mesq l("Current Quest Progress: @@/10,000 kills", .@p);
mesn;
mes l("I represent the @@ Hunters. We hunt @@.", getarg(1), getmonsterlink(getarg(0)));
mes l("The great prize is @@. It can be claimed with Aidan, on Tulimshar.", getarg(2));
- if (getq(General_Hunter) == .@id) {
- mes l("You are currently hunting @@/10000 @@. When done, remember to claim rewards with Aidan, on Tulimshar!", getq2(General_Hunter), getmonsterlink(GHQ_GetMonsterIDByQuestID(getq(General_Hunter))));
+ if (.@q == .@id) {
+ mes l("You are currently hunting @@/10000 @@. When done, remember to claim rewards with Aidan, on Tulimshar!", .@p, getmonsterlink(.@m));
next;
closedialog;
goodbye;
}
- if (getq(General_Hunter)) mes l("You are currently hunting @@/10000 @@. Do you want to switch?", getq2(General_Hunter), getmonsterlink(GHQ_GetMonsterIDByQuestID(getq(General_Hunter))));
+ if (.@q) mes l("You are currently hunting @@/10000 @@. Do you want to switch?", .@p, getmonsterlink(.@m));
select
l("I'm not interested."),
rif(GHMEMO[.@id] < 10000,l("I'll hunt them for you."));