diff options
-rw-r--r-- | npc/029-3_Fight_Cave/parua.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/npc/029-3_Fight_Cave/parua.txt b/npc/029-3_Fight_Cave/parua.txt index d05b8f82..d0b67f33 100644 --- a/npc/029-3_Fight_Cave/parua.txt +++ b/npc/029-3_Fight_Cave/parua.txt @@ -23,6 +23,9 @@ set $@FIGHT_CAVE_STATUS, 1; set $@FIGHT_CAVE_LEVEL, 1; set $@FIGHT_CAVE_PLAYER_COUNT, getareausers("029-3.gat", 20, 20, 70, 60); + + set $@FIGHT_CAVE_LAST, 0; + startnpctimer; goto L_Exit; @@ -63,16 +66,18 @@ L_CaveLogic: if ($@FIGHT_CAVE_PLAYER_COUNT <= 0) goto L_CleanUp; set $@FIGHT_CAVE_ROUND_TIMER, $@FIGHT_CAVE_ROUND_TIMER + 5; // Advance 5 seconds if (mobcount("029-3.gat", "Parua::onPetDeath") <= 0) goto L_NextRound; - if ($@FIGHT_CAVE_ROUND_TIMER >= 90) goto L_NextRound; + if ($@FIGHT_CAVE_ROUND_TIMER >= 120) goto L_NextRound; goto L_Return_1; L_NextRound: set $@FIGHT_CAVE_ROUND_TIMER, 0; - set $@FIGHT_CAVE_LEVEL, $@FIGHT_CAVE_LEVEL + ($@FIGHT_CAVE_PLAYER_COUNT * 3) + ($@FIGHT_CAVE_LEVEL / 10); + set $@FIGHT_CAVE_LEVEL, $@FIGHT_CAVE_LEVEL + $@FIGHT_CAVE_PLAYER_COUNT + ($@FIGHT_CAVE_LEVEL / 10); if ($@FIGHT_CAVE_LEVEL >= 1200) goto L_CleanUp; set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_LEVEL; + if ($@FIGHT_CAVE_LAST + 50 < $@FIGHT_CAVE_LEVEL) goto L_Announce; +L_Return_2: npctalk "Next round starting, round level is " + $@FIGHT_CAVE_LEVEL; set $@MOB_1_SUMMON, 0; @@ -90,6 +95,10 @@ L_Summon: if ($@FIGHT_CAVE_POINTS >= 1 && $@MOB_6_SUMMON < 25) goto L_MOB6; goto L_Return_1; +L_Announce: + mapannounce "029-1.gat", "Parua: Round " + $@FIGHT_CAVE_LEVEL + " starting with " + $@FIGHT_CAVE_PLAYER_COUNT + " player(s) left alive." , 0; + set $@FIGHT_CAVE_LAST, $@FIGHT_CAVE_LAST + 50; + goto L_Return_2; L_MOB1: set $@MOB_1_SUMMON, $@MOB_1_SUMMON + 1; |