From 2454f29a1fd41db4fff24467100209929f1e32c2 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 21 Jun 2018 22:30:56 -0300 Subject: *input() is broken? o.o --- npc/commands/scheduled-broadcasts.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/npc/commands/scheduled-broadcasts.txt b/npc/commands/scheduled-broadcasts.txt index 74a182a23..f8ce3481d 100644 --- a/npc/commands/scheduled-broadcasts.txt +++ b/npc/commands/scheduled-broadcasts.txt @@ -7,7 +7,7 @@ function script StoneBoard { clear; mes l("Please enter the message:"); next; - input .@msg$; + input(.@msg$); debugmes "setMessage, received from input: "+.@msg$; .@msg$ = strip(.@msg$); debugmes "setMessage, stripped: "+.@msg$; @@ -17,6 +17,15 @@ function script StoneBoard { debugmes "setMessage ------ FAILURE"; mes l("The message cannot be empty"); next; + .@msg$=input(.@msg$); + debugmes "setMessage, received from input: "+.@msg$; + .@msg$ = strip(.@msg$); + debugmes "setMessage, stripped: "+.@msg$; + if (.@msg$ != "") { + return .@msg$; + } + debugmes "setMessage ------ DEFINITIVE FAILURE"; + next; } while (.@msg$ == ""); return .@msg$; } -- cgit v1.2.3-60-g2f50