summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/012-1/guards.txt42
1 files changed, 5 insertions, 37 deletions
diff --git a/npc/012-1/guards.txt b/npc/012-1/guards.txt
index fc1b007ce..0151a10dd 100644
--- a/npc/012-1/guards.txt
+++ b/npc/012-1/guards.txt
@@ -327,43 +327,11 @@ OnTimer240000:
// One monster per user alive
.@Pl=getmapusers("012-1");
for (.@i = 0; .@i < .@Pl; .@i++) {
- .@mid=rand(1,17);
- switch (.@mid) {
- case 1:
- .@monsterId = CaveMaggot ; break;
- case 2:
- .@monsterId = RedSlime ; break;
- case 3:
- .@monsterId = LavaSlime ; break;
- case 4:
- .@monsterId = BlackScorpion ; break;
- case 5:
- .@monsterId = AngryRedScorpion ; break;
- case 6:
- .@monsterId = Sarracenus ; break;
- case 7:
- .@monsterId = Snake ; break;
- case 8:
- .@monsterId = MountainSnake ; break;
- case 9:
- .@monsterId = GreenSlime ; break;
- case 10:
- .@monsterId = Bandit ; break;
- case 11:
- .@monsterId = BlackScorpion ; break;
- case 12:
- .@monsterId = rand(HouseMaggot, AngryScorpion) ; break; // Lucky bonus, probably a Bif
- case 13:
- .@monsterId = Pinkie ; break;
- case 14:
- .@monsterId = MagicGoblin ; break;
- case 15:
- .@monsterId = Mouboo ; break;
- case 16:
- .@monsterId = Scorpion ; break;
- default: // case 13:
- .@monsterId = Yeti ; break;
- }
+ .@monsterId=any(CaveMaggot, RedSlime, LavaSlime, BlackScorpion,
+ AngryRedScorpion, Sarracenus, Snake, MountainSnake, GreenSlime,
+ Bandit, BlackScorpion, HouseMaggot, AngryScorpion, MagicGoblin,
+ Pinkie, Mouboo, Scorpion, Yeti);
+
bg_monster($@FK_Team2, "012-1", rand(69, 136), rand(83, 74), "Monster Soldier", .@monsterId, "Hurnsguard::OnSkip");
// 40% odds of having an extra monster spawned (player loop)
if (rand(1,5) % 2 == 0)