From dbcd36c52512219cf37452d9e9f0f7294c198ef7 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 27 Jul 2021 09:31:40 -0300 Subject: Add EVTC overrides to Cindy Battle. This includes an infinite run, and a way to start the battle w/o paying. --- npc/031-4/cindyCave.txt | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/npc/031-4/cindyCave.txt b/npc/031-4/cindyCave.txt index c3db9b5d..0dd5ec6c 100644 --- a/npc/031-4/cindyCave.txt +++ b/npc/031-4/cindyCave.txt @@ -3,6 +3,19 @@ .@q = getq(KaizeiQuest_Cindy); if ($@FIGHT_YETI_STATUS != 0) goto L_Yeti; + if (is_evtc()) { + mesc l("You are an Event Coordinator. Do you wish to..."); + select + l("Continue normally"), + l("Initialize the fight"), + l("Make an infinite Cindy run"); + mes ""; + if (@menu == 3) + $@YETI_FOREVER = true; + if (@menu >= 2) + goto L_Skip_Cage; + } + if (.@q > 4) goto L_Please_Visit; if (.@q == 3) goto L_Reward; if (.@q == 2) goto L_Please_Help; @@ -40,6 +53,7 @@ L_Try_Cage: mes "As you try to open the door of the cage, there is a loud squeaking noise."; next; mes "You get an uncomfortable feeling and Cindy starts to shiver."; +L_Skip_Cage: if ($@FIGHT_YETI_STATUS != 0) goto L_Yeti; npctalk "Oh no, the Yetis..."; @@ -150,15 +164,16 @@ L_NextWave: $@FIGHT_YETI_ROUND_TIMER = 0; $@FIGHT_YETI_WAVE = $@FIGHT_YETI_WAVE + 1; if ($@FIGHT_YETI_WAVE > 10 - && $@YETI_COUNT == 0) + && $@YETI_COUNT == 0 && + !$@YETI_FOREVER) goto L_CleanUp; if ($@FIGHT_YETI_WAVE > 10 && $@FIGHT_YETI_WAVE < 22) goto L_Return_1; - if ($@FIGHT_YETI_WAVE > 22) + if ($@FIGHT_YETI_WAVE > 22 && !$@YETI_FOREVER) { areamonster "031-4", 0, 0, 95, 91, "Yeti", Yeti, $@FIGHT_YETI_WAVE*2 + $@FIGHT_YETI_PLAYER_COUNT*5, "Cindy::OnPetDeath"; - if ($@FIGHT_YETI_WAVE > 22) $@YETI_COUNT = $@YETI_COUNT + $@FIGHT_YETI_WAVE*2 + $@FIGHT_YETI_PLAYER_COUNT*5; + } $@FIGHT_YETI_NUMBER = (5 + (1 * $@FIGHT_YETI_WAVE) + (2 * $@FIGHT_YETI_PLAYER_COUNT))/4; $@YETI_COUNT = $@YETI_COUNT + $@FIGHT_YETI_NUMBER; @@ -190,6 +205,7 @@ L_CleanUp: $@YETI_COUNT = 0; $@FIGHT_YETI_ROUND_PEN = 0; $@FIGHT_YETI_NUMBER = 0; + $@YETI_FOREVER = false; killmonster "031-4", "Cindy::OnPetDeath"; stopnpctimer; setnpctimer 0; -- cgit v1.2.3-70-g09d2