summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-09-03 13:32:24 -0300
committerJesusaves <cpntb1@ymail.com>2018-09-03 13:32:24 -0300
commit7683842afc9fb57fb6f423cb1cf8f694318d6fc4 (patch)
tree8f1cd70a32e1a47df6e980803cdac05bbe5afb1f /npc
parent85d50bf01ece493cdd24a7368db52fadb22cd7de (diff)
downloadserverdata-7683842afc9fb57fb6f423cb1cf8f694318d6fc4.tar.gz
serverdata-7683842afc9fb57fb6f423cb1cf8f694318d6fc4.tar.bz2
serverdata-7683842afc9fb57fb6f423cb1cf8f694318d6fc4.tar.xz
serverdata-7683842afc9fb57fb6f423cb1cf8f694318d6fc4.zip
Fix broken script
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/gmbot.txt74
1 files changed, 37 insertions, 37 deletions
diff --git a/npc/functions/gmbot.txt b/npc/functions/gmbot.txt
index 1bce26568..3b21aaad1 100644
--- a/npc/functions/gmbot.txt
+++ b/npc/functions/gmbot.txt
@@ -23,7 +23,7 @@ OnInit:
// Variables only for this NPC
.users=getusers(1);
.nearby=getusers(8);
- .map$="boss";
+ .@mp$="boss";
.aid="200000";
.cid="150002";
// Constants
@@ -35,9 +35,9 @@ OnInit:
OnTimer62000:
// Regenerate some data, and kill spurious mobs
.users=getusers(1);
- if (mobcount(.map$, "Monster King::OnSlaveDie")) {
+ if (mobcount(.@mp$, "Monster King::OnSlaveDie")) {
announce ("Monster King: Noobs, you are all a bunch of noobs!"), bc_map|bc_npc;
- killmonster(.map$, "Monster King::OnSlaveDie");
+ killmonster(.@mp$, "Monster King::OnSlaveDie");
}
// We are on an event, so skip this loop
@@ -61,54 +61,54 @@ OnTimer62000:
$@MK_AGGRO+=.users;
// Mana Stone
- if (.map$ == "011-1")
+ if (.@mp$ == "011-1")
enablenpc "Mana Stone";
// Select a random map. Never shows up at Candor and cities, nor indoors. Not all caves either.
.@m=rand(1,30);
switch (.@m) {
// MPE
- case 1: .map$="001-1"; break;
- case 2: .map$="001-3"; break;
- case 3: .map$="001-4"; break;
- case 4: .map$="001-5"; break;
- case 5: .map$="001-6"; break;
- case 6: .map$="001-7"; break;
+ case 1: .@mp$="001-1"; break;
+ case 2: .@mp$="001-3"; break;
+ case 3: .@mp$="001-4"; break;
+ case 4: .@mp$="001-5"; break;
+ case 5: .@mp$="001-6"; break;
+ case 6: .@mp$="001-7"; break;
// Desert
- case 7: .map$="003-1"; break;
- case 8: .map$="003-1-3"; break;
- case 9: .map$="004-1"; break;
- case 10: .map$="004-2"; break;
- case 11: .map$="007-1"; break;
- case 12: .map$="010-1"; break;
- case 13: .map$="010-1-1"; break;
- case 14: .map$="010-2"; break;
- case 15: .map$="011-1"; break; // Special case
+ case 7: .@mp$="003-1"; break;
+ case 8: .@mp$="003-1-3"; break;
+ case 9: .@mp$="004-1"; break;
+ case 10: .@mp$="004-2"; break;
+ case 11: .@mp$="007-1"; break;
+ case 12: .@mp$="010-1"; break;
+ case 13: .@mp$="010-1-1"; break;
+ case 14: .@mp$="010-2"; break;
+ case 15: .@mp$="011-1"; break; // Special case
// Woodlands
- case 16: .map$="014-1"; break;
- case 17: .map$="014-2"; break;
- case 18: .map$="014-3"; break;
- case 19: .map$="014-4"; break;
- case 20: .map$="014-5"; break;
- case 21: .map$="015-1"; break;
- case 22: .map$="015-2"; break;
- case 23: .map$="015-3"; break;
- case 24: .map$="018-1-1"; break;
- case 25: .map$="018-2"; break;
- case 26: .map$="018-3"; break;
- case 27: .map$="018-4"; break;
- case 28: .map$="018-4-1"; break;
- default: .map$="boss"; break;
+ case 16: .@mp$="014-1"; break;
+ case 17: .@mp$="014-2"; break;
+ case 18: .@mp$="014-3"; break;
+ case 19: .@mp$="014-4"; break;
+ case 20: .@mp$="014-5"; break;
+ case 21: .@mp$="015-1"; break;
+ case 22: .@mp$="015-2"; break;
+ case 23: .@mp$="015-3"; break;
+ case 24: .@mp$="018-1-1"; break;
+ case 25: .@mp$="018-2"; break;
+ case 26: .@mp$="018-3"; break;
+ case 27: .@mp$="018-4"; break;
+ case 28: .@mp$="018-4-1"; break;
+ default: .@mp$="boss"; break;
}
// Try to warp randomly, up to 30 attempts
.@e=0;
- while (!checkcell(.map$, .@x, .@y, cell_chkpass))
+ while (!checkcell(.@mp$, .@x, .@y, cell_chkpass))
{
if (.@e == 30) {
- .map$="boss";
+ .@mp$="boss";
.@x=45;
.@y=45;
break;
@@ -117,11 +117,11 @@ OnTimer62000:
.@y = rand(20, 300);
++.@e;
}
- unitwarp($@MK, .map$, .@x, .@y);
+ unitwarp($@MK, .@mp$, .@x, .@y);
.nearby=getusers(8);
// Handle Mana Stone
- if (.map$ == "011-1")
+ if (.@mp$ == "011-1")
disablenpc "Mana Stone";
// Decide if we should have an event here