diff options
-rw-r--r-- | localserver/npc/026-5_blackbox.txt | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/localserver/npc/026-5_blackbox.txt b/localserver/npc/026-5_blackbox.txt index da4f7bf..226821e 100644 --- a/localserver/npc/026-5_blackbox.txt +++ b/localserver/npc/026-5_blackbox.txt @@ -4,6 +4,23 @@ // Description: // The Impregnable Fortress Control Files - Riddle Blackbox // Quest: General_Fortress -// (MaxFloor+1, internal, internal) +// (MaxFloor+2, internal, internal) +// Syntax: +// 0235_Riddle_BlackBox( {riddle_id} ) +// Returns true on success, false on failure. +function script 0235_Riddle_BlackBox { + setarray .@q$, "I have no questions for now"; + setarray .@r$, ""; + setarray .@l$, l(""); + .@id = miller_rand(getarg(0), getcharid(0), getarraysize(.@q$)-1); + + // Question, then answer is input, and returns + mesq l(.@q$); + next; + mes ""; + input .@ans$; + + return riddlevalidation(.@ans$, .@r$[.@e], .@l$[.@e]); +} |