PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: tassen on 09 March, 2005, 09:40:01

Title: Help to convert!
Post by: tassen on 09 March, 2005, 09:40:01
BotName = "InfoBot"
InfoFile = "txt/info240.txt"
TimeSpanInMinutes =240

function Main()
   SetTimer(TimeSpanInMinutes*60000)
   StartTimer()
end

function OnTimer()
   SendToAll("<"..BotName..">")
   SendToAll("<"..BotName.."> --==>This message sends every "..TimeSpanInMinutes.." min.<==--")
   SendToAll("<"..BotName..">")

      readfrom(InfoFile)
      while 1 do
         local line = read()
         if (line == nil) then
            break
         else
            SendToAll("<"..BotName.."> "..line)
         end
      end
 
end
Title: Help!
Post by: tassen on 09 March, 2005, 19:21:57
Is't any here to help me to convert this small thing?

Regards Tassen
Title:
Post by: bastya_elvtars on 09 March, 2005, 19:31:48
post it like this:

[ code]
-- your code
[ /code]

without space after [.

Also disable emotes plz.