diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/main.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 8fc2accc1..2e3e03b0a 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -426,6 +426,15 @@ function script Exception { .@msg$=getarg(0); .@gf=getarg(1,RB_DEFAULT); + // Avoid self-errors + if (!playerattached()) { + if (.@gf & RB_DISPBOTTOM) + .@gf = .@gf ^ RB_DISPBOTTOM; + if (.@gf & RB_SPEECH) + .@gf = .@gf ^ RB_SPEECH; + } + + // Main protocols if (.@gf & RB_DISPBOTTOM) dispbottom("ERROR: "+.@msg$); |