diff options
-rw-r--r-- | npc/003-1/aidan.txt | 2 | ||||
-rw-r--r-- | npc/functions/mobhunter.txt | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/npc/003-1/aidan.txt b/npc/003-1/aidan.txt index 62d99e3c7..1a2b0b310 100644 --- a/npc/003-1/aidan.txt +++ b/npc/003-1/aidan.txt @@ -104,7 +104,7 @@ L_Assign: close; L_Finish: - mes l("Current progress: @@/10000 @@", getq2(General_Hunter), getmonsterlink(GHQ_GetQuestIDByMonsterID(getq(General_Hunter)))); + mes l("Current progress: @@/10000 @@", getq2(General_Hunter), getmonsterlink(GHQ_GetMonsterIDByQuestID(getq(General_Hunter)))); GHMEMO[getq(General_Hunter)]=getq2(General_Hunter); switch (getq(General_Hunter)) { case 1: diff --git a/npc/functions/mobhunter.txt b/npc/functions/mobhunter.txt index 3c6cbf952..aaf344e7b 100644 --- a/npc/functions/mobhunter.txt +++ b/npc/functions/mobhunter.txt @@ -23,6 +23,27 @@ function script GHQ_GetQuestIDByMonsterID { } +// QuestID (basically reverses the previous code) +function script GHQ_GetMonsterIDByQuestID { + switch (getarg(0)) { + case 1: + return Maggot; + break; + case 2: + return Snake; + break; + case 3: + return Snake; + break; + default: + debugmes "Invalid quest ID: " + getarg(0); + dispbottom l("ERROR, Please report: GHQ GMID: Invalid ID: @@", getarg(0)); + return 0; + break; + } + +} + // MobID, Place, Prize function script GHQ_Assign { .@id=GHQ_GetQuestIDByMonsterID(getarg(0)); |