summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-02 10:55:27 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-02 10:55:27 -0300
commit46bbdfe15230da4d8abe41faf04c32fb42c3ad84 (patch)
tree55f277983d2f547fce985956daab75b5533c382f /npc/functions/util.txt
parent9a348a1fadefb5481f08b4891091fdabd6abc4ec (diff)
downloadserverdata-46bbdfe15230da4d8abe41faf04c32fb42c3ad84.tar.gz
serverdata-46bbdfe15230da4d8abe41faf04c32fb42c3ad84.tar.bz2
serverdata-46bbdfe15230da4d8abe41faf04c32fb42c3ad84.tar.xz
serverdata-46bbdfe15230da4d8abe41faf04c32fb42c3ad84.zip
Use Exception() in some places
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 3f4ab0a09..1c6652a7e 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -667,9 +667,18 @@ function script Exception {
if (.@gf & RB_SPEECH)
mesc("ERROR, REPORT ME! "+.@msg$, 1);
- if (.@gf & RB_PLEASEREPORT)
+ if (.@gf & RB_IRCBROADCAST)
+ channelmes("#world", "Error in script: "+.@msg$);
+
+ if (.@gf & RB_GLOBALANNOUNCE)
+ announce("Error in script: "+.@msg$, bc_all);
+
+ if (.@gf & RB_PLEASEREPORT|RB_DISPBOTTOM)
dispbottom("Please take a screenshot and report this bug, explaining how it happened.");
+ if (.@gf & RB_PLEASEREPORT|RB_SPEECH)
+ mesc("Please take a screenshot and report this bug, explaining how it happened."), 1;
+
if (.@gf & RB_ISFATAL) {
if (.@gf & RB_SPEECH) {
mesc l("This error is fatal."), 1;