summaryrefslogtreecommitdiff
path: root/npc/006-1
diff options
context:
space:
mode:
Diffstat (limited to 'npc/006-1')
-rw-r--r--npc/006-1/crazyfefe.txt6
1 files changed, 5 insertions, 1 deletions
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;