summaryrefslogtreecommitdiff
path: root/npc/031-3_Cave/cindyCave.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2011-01-19 17:17:42 +0100
committerStefan Beller <stefanbeller@googlemail.com>2011-01-21 15:25:52 +0100
commitd15dded264080f2ab67b504fcde8cac47e83f065 (patch)
tree066e50e83697d727996fc139d096156224508dc2 /npc/031-3_Cave/cindyCave.txt
parentf372b2ce62fd96f3e85d65589cc7c434543d537a (diff)
downloadserverdata-d15dded264080f2ab67b504fcde8cac47e83f065.tar.gz
serverdata-d15dded264080f2ab67b504fcde8cac47e83f065.tar.bz2
serverdata-d15dded264080f2ab67b504fcde8cac47e83f065.tar.xz
serverdata-d15dded264080f2ab67b504fcde8cac47e83f065.zip
cindy quest: after 44 minutes an increadible amount of yetis is spawned to kill all players
Diffstat (limited to 'npc/031-3_Cave/cindyCave.txt')
-rw-r--r--npc/031-3_Cave/cindyCave.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/npc/031-3_Cave/cindyCave.txt b/npc/031-3_Cave/cindyCave.txt
index 3eeb8184..e4c7b29f 100644
--- a/npc/031-3_Cave/cindyCave.txt
+++ b/npc/031-3_Cave/cindyCave.txt
@@ -59,8 +59,10 @@ L_Try_Cage:
// initialize fight
set $@FIGHT_YETI_STATUS, 1;
set $@FIGHT_YETI_WAVE, 0;
- set $@YETI_COUNT, 0;
+ set $@YETI_COUNT, 1;
set $@FIGHT_YETI_PLAYER_COUNT, getareausers("031-3.gat", 80, 20, 160, 90);
+ // this yeti is spawned because of some timing problems
+ // without it, the first and second wave start nearly the same time
areamonster "031-3.gat", 80, 20, 160, 90, "", 1072, 1, "Cindy::onPetDeath";
startnpctimer;
@@ -140,10 +142,13 @@ L_CaveLogic:
L_NextWave:
set $@FIGHT_YETI_ROUND_TIMER, 0;
-
set $@FIGHT_YETI_WAVE, $@FIGHT_YETI_WAVE + 1;
if ($@FIGHT_YETI_WAVE > 10 && $@YETI_COUNT == 0) goto L_CleanUp;
- if ($@FIGHT_YETI_WAVE > 10) goto L_Return_1;
+ if ($@FIGHT_YETI_WAVE > 10 && $@FIGHT_YETI_WAVE < 22) goto L_Return_1;
+ if ($@FIGHT_YETI_WAVE > 22)
+ areamonster "031-3.gat", 80, 20, 160, 90, "", 1072, $@FIGHT_YETI_WAVE*2 + $@FIGHT_YETI_PLAYER_COUNT*5, "Cindy::onPetDeath";
+ if ($@FIGHT_YETI_WAVE > 22)
+ set $@YETI_COUNT, $@YETI_COUNT + $@FIGHT_YETI_WAVE*2 + $@FIGHT_YETI_PLAYER_COUNT*5;
set $@FIGHT_YETI_NUMBER, (1 + (1 * $@FIGHT_YETI_WAVE) + (2 * $@FIGHT_YETI_PLAYER_COUNT))/4;
set $@YETI_COUNT, $@YETI_COUNT + $@FIGHT_YETI_NUMBER;
@@ -170,7 +175,6 @@ L_NextWave:
if ($@FIGHT_YETI_WAVE == 10)
mapannounce "031-3.gat", "Cindy: This seems to be their final attack! I believe in you!", 0;
-// mapannounce "031-3.gat", "WAVE: " + $@FIGHT_YETI_WAVE + " NUMBER OF YETIS SPAWNED: " + $@FIGHT_YETI_NUMBER + " TOTAL YETIS: " + $@YETI_COUNT, 0;
goto L_Return_1;
// Called on each player once every 5 seconds