From 1c85d3a5394996b4f1434f58826af3616ffb9faa Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 8 Jun 2018 11:23:20 -0300 Subject: Track waves at Candor Battle --- npc/006-1/crazyfefe.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'npc/006-1') diff --git a/npc/006-1/crazyfefe.txt b/npc/006-1/crazyfefe.txt index 028b1a371..efde8e3df 100644 --- a/npc/006-1/crazyfefe.txt +++ b/npc/006-1/crazyfefe.txt @@ -13,6 +13,8 @@ // Whoever started a fight. Also used to know if a fight is about to begin. // $@FIGHT_CAVE_PLAYER_COUNT // How many players are there +// $@FIGHT_WAVE +// Current wave 006-1,47,22,0 script Crazyfefe NPC_STATUE_EVILMAN,{ if ($@FIGHT_CAVE_LEVEL) goto L_Enjoy; @@ -144,11 +146,12 @@ L_CaveLogic: end; L_NextRound: + $@FIGHT_WAVE = $@FIGHT_WAVE + 1; // Prepare next round, and reward survivors $@FIGHT_CAVE_LEVEL = $@FIGHT_CAVE_LEVEL + $@FIGHT_CAVE_PLAYER_COUNT + rand(1,3); areatimer "006-1", 20, 20, 70, 60, 10, "Crazyfefe::OnReward"; - mapannounce "006-1", "The next round is starting with " + $@FIGHT_CAVE_PLAYER_COUNT + " player(s) left alive." , 0; + mapannounce "006-1", "The wave nÂș "+$@FIGHT_WAVE+" is starting with " + $@FIGHT_CAVE_PLAYER_COUNT + " player(s) left alive." , 0; goto L_Summon; // TODO @@ -199,6 +202,7 @@ L_CleanUp: areatimer "006-1", 20, 20, 70, 60, 10, "Crazyfefe::OnReward"; $@FIGHT_CAVE_LEVEL = 0; + $@FIGHT_WAVE = 0; $@FIGHT_CAVE_HERO$ = ""; killmonster "006-1", "Crazyfefe::OnPetDeath"; stopnpctimer; -- cgit v1.2.3-60-g2f50