From 4d537a4bf21fd6cc59581b9e50a0ef9ea38a68ab Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Sep 2019 20:41:15 -0300 Subject: This quest is difficult. Death and/or Logout WILL reset the quest state --- npc/functions/hub.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc') diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index b26c3baaa..311cc0272 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -75,6 +75,18 @@ function script HUB_Logout { deltimer(.@n$+"::OnE11"); deltimer(.@n$+"::OnE12"); } + // Died or logged out on Player Story 6 - Forgotten Shrine + if (compare(.@mapa$, "brb3")) { + //.@n$=instance_npcname("#Core02331"); + .@q=getq(LoFQuest_Barbara); + // Reset quest to: Forgotten Chamber Puzzle incomplete + if (.@q < 4) { + setq1 LoFQuest_Barbara, 1; + setq3 LoFQuest_Barbara, 1; + dispbottom col(l("WARNING: You died at Forgotten Shrine and the Shrine defense triggered."), 1); + dispbottom col(l("WARNING: Your progress on the quest was lost!"), 1); + } + } // Died or logged out during Sagratha Fight if (compare(.@mapa$, "sgt2")) { setq1 HurnscaldQuest_Sagratha, 3; -- cgit v1.2.3-70-g09d2