summaryrefslogtreecommitdiff
path: root/npc/functions/gmbot.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-19 09:34:52 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-19 09:34:52 -0300
commit9b6ed08a927644777b50bb4e6496b811566a48cb (patch)
treefb29f6eb9eb50cdf97401fdb75be92e33a38394e /npc/functions/gmbot.txt
parent716e949a1566a0193008412735691de47a5b9b8b (diff)
downloadserverdata-9b6ed08a927644777b50bb4e6496b811566a48cb.tar.gz
serverdata-9b6ed08a927644777b50bb4e6496b811566a48cb.tar.bz2
serverdata-9b6ed08a927644777b50bb4e6496b811566a48cb.tar.xz
serverdata-9b6ed08a927644777b50bb4e6496b811566a48cb.zip
Double check gmbot and make a runtime error.
Diffstat (limited to 'npc/functions/gmbot.txt')
-rw-r--r--npc/functions/gmbot.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/functions/gmbot.txt b/npc/functions/gmbot.txt
index eca1ad388..759860f94 100644
--- a/npc/functions/gmbot.txt
+++ b/npc/functions/gmbot.txt
@@ -124,6 +124,9 @@ OnTimer90000:
.@y = rand(20, 300);
.@e+=1;
} while (!checknpccell(.mp$, .@x, .@y, cell_chkpass));
+ if (!checknpccell(.mp$, .@x, .@y, cell_chkpass)) {
+ Exception("gm.bot runtime error: GM_ERR_128 highlight @Jesusalva", RB_DEBUGMES|RB_IRCBROADCAST); .mp$="boss"; .@x=45; .@y=45;
+ }
unitwarp($@MK, .mp$, .@x, .@y);
sleep(50); // For some reason or other, adding sleep(norid) and sleep2(rid).
.nearby=getusers(8);