summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-16 00:07:49 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-16 00:07:49 -0300
commit7788233c91ef4af7c2459982d84130da1fbcf912 (patch)
treeac6ffbac3bcfbb9565493c8dfce892e01088cc5c
parentda88cb0bd57ebf1bd7bd19056cb1d057b9417a96 (diff)
downloadserverdata-7788233c91ef4af7c2459982d84130da1fbcf912.tar.gz
serverdata-7788233c91ef4af7c2459982d84130da1fbcf912.tar.bz2
serverdata-7788233c91ef4af7c2459982d84130da1fbcf912.tar.xz
serverdata-7788233c91ef4af7c2459982d84130da1fbcf912.zip
Move arguments to their own local var, so code is easier to understand.
-rw-r--r--npc/functions/mobhunter.txt12
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;