summaryrefslogtreecommitdiff
path: root/npc/012-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-29 16:12:52 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-29 16:12:52 -0300
commit18ead20a9a08e1d7656df5bfe14df39cabba266d (patch)
tree0c7b04389f5965259fa7a99fc6fbb7ae9528f86a /npc/012-1
parent4f48ae9b9e30507f765bbb992f49851cf5bd1d63 (diff)
downloadserverdata-18ead20a9a08e1d7656df5bfe14df39cabba266d.tar.gz
serverdata-18ead20a9a08e1d7656df5bfe14df39cabba266d.tar.bz2
serverdata-18ead20a9a08e1d7656df5bfe14df39cabba266d.tar.xz
serverdata-18ead20a9a08e1d7656df5bfe14df39cabba266d.zip
Simplify HLib Day util
Diffstat (limited to 'npc/012-1')
-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)