diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2013-06-09 20:23:17 +0200 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2013-06-09 20:23:17 +0200 |
commit | 8ac35610a416d3937ccf4b3b74a61622382e8162 (patch) | |
tree | 3d164dac261ab8db71c7ac1cdd9616004242e5e6 /world/map/npc/018-1 | |
parent | eab663dff8d2d0fb9506a373238c8ee26115da22 (diff) | |
download | classic-serverdata-8ac35610a416d3937ccf4b3b74a61622382e8162.tar.gz classic-serverdata-8ac35610a416d3937ccf4b3b74a61622382e8162.tar.bz2 classic-serverdata-8ac35610a416d3937ccf4b3b74a61622382e8162.tar.xz classic-serverdata-8ac35610a416d3937ccf4b3b74a61622382e8162.zip |
Add mob limit logic to the 5 pentagram spawns too.
Diffstat (limited to 'world/map/npc/018-1')
-rw-r--r-- | world/map/npc/018-1/flowerpentagram3.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/world/map/npc/018-1/flowerpentagram3.txt b/world/map/npc/018-1/flowerpentagram3.txt index 07195529..6993378b 100644 --- a/world/map/npc/018-1/flowerpentagram3.txt +++ b/world/map/npc/018-1/flowerpentagram3.txt @@ -23,6 +23,17 @@ L_ThirdFlower: goto L_Close; L_Place: + set @localMonsterCount, + mobcount("018-1.gat", "#FlowerPentagram3::OnSquirrelDeath") + + mobcount("018-1.gat", "#FlowerPentagram3::OnMushroomDeath") + + mobcount("018-1.gat", "#FlowerPentagram3::OnBlueparDeath") + + mobcount("018-1.gat", "#FlowerPentagram3::OnScorpionDeath") + + mobcount("018-1.gat", "#FlowerPentagram3::OnRScorpionDeath") + + mobcount("018-1.gat", "#FlowerPentagram3::OnAScorpionDeath") + + 6; // the mobcount function has an offset of -1, so we add 6 to have the actual amount of monsters + if (@localMonsterCount > 4) + goto L_MonstersAlive; + if (countitem("WhiteSummonFlower") < 1) goto L_NoFlower; delitem "WhiteSummonFlower", 1; @@ -71,6 +82,13 @@ OnAScorpionDeath: 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 reach into your inventory to take out the flower and place it. But you can't find it!"; mes "Did you loose it somewhere along the way? If you can't find it again, go talk to Orum."; @@ -87,5 +105,6 @@ L_PlacedFifthFlower: goto L_Close; L_Close: + set @localMonsterCount, 0; close; } |