diff options
-rw-r--r-- | npc/commands/scheduled-broadcasts.txt | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/npc/commands/scheduled-broadcasts.txt b/npc/commands/scheduled-broadcasts.txt index f8ce3481d..78515e09e 100644 --- a/npc/commands/scheduled-broadcasts.txt +++ b/npc/commands/scheduled-broadcasts.txt @@ -1,33 +1,19 @@ function script StoneBoard { function setMessage { - .@msg$=""; do { clear; mes l("Please enter the message:"); next; - input(.@msg$); - debugmes "setMessage, received from input: "+.@msg$; + input .@msg$; .@msg$ = strip(.@msg$); - debugmes "setMessage, stripped: "+.@msg$; if (.@msg$ != "") { return .@msg$; } - 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$; + } while (1); } function setInterval { |