From 261096ab434f250962b0ea01226d1ef17cfc31e6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 10 Jun 2019 12:31:40 -0300 Subject: Okay, this should solve the issue... Note that making logout at Cindy Cave before quest completion equals defeat, regardless of a prior victory. --- npc/021-4/main.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'npc/021-4/main.txt') diff --git a/npc/021-4/main.txt b/npc/021-4/main.txt index a2bee72eb..9ea55fe5b 100644 --- a/npc/021-4/main.txt +++ b/npc/021-4/main.txt @@ -254,12 +254,21 @@ L_CleanUp: OnTimer2000: .@y=mobcount("021-4", "Cindy#Outside::OnPetDeath"); + // Quest is complete... We might need to clean the mess. + if ($@CINDY_STATE > gettimetick(2)) { + .@pl = getmapusers("021-4"); + if (!.@pl) + goto L_CleanUp; + end; + } + // This finishes the quest if (.@y == 0 && .canfinish) { $@CINDY_STATE=gettimetick(2)+60*rand(55,65)*rand(4,36); // It is way too random to I say how long it takes (220min ~ 39 hours) mapannounce "021-4", "Nivalis: Cindy is now safe!",bc_all|bc_npc; areatimer "021-4", 20, 20, 100, 80, 10, "Cindy#Outside::OnReward"; - goto L_CleanUp; + setnpcdisplay .name$, NPC_CINDY; + end; } .wtime+=2; -- cgit v1.2.3-70-g09d2