From b2c3b6b1cba18b33141b3e34138079e404aad874 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 1 Jun 2018 13:35:06 -0300 Subject: Bugfix --- npc/functions/mobhunter.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'npc/functions/mobhunter.txt') 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)); -- cgit v1.2.3-60-g2f50