summaryrefslogtreecommitdiff
path: root/npc/031-3_Cave/cindyCave.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2010-12-31 15:51:33 +0100
committerJessica Tölke <jtoelke@mail.upb.de>2010-12-31 15:51:33 +0100
commitb5f686bb063f7c3e69614b1e822e0912ee8f0802 (patch)
treea2ca54cbdeebe510025908f19d0f15d8663cef7c /npc/031-3_Cave/cindyCave.txt
parent086a0f9ca9e15f151b60bc228459f70eb6d3ca3a (diff)
downloadserverdata-b5f686bb063f7c3e69614b1e822e0912ee8f0802.tar.gz
serverdata-b5f686bb063f7c3e69614b1e822e0912ee8f0802.tar.bz2
serverdata-b5f686bb063f7c3e69614b1e822e0912ee8f0802.tar.xz
serverdata-b5f686bb063f7c3e69614b1e822e0912ee8f0802.zip
rescue cindy quest: modified yeti battle and increased dex of yeti for next test
Diffstat (limited to 'npc/031-3_Cave/cindyCave.txt')
-rw-r--r--npc/031-3_Cave/cindyCave.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/npc/031-3_Cave/cindyCave.txt b/npc/031-3_Cave/cindyCave.txt
index 03bb0bde..f87000aa 100644
--- a/npc/031-3_Cave/cindyCave.txt
+++ b/npc/031-3_Cave/cindyCave.txt
@@ -59,6 +59,7 @@ L_Try_Cage:
// initialize fight
set $@FIGHT_YETI_STATUS, 1;
set $@FIGHT_YETI_WAVE, 1;
+ set $@YETI_COUNT, 0;
set $@FIGHT_YETI_PLAYER_COUNT, getareausers("031-3.gat", 80, 20, 160, 90);
startnpctimer;
@@ -71,10 +72,8 @@ L_Try_Cage:
callsub S_Update_Mask;
close;
-//TODO: why close and end?
L_Exit:
close;
- end;
L_Yeti:
mes "[Cindy]";
@@ -125,7 +124,7 @@ L_Full_Inv:
mes "\"Oh, it seems you carry so much stuff - I will keep it for you until you can take it.\"";
close;
-// Fight logic
+// Fight logic attached to npc
OnTimer5000:
setnpctimer 0;
if ($@FIGHT_YETI_STATUS != 0) goto L_CaveLogic;
@@ -147,11 +146,12 @@ L_NextWave:
set $@FIGHT_YETI_ROUND_TIMER, 0;
set $@FIGHT_YETI_WAVE, $@FIGHT_YETI_WAVE + 1;
- if ($@FIGHT_YETI_WAVE >= 10) goto L_CleanUp;
+ if ($@FIGHT_YETI_WAVE > 10 && $@YETI_COUNT == 0) goto L_CleanUp;
+ if ($@FIGHT_YETI_WAVE > 10) goto L_Return_1;
//TODO: adjust number of yetis spawned
- set $@FIGHT_YETI_NUMBER, $@FIGHT_YETI_WAVE + $@FIGHT_YETI_WAVE * $@FIGHT_YETI_PLAYER_COUNT/30;
-
- set $@YETI_SUMMON, 0;
+//TODO: use yeti count here
+ set $@FIGHT_YETI_NUMBER, $@FIGHT_YETI_WAVE + $@FIGHT_YETI_WAVE * $@FIGHT_YETI_PLAYER_COUNT/10;
+ set $@YETI_COUNT, $@YETI_COUNT + $@FIGHT_YETI_NUMBER;
areamonster "031-3.gat", 80, 20, 160, 90, "", 1072, $@FIGHT_YETI_NUMBER, "Cindy::onPetDeath";
goto L_Return_1;
@@ -163,6 +163,7 @@ onTick:
end;
onPetDeath:
+ set $@YETI_COUNT, $@YETI_COUNT - 1;
end;
onInit: