summaryrefslogtreecommitdiff
path: root/npc/commands/scheduled-broadcasts.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-21 22:20:39 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-21 22:20:39 -0300
commit8baffd33b467eda596256c9b246779b789b7a5aa (patch)
treeaa206dec9a4950e91f695145ffae913d4c8ea458 /npc/commands/scheduled-broadcasts.txt
parent001d3e994ff83f4c20dcc5f15df29d97bd364e07 (diff)
downloadserverdata-8baffd33b467eda596256c9b246779b789b7a5aa.tar.gz
serverdata-8baffd33b467eda596256c9b246779b789b7a5aa.tar.bz2
serverdata-8baffd33b467eda596256c9b246779b789b7a5aa.tar.xz
serverdata-8baffd33b467eda596256c9b246779b789b7a5aa.zip
Where's this bug?
Diffstat (limited to 'npc/commands/scheduled-broadcasts.txt')
-rw-r--r--npc/commands/scheduled-broadcasts.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/commands/scheduled-broadcasts.txt b/npc/commands/scheduled-broadcasts.txt
index cb40ed7d1..b578d78e1 100644
--- a/npc/commands/scheduled-broadcasts.txt
+++ b/npc/commands/scheduled-broadcasts.txt
@@ -1,19 +1,21 @@
function script StoneBoard {
function setMessage {
+ .@msg$="";
do
{
clear;
mes l("Please enter the message:");
next;
input .@msg$;
- //.@msg$ = strip(.@msg$);
+ .@msg$ = strip(.@msg$);
if (.@msg$ != "") {
return .@msg$;
}
mes l("The message cannot be empty");
next;
- } while (1);
+ } while (.@msg$ == "");
+ return .@msg$;
}
function setInterval {