summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-16 00:05:49 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-16 00:05:49 -0300
commitda88cb0bd57ebf1bd7bd19056cb1d057b9417a96 (patch)
tree0e2ad89c87e2fb75bb8858b216aa0bddb4c4abf7 /npc
parentf68a894825e63cbde116e6eaa06ffaa09557f476 (diff)
downloadserverdata-da88cb0bd57ebf1bd7bd19056cb1d057b9417a96.tar.gz
serverdata-da88cb0bd57ebf1bd7bd19056cb1d057b9417a96.tar.bz2
serverdata-da88cb0bd57ebf1bd7bd19056cb1d057b9417a96.tar.xz
serverdata-da88cb0bd57ebf1bd7bd19056cb1d057b9417a96.zip
Add more local variables to GHQ_Assign to make script more readable.
Diffstat (limited to 'npc')
-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."));