summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/mobhunter.txt42
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;
- }
-
-}
-