diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-01-11 17:45:42 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-01-11 17:45:42 -0200 |
commit | c0a48bbba20641f1161742d507807e704d823405 (patch) | |
tree | 4d1a688a4cba2ac436448d202eb9e62d26f2ce51 /npc/functions/gmbot.txt | |
parent | 63110ff1cfc3dde7ab5c5229591be1840520674a (diff) | |
download | serverdata-c0a48bbba20641f1161742d507807e704d823405.tar.gz serverdata-c0a48bbba20641f1161742d507807e704d823405.tar.bz2 serverdata-c0a48bbba20641f1161742d507807e704d823405.tar.xz serverdata-c0a48bbba20641f1161742d507807e704d823405.zip |
Update the Monster King Random Warping Code
Diffstat (limited to 'npc/functions/gmbot.txt')
-rw-r--r-- | npc/functions/gmbot.txt | 45 |
1 files changed, 7 insertions, 38 deletions
diff --git a/npc/functions/gmbot.txt b/npc/functions/gmbot.txt index 39bf5b3d6..a3daad99b 100644 --- a/npc/functions/gmbot.txt +++ b/npc/functions/gmbot.txt @@ -61,44 +61,13 @@ OnTimer62000: 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: .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: .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: .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; - - } + // Select a random map. Never shows up at Candor and cities, nor indoors. Not all maps either. + setarray .@m$, "boss", "boss", "001-1", "001-3", "001-4", "001-5", "001-6", "001-7", "001-10", + "003-1", "003-1-3", "004-1", "004-2", "007-1", "010-1", "010-1-1", "010-2", "011-1", + "014-1", "014-2", "014-3", "014-4", "014-5", "015-1", "015-2", "015-3", "015-5", + "018-1-1", "018-2", "018-3", "018-4", "018-4-1", + "019-1", "019-2", "019-4", "021-1", "022-1", "023-1"; + .mp$=any_of(.@m$); // Try to warp randomly, up to 30 attempts .@e=0; .@x=0; .@y=0; |