diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-08 11:23:20 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-08 11:23:20 -0300 |
commit | 1c85d3a5394996b4f1434f58826af3616ffb9faa (patch) | |
tree | 69cc7ba682574ec099cab1a329894fd55a75b6e8 /npc/006-1/crazyfefe.txt | |
parent | a1be9850ce113fcf0018bb7a90c4cac50e5f3c40 (diff) | |
download | serverdata-1c85d3a5394996b4f1434f58826af3616ffb9faa.tar.gz serverdata-1c85d3a5394996b4f1434f58826af3616ffb9faa.tar.bz2 serverdata-1c85d3a5394996b4f1434f58826af3616ffb9faa.tar.xz serverdata-1c85d3a5394996b4f1434f58826af3616ffb9faa.zip |
Track waves at Candor Battle
Diffstat (limited to 'npc/006-1/crazyfefe.txt')
-rw-r--r-- | npc/006-1/crazyfefe.txt | 6 |
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; |