From 46bbdfe15230da4d8abe41faf04c32fb42c3ad84 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 2 May 2019 10:55:27 -0300 Subject: Use Exception() in some places --- npc/functions/mobhunter.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'npc/functions/mobhunter.txt') 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; } -- cgit v1.2.3-60-g2f50