From 8baffd33b467eda596256c9b246779b789b7a5aa Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 21 Jun 2018 22:20:39 -0300 Subject: Where's this bug? --- npc/commands/scheduled-broadcasts.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'npc/commands/scheduled-broadcasts.txt') 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 { -- cgit v1.2.3-60-g2f50