From 7788233c91ef4af7c2459982d84130da1fbcf912 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 16 Jun 2018 00:07:49 -0300 Subject: Move arguments to their own local var, so code is easier to understand. --- npc/functions/mobhunter.txt | 12 +++++++++--- 1 file 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; -- cgit v1.2.3-60-g2f50