From 16cac8c75108c272b6356dc064b4427210ebe365 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 3 Jun 2019 08:46:18 -0300 Subject: Add a blackbox to 015-8 --- localserver/installconfigs.sh | 1 + localserver/npc/015-8_blackbox.txt | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 localserver/npc/015-8_blackbox.txt 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]); +} + -- cgit v1.2.3-70-g09d2