summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-03 08:46:18 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-03 08:46:18 -0300
commit16cac8c75108c272b6356dc064b4427210ebe365 (patch)
tree231b2895285a792d6b7299fde4e761e1841b0a0f
parent7a90ef1b53e6ec1e304614dbf70b5ebcbe8e146b (diff)
downloadtools-16cac8c75108c272b6356dc064b4427210ebe365.tar.gz
tools-16cac8c75108c272b6356dc064b4427210ebe365.tar.bz2
tools-16cac8c75108c272b6356dc064b4427210ebe365.tar.xz
tools-16cac8c75108c272b6356dc064b4427210ebe365.zip
Add a blackbox to 015-8
-rwxr-xr-xlocalserver/installconfigs.sh1
-rw-r--r--localserver/npc/015-8_blackbox.txt26
2 files changed, 27 insertions, 0 deletions
diff --git a/localserver/installconfigs.sh b/localserver/installconfigs.sh
index 84dc7bc..deeea1b 100755
--- a/localserver/installconfigs.sh
+++ b/localserver/installconfigs.sh
@@ -9,6 +9,7 @@ cp conf/* $CONF
cp -f ${SD}/conf/channels.conf.base ${SD}/conf/channels.conf
cp -f npc/motd-* ${NPC}/commands/
cp -f npc/017-1_* ${NPC}/017-1/
+cp -f npc/015-8_* ${NPC}/015-8/
cp -f npc/botcheck_* ${NPC}/botcheck/
mkdir versions
echo "4" >versions/confver
diff --git a/localserver/npc/015-8_blackbox.txt b/localserver/npc/015-8_blackbox.txt
new file mode 100644
index 0000000..a95b065
--- /dev/null
+++ b/localserver/npc/015-8_blackbox.txt
@@ -0,0 +1,26 @@
+// TMW2 Script
+// Author:
+// Jesusalva
+// Description:
+// This is the “015-8 mapfile” black box.
+// It contains the answers to all the riddles.
+// This file is kept outside the main tree for translation purposes.
+// You thought you could cheat the answers, eh?
+
+// Syntax:
+// 0158_Riddle_BlackBox( )
+// Returns true on success, false on failure.
+function script 0158_Riddle_BlackBox {
+ .@r$="secret";
+ .@l$=l("secret");
+
+ mesc l("When I died, I gave to my killers a full meal.");
+ mesc l("But when I was alive, I brought them to their destiny.");
+ mesc l("When provoked, others came to my aid,");
+ mesc l("And after a bite, my aggressors walked away from my body.");
+ mes "";
+ input .@ans$;
+
+ return riddlevalidation(.@ans$, .@r$[.@e], .@l$[.@e]);
+}
+