summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-21 22:32:33 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-21 22:32:33 -0300
commitad1b31ab93f3a2ca29cd2d068e6967d07459cb69 (patch)
tree3fab691a49eebf216c690d2734996f886e985625 /npc
parent2454f29a1fd41db4fff24467100209929f1e32c2 (diff)
downloadserverdata-ad1b31ab93f3a2ca29cd2d068e6967d07459cb69.tar.gz
serverdata-ad1b31ab93f3a2ca29cd2d068e6967d07459cb69.tar.bz2
serverdata-ad1b31ab93f3a2ca29cd2d068e6967d07459cb69.tar.xz
serverdata-ad1b31ab93f3a2ca29cd2d068e6967d07459cb69.zip
Fix stuff
Diffstat (limited to 'npc')
-rw-r--r--npc/commands/scheduled-broadcasts.txt18
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 {