summaryrefslogtreecommitdiff
path: root/npc/021-4/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-10 12:31:40 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-10 12:31:40 -0300
commit261096ab434f250962b0ea01226d1ef17cfc31e6 (patch)
treeb18b89efdf0d1e7d35eb8c8fa884813c40eb345e /npc/021-4/main.txt
parent00aea936b19e79440df571a735e80494c11c159b (diff)
downloadserverdata-261096ab434f250962b0ea01226d1ef17cfc31e6.tar.gz
serverdata-261096ab434f250962b0ea01226d1ef17cfc31e6.tar.bz2
serverdata-261096ab434f250962b0ea01226d1ef17cfc31e6.tar.xz
serverdata-261096ab434f250962b0ea01226d1ef17cfc31e6.zip
Okay, this should solve the issue... Note that making logout at Cindy Cave
before quest completion equals defeat, regardless of a prior victory.
Diffstat (limited to 'npc/021-4/main.txt')
-rw-r--r--npc/021-4/main.txt11
1 files changed, 10 insertions, 1 deletions
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;