From 6f6726e24ed7309859a3068dcb1565bd57fa4300 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 25 Oct 2018 00:12:19 -0300 Subject: Playtest purpose --- npc/021-4/main.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'npc/021-4') 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 -- cgit v1.2.3-70-g09d2