diff options
author | Chuck Miller <shadowmil@gmail.com> | 2010-07-24 15:01:45 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2010-07-24 15:01:45 -0400 |
commit | 9c82fc9f0d1d276f9d266a9542ebc8c8127811a9 (patch) | |
tree | 40abe505b32473f247be921223415ab63f996d3b | |
parent | cf731b8233c2d6a03ec2ae3e7d37e1b24585d607 (diff) | |
download | serverdata-9c82fc9f0d1d276f9d266a9542ebc8c8127811a9.tar.gz serverdata-9c82fc9f0d1d276f9d266a9542ebc8c8127811a9.tar.bz2 serverdata-9c82fc9f0d1d276f9d266a9542ebc8c8127811a9.tar.xz serverdata-9c82fc9f0d1d276f9d266a9542ebc8c8127811a9.zip |
Update candor to give updates to the outside
-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; |