diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-21 22:32:33 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-21 22:32:33 -0300 |
commit | ad1b31ab93f3a2ca29cd2d068e6967d07459cb69 (patch) | |
tree | 3fab691a49eebf216c690d2734996f886e985625 /npc/commands | |
parent | 2454f29a1fd41db4fff24467100209929f1e32c2 (diff) | |
download | serverdata-ad1b31ab93f3a2ca29cd2d068e6967d07459cb69.tar.gz serverdata-ad1b31ab93f3a2ca29cd2d068e6967d07459cb69.tar.bz2 serverdata-ad1b31ab93f3a2ca29cd2d068e6967d07459cb69.tar.xz serverdata-ad1b31ab93f3a2ca29cd2d068e6967d07459cb69.zip |
Fix stuff
Diffstat (limited to 'npc/commands')
-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 { |