summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-04 17:31:58 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-04 17:31:58 -0300
commit6da9c46c512d7b06721d8eadba8bed28eff75756 (patch)
tree8323c7a15b23ebe954771f654462c24c279e761f
parent0eedfaadb10d1cafc3ba8feeb68bdc7bd61bc078 (diff)
downloadserverdata-6da9c46c512d7b06721d8eadba8bed28eff75756.tar.gz
serverdata-6da9c46c512d7b06721d8eadba8bed28eff75756.tar.bz2
serverdata-6da9c46c512d7b06721d8eadba8bed28eff75756.tar.xz
serverdata-6da9c46c512d7b06721d8eadba8bed28eff75756.zip
Final polishing before I invite @Saulc and @Crazyfefe over for a nice fight
-rw-r--r--npc/006-1/crazyfefe.txt16
1 files changed, 8 insertions, 8 deletions
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;