diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-02 10:55:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-02 10:55:27 -0300 |
commit | 46bbdfe15230da4d8abe41faf04c32fb42c3ad84 (patch) | |
tree | 55f277983d2f547fce985956daab75b5533c382f /npc/functions/mobhunter.txt | |
parent | 9a348a1fadefb5481f08b4891091fdabd6abc4ec (diff) | |
download | serverdata-46bbdfe15230da4d8abe41faf04c32fb42c3ad84.tar.gz serverdata-46bbdfe15230da4d8abe41faf04c32fb42c3ad84.tar.bz2 serverdata-46bbdfe15230da4d8abe41faf04c32fb42c3ad84.tar.xz serverdata-46bbdfe15230da4d8abe41faf04c32fb42c3ad84.zip |
Use Exception() in some places
Diffstat (limited to 'npc/functions/mobhunter.txt')
-rw-r--r-- | npc/functions/mobhunter.txt | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/npc/functions/mobhunter.txt b/npc/functions/mobhunter.txt index 464a88ef9..e7bf03421 100644 --- a/npc/functions/mobhunter.txt +++ b/npc/functions/mobhunter.txt @@ -30,9 +30,7 @@ function script GHQ_GetQuestIDByMonsterID { return 8; break; default: - debugmes "Invalid mob ID: " + getarg(0); - dispbottom l("ERROR, Please report: GHQ GQID: Invalid ID: @@", getarg(0)); - return 0; + return Exception("GHQ GQID: Invalid ID: "+getarg(0), RB_DEFAULT^RB_PLEASEREPORT|RB_ISFATAL); break; } @@ -66,9 +64,7 @@ function script GHQ_GetMonsterIDByQuestID { return MountainSnake; break; default: - debugmes "Invalid quest ID: " + getarg(0); - dispbottom l("ERROR, Please report: GHQ GMID: Invalid ID: @@", getarg(0)); - return 0; + return Exception("GHQ GMID: Invalid ID: "+getarg(0), RB_DEFAULT^RB_PLEASEREPORT|RB_ISFATAL); break; } |