diff options
-rw-r--r-- | npc/functions/mobhunter.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/npc/functions/mobhunter.txt b/npc/functions/mobhunter.txt index 4cd58f6c5..e3cf0d4d1 100644 --- a/npc/functions/mobhunter.txt +++ b/npc/functions/mobhunter.txt @@ -53,15 +53,21 @@ function script GHQ_GetMonsterIDByQuestID { // MobID, Place, Prize function script GHQ_Assign { - .@id=GHQ_GetQuestIDByMonsterID(getarg(0)); + // Arguments + .@mobId =getarg(0); + .@loc$ =getarg(1); + .@prize$=getarg(2); + + // Current Quest Status + vars + .@id=GHQ_GetQuestIDByMonsterID(.@mobId); .@q=getq(General_Hunter); .@p=getq2(General_Hunter); .@m=GHQ_GetMonsterIDByQuestID(.@q); next; //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)); + mes l("I represent the @@ Hunters. We hunt @@.", .@loc$, getmonsterlink(.@mobId)); + mes l("The great prize is @@. It can be claimed with Aidan, on Tulimshar.", .@prize$); if (.@q == .@id) { mes l("You are currently hunting @@/10000 @@. When done, remember to claim rewards with Aidan, on Tulimshar!", .@p, getmonsterlink(.@m)); next; |