From 6da9c46c512d7b06721d8eadba8bed28eff75756 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 4 Jun 2018 17:31:58 -0300 Subject: Final polishing before I invite @Saulc and @Crazyfefe over for a nice fight --- npc/006-1/crazyfefe.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'npc/006-1/crazyfefe.txt') diff --git a/npc/006-1/crazyfefe.txt b/npc/006-1/crazyfefe.txt index 405a91ecb..fff57a68e 100644 --- a/npc/006-1/crazyfefe.txt +++ b/npc/006-1/crazyfefe.txt @@ -125,18 +125,18 @@ L_CaveLogic: $@FIGHT_CAVE_PLAYER_COUNT = getmapusers("006-1"); if (mobcount("006-1", "Crazyfefe::OnPetDeath") <= 0) goto L_NextRound; + + // Victory conditions: Either you've reached a maximum level (2200) or too few players alive. + // Number of alive players is randomly proccessed, so the round may end anytime. + // To enable debug, comment last part of victory condition + if ($@FIGHT_CAVE_LEVEL >= 2200 || $@FIGHT_CAVE_PLAYER_COUNT <= rand(1,2)) + goto L_CleanUp; + // reset timer initnpctimer; end; -// TODO L_NextRound: - // Victory conditions - if ($@FIGHT_CAVE_LEVEL >= 2200 || $@FIGHT_CAVE_PLAYER_COUNT <= 1) - // To enable debug, switch lines - //if ($@FIGHT_CAVE_LEVEL >= 2200) - goto L_CleanUp; - // Prepare next round $@FIGHT_CAVE_LEVEL = $@FIGHT_CAVE_LEVEL + $@FIGHT_CAVE_PLAYER_COUNT + rand(1,3); @@ -145,7 +145,7 @@ L_NextRound: // TODO L_Summon: - .@amount=($@FIGHT_CAVE_LEVEL/rand(3,5)); + .@amount=($@FIGHT_CAVE_LEVEL/rand(4,6)); for (.@i = 0; .@i < .@amount; ++.@i) { .@mid=rand(1,15); .@monsterId=Piou; -- cgit v1.2.3-60-g2f50