diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2011-01-19 17:17:42 +0100 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2011-01-19 17:17:42 +0100 |
commit | ea4652c298f16316ff2d5ede9d68efeeb20f5c1e (patch) | |
tree | 066e50e83697d727996fc139d096156224508dc2 | |
parent | f372b2ce62fd96f3e85d65589cc7c434543d537a (diff) | |
download | serverdata-ea4652c298f16316ff2d5ede9d68efeeb20f5c1e.tar.gz serverdata-ea4652c298f16316ff2d5ede9d68efeeb20f5c1e.tar.bz2 serverdata-ea4652c298f16316ff2d5ede9d68efeeb20f5c1e.tar.xz serverdata-ea4652c298f16316ff2d5ede9d68efeeb20f5c1e.zip |
cindy quest: after 44 minutes an increadible amount of yetis is spawned to kill all players
-rw-r--r-- | npc/031-3_Cave/cindyCave.txt | 12 |
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 |