summaryrefslogtreecommitdiff
path: root/npc/021-4
diff options
context:
space:
mode:
Diffstat (limited to 'npc/021-4')
-rw-r--r--npc/021-4/main.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/npc/021-4/main.txt b/npc/021-4/main.txt
index 2a645ac4a..baa2e43d7 100644
--- a/npc/021-4/main.txt
+++ b/npc/021-4/main.txt
@@ -95,6 +95,15 @@ L_Begin:
OnPetDeath:
end;
+OnReward:
+ if (ispcdead()) {
+ recovery();
+ warp "Save", 0, 0;
+ end;
+ }
+ getexp 10000, 0;
+ end;
+
L_CleanUp:
.lifetime=0;
$@CINDY_HERO="";
@@ -106,6 +115,16 @@ L_CleanUp:
setnpcdisplay .name$, NPC_CINDY_CAGE;
end;
+OnTimer1000:
+ .@y=mobcount("021-4", "Cindy#Outside::OnPetDeath");
+ .@v=CindySwitch_Check_214();
+ if (.@y == 0 && .@v >= 5) {
+ mapannounce "021-4", "You won.",0;
+ areatimer "021-4", 20, 20, 100, 80, 10, "Cindy#Outside::OnReward";
+ goto L_CleanUp;
+ }
+ end;
+
OnInit:
.distance=5;
.lifetime=0; // Controls Yeti Wave