summaryrefslogtreecommitdiff
path: root/npc/001-7
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-17 23:19:23 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-17 23:19:23 -0300
commit71d9baa1fa24a33e50da91ae0f5df6181b616f14 (patch)
tree29e4e7761524eade652d2819d31bd0e74b5c8ad8 /npc/001-7
parent9ba1a745f6c6a88ef4c82aa617d949feb1d61c2c (diff)
downloadserverdata-71d9baa1fa24a33e50da91ae0f5df6181b616f14.tar.gz
serverdata-71d9baa1fa24a33e50da91ae0f5df6181b616f14.tar.bz2
serverdata-71d9baa1fa24a33e50da91ae0f5df6181b616f14.tar.xz
serverdata-71d9baa1fa24a33e50da91ae0f5df6181b616f14.zip
001-7 Puzzle
Diffstat (limited to 'npc/001-7')
-rw-r--r--npc/001-7/homunculus.txt25
1 files changed, 21 insertions, 4 deletions
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);