From c005f0e18cfba8064a59eb65f908a5b0ada09b40 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 1 Jun 2018 13:15:35 -0300 Subject: Lemme guess... Is this an order bug? --- npc/functions/mobhunter.txt | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/npc/functions/mobhunter.txt b/npc/functions/mobhunter.txt index 341839178..3c6cbf952 100644 --- a/npc/functions/mobhunter.txt +++ b/npc/functions/mobhunter.txt @@ -2,6 +2,27 @@ // Author: Jesusalva // Desc: Grand Hunter Quest Utils +// MobID +function script GHQ_GetQuestIDByMonsterID { + switch (getarg(0)) { + case Maggot: + return 1; + break; + case Snake: + return 2; + break; + case Scorpion: + return 3; + break; + default: + debugmes "Invalid mob ID: " + getarg(0); + dispbottom l("ERROR, Please report: GHQ GQID: Invalid ID: @@", getarg(0)); + return 0; + break; + } + +} + // MobID, Place, Prize function script GHQ_Assign { .@id=GHQ_GetQuestIDByMonsterID(getarg(0)); @@ -27,24 +48,3 @@ function script GHQ_Assign { } -// MobID -function script GHQ_GetQuestIDByMonsterID { - switch (getarg(0)) { - case Maggot: - return 1; - break; - case Snake: - return 2; - break; - case Scorpion: - return 3; - break; - default: - debugmes "Invalid mob ID: " + getarg(0); - dispbottom l("ERROR, Please report: GHQ GQID: Invalid ID: @@", getarg(0)); - return 0; - break; - } - -} - -- cgit v1.2.3-70-g09d2