diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-01 13:15:35 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-01 13:15:35 -0300 |
commit | c005f0e18cfba8064a59eb65f908a5b0ada09b40 (patch) | |
tree | a719c238774af427f16999f056179fea860b19d7 /npc | |
parent | c9215b36653152d73ee040615b8aaeadfe2d392b (diff) | |
download | serverdata-c005f0e18cfba8064a59eb65f908a5b0ada09b40.tar.gz serverdata-c005f0e18cfba8064a59eb65f908a5b0ada09b40.tar.bz2 serverdata-c005f0e18cfba8064a59eb65f908a5b0ada09b40.tar.xz serverdata-c005f0e18cfba8064a59eb65f908a5b0ada09b40.zip |
Lemme guess... Is this an order bug?
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/mobhunter.txt | 42 |
1 files 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; - } - -} - |