summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-18 22:24:08 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-18 22:24:08 -0300
commit65dbd8f66eb174f485ef399cb5f4600ff9ef49af (patch)
tree9489149ecf9f23da2aeb1bf5d2795b4f83a30ec2 /npc
parent14439b05bd6f1606839a63e023420cedb086f805 (diff)
downloadserverdata-65dbd8f66eb174f485ef399cb5f4600ff9ef49af.tar.gz
serverdata-65dbd8f66eb174f485ef399cb5f4600ff9ef49af.tar.bz2
serverdata-65dbd8f66eb174f485ef399cb5f4600ff9ef49af.tar.xz
serverdata-65dbd8f66eb174f485ef399cb5f4600ff9ef49af.zip
Rewrite the wheel for no real reason
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/gmbot.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/npc/functions/gmbot.txt b/npc/functions/gmbot.txt
index 1211c6fd9..eca1ad388 100644
--- a/npc/functions/gmbot.txt
+++ b/npc/functions/gmbot.txt
@@ -113,9 +113,8 @@ OnTimer90000:
// Try to warp randomly, up to 30 attempts
.@e=0; .@x=0; .@y=0;
- while (!checknpccell(.mp$, .@x, .@y, cell_chkpass))
- {
- if (.@e == 30) {
+ do {
+ if (.@e >= 30) {
.mp$="boss";
.@x=45;
.@y=45;
@@ -123,8 +122,8 @@ OnTimer90000:
}
.@x = rand(20, 300);
.@y = rand(20, 300);
- ++.@e;
- }
+ .@e+=1;
+ } while (!checknpccell(.mp$, .@x, .@y, cell_chkpass));
unitwarp($@MK, .mp$, .@x, .@y);
sleep(50); // For some reason or other, adding sleep(norid) and sleep2(rid).
.nearby=getusers(8);