summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-29 01:39:44 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-29 01:39:44 -0200
commit431c36a1028e5dc5f95303b1a766cf763c0d413c (patch)
tree9bef5becea3a77edec417f27b8879b16ca76f0ef
parent9dc0659102fb909f888a07d7ac9eb465e227df53 (diff)
downloadserverdata-431c36a1028e5dc5f95303b1a766cf763c0d413c.tar.gz
serverdata-431c36a1028e5dc5f95303b1a766cf763c0d413c.tar.bz2
serverdata-431c36a1028e5dc5f95303b1a766cf763c0d413c.tar.xz
serverdata-431c36a1028e5dc5f95303b1a766cf763c0d413c.zip
Finish Stranger, only riddle missing
-rw-r--r--db/constants.conf5
-rw-r--r--npc/017-1/stranger.txt15
2 files changed, 17 insertions, 3 deletions
diff --git a/db/constants.conf b/db/constants.conf
index ace7ecbd1..086cf0c5e 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -3865,6 +3865,11 @@ constants_db: {
// Composed Variable for optimization
HH_REQUISITE: 15
+ comment__: "difficulty levels"
+ EASY: 0
+ MEDIUM: 1
+ HARD: 2
+
comment__: "map masks"
MASK_NONE: 1
MASK_MATTACK: 2
diff --git a/npc/017-1/stranger.txt b/npc/017-1/stranger.txt
index c978bc067..107eeee61 100644
--- a/npc/017-1/stranger.txt
+++ b/npc/017-1/stranger.txt
@@ -74,13 +74,22 @@ L_Quizz:
goto L_Easy;
L_Easy:
- goto L_Medium;
+ if (0171_Stranger_BlackBox(EASY))
+ goto L_Medium;
+ else
+ goto L_Fail;
L_Medium:
- goto L_Hard;
+ if (0171_Stranger_BlackBox(MEDIUM))
+ goto L_Hard;
+ else
+ goto L_Fail;
L_Hard:
- goto L_Reward;
+ if (0171_Stranger_BlackBox(HARD))
+ goto L_Reward;
+ else
+ goto L_Fail;
// Failure