From 233b50661add05a5a80c7bd0d4bfece70ffba6fa Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 8 Jun 2018 13:13:17 -0300 Subject: Safeguards --- npc/soren-2/main.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'npc/soren-2/main.txt') diff --git a/npc/soren-2/main.txt b/npc/soren-2/main.txt index f4be7b56d..b203a462d 100644 --- a/npc/soren-2/main.txt +++ b/npc/soren-2/main.txt @@ -38,6 +38,7 @@ OnTouch: dispbottom l("Error, contact Jesusalva! Missing warp. Healing & Reseting temporaly."); percentheal 100, 100; @sorensanctum=@sorensanctum-5; + //compareandsetq HurnscaldQuest_Celestia, 4, 5; } end; @@ -133,6 +134,8 @@ OnSanctum: // Revert sprite if needed if (.@odds > 2000) { setnpcdisplay .name$, NPC_NO_SPRITE; + } else if (!mobcount(.map$, "#SorenSanctum::OnCheck")) { + setnpcdisplay .name$, NPC_SUMMONING_CIRC; } // Handle maximum overtime you can do here: 10 cycles, or 3m20s ~ 6m40s @@ -153,8 +156,11 @@ OnSanctum: addtimer(rand(20000, 40000), "#SorenSanctum::OnSanctum"); end; + + + OnStart: - // If you're past stage 4, skip this. I could set here to stage 5, so this + // If you're not on stage 4, skip this. I could set here to stage 5, so this // intro won't play again. But if it plays again, your progress is reset, and // it is harder this way, so I'm not touching on quest state :> if (getq(HurnscaldQuest_Celestia) != 4) -- cgit v1.2.3-60-g2f50