From 71d9baa1fa24a33e50da91ae0f5df6181b616f14 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 17 Jun 2019 23:19:23 -0300 Subject: 001-7 Puzzle --- npc/001-7/homunculus.txt | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'npc/001-7') diff --git a/npc/001-7/homunculus.txt b/npc/001-7/homunculus.txt index 830d6ecf6..3961a29ed 100644 --- a/npc/001-7/homunculus.txt +++ b/npc/001-7/homunculus.txt @@ -39,15 +39,32 @@ OnTouch: percentheal -100, -100; return false; } - if (.@q < 15) { - dispbottom l("It seems to be sealed."); - end; + mesn l("Magically Sealed Gate"); + mesc l("The door is sealed. The riddle says: “I drink, I become, I am. Don't say my name, but say why you know me. For, I am the best in the world.”"); + if (!(.@q & 1)) { + mesc l("You have no idea what that means."), 1; + close; + } else { + mesc l("You know the answer can only be @@.", getitemlink(Coffee)), 3; + } + next; + mesn l("Magically Sealed Gate"); + if (!(.@q & 256)) { + mesc l("Even after breaking the first layer, a second layer keeps active. The first layer gets back to work shortly after. What have I missed or forgotten to do?"), 1; + close; + } else { + if (.@q != 511) + Exception("Invalid quest state: "+.@q, RB_DEFAULT|RB_SPEECH|RB_ISFATAL); + mesc l("Are you sure you want to proceed? You CANNOT COME BACK!"), 1; + if (askyesno() == ASK_NO) + close; } + closeclientdialog; .@mapn$="023-3-1"; + setq1 FrostiaQuest_Homunculus, 2; warp .@mapn$, any(45,46), 79; end; } -// Okay, we're done with basic warps 001-7,50,112,0 script Abandoned Fountain#MKH NPC_NO_SPRITE,{ .@q=getq2(FrostiaQuest_Homunculus); -- cgit v1.2.3-60-g2f50