summaryrefslogtreecommitdiff
path: root/world/map/npc/055-1
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2013-06-09 20:23:17 +0200
committerJessica Tölke <jtoelke@mail.upb.de>2013-06-09 20:23:17 +0200
commit8ac35610a416d3937ccf4b3b74a61622382e8162 (patch)
tree3d164dac261ab8db71c7ac1cdd9616004242e5e6 /world/map/npc/055-1
parenteab663dff8d2d0fb9506a373238c8ee26115da22 (diff)
downloadserverdata-8ac35610a416d3937ccf4b3b74a61622382e8162.tar.gz
serverdata-8ac35610a416d3937ccf4b3b74a61622382e8162.tar.bz2
serverdata-8ac35610a416d3937ccf4b3b74a61622382e8162.tar.xz
serverdata-8ac35610a416d3937ccf4b3b74a61622382e8162.zip
Add mob limit logic to the 5 pentagram spawns too.
Diffstat (limited to 'world/map/npc/055-1')
-rw-r--r--world/map/npc/055-1/flowerpentagram4.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/world/map/npc/055-1/flowerpentagram4.txt b/world/map/npc/055-1/flowerpentagram4.txt
index f56a9059..714861ad 100644
--- a/world/map/npc/055-1/flowerpentagram4.txt
+++ b/world/map/npc/055-1/flowerpentagram4.txt
@@ -23,6 +23,19 @@ L_FourthFlower:
goto L_Close;
L_Place:
+ set @localMonsterCount,
+ mobcount("055-1.gat", "#FlowerPentagram4::OnSquirrelDeath") +
+ mobcount("055-1.gat", "#FlowerPentagram4::OnMushroomDeath") +
+ mobcount("055-1.gat", "#FlowerPentagram4::OnBlueparDeath") +
+ mobcount("055-1.gat", "#FlowerPentagram4::OnMoubooDeath") +
+ mobcount("055-1.gat", "#FlowerPentagram4::OnScorpionDeath") +
+ mobcount("055-1.gat", "#FlowerPentagram4::OnRScorpionDeath") +
+ mobcount("055-1.gat", "#FlowerPentagram4::OnAScorpionDeath") +
+ mobcount("055-1.gat", "#FlowerPentagram4::OnBScorpionDeath") +
+ 8; // the mobcount function has an offset of -1, so we add 8 to have the actual amount of monsters
+ if (@localMonsterCount > 4)
+ goto L_MonstersAlive;
+
if (countitem("YellowSummonFlower") < 1)
goto L_NoFlower;
delitem "YellowSummonFlower", 1;
@@ -83,6 +96,13 @@ OnBScorpionDeath:
callfunc "MobPoints";
end;
+L_MonstersAlive:
+ mes "As you get closer to the place, you feel an unnerving presence.";
+ mes "The place has recently been used to summon something! And the beings are still near!";
+ next;
+ mes "You should get rid of them before attempting the summoning yourself.";
+ goto L_Close;
+
L_NoFlower:
mes "You search your belongings for the magical flower. Where is it?";
mes "If you lost it, you should talk to Orum.";
@@ -99,5 +119,6 @@ L_PlacedFifthFlower:
goto L_Close;
L_Close:
+ set @localMonsterCount, 0;
close;
}