diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-16 00:05:49 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-16 00:05:49 -0300 |
commit | da88cb0bd57ebf1bd7bd19056cb1d057b9417a96 (patch) | |
tree | 0e2ad89c87e2fb75bb8858b216aa0bddb4c4abf7 | |
parent | f68a894825e63cbde116e6eaa06ffaa09557f476 (diff) | |
download | serverdata-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.
-rw-r--r-- | npc/functions/mobhunter.txt | 11 |
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.")); |