summaryrefslogtreecommitdiff
path: root/npc/functions/mobhunter.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-01 13:35:06 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-01 13:35:06 -0300
commitb2c3b6b1cba18b33141b3e34138079e404aad874 (patch)
tree833dbb8e78cdb0995549fb5f95ffe7ed48aa87e4 /npc/functions/mobhunter.txt
parentc005f0e18cfba8064a59eb65f908a5b0ada09b40 (diff)
downloadserverdata-b2c3b6b1cba18b33141b3e34138079e404aad874.tar.gz
serverdata-b2c3b6b1cba18b33141b3e34138079e404aad874.tar.bz2
serverdata-b2c3b6b1cba18b33141b3e34138079e404aad874.tar.xz
serverdata-b2c3b6b1cba18b33141b3e34138079e404aad874.zip
Bugfix
Diffstat (limited to 'npc/functions/mobhunter.txt')
-rw-r--r--npc/functions/mobhunter.txt21
1 files changed, 21 insertions, 0 deletions
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));