All greetings! I here the newcomer but as I have understood you probably can help my problem.
I have changed PtokaX for version 0.3.3.0 build 17.08 and my script worked on lua4. you could not convert it in lua 5 or tell where it is possible to find a similar script for this version PtokaX.
P.S.At once I am sorry for the bad English :)
And here a script:
-- TimeBot by aMutex - 26.06.2005
BotName = "Time"
TimeSpanInMinutes = 60
function Main()
SetTimer(TimeSpanInMinutes*60000)
StartTimer()
end
function OnTimer()
SendToAll(BotName, date("Today %A %D. And time now %T ...Whether it is time to be freshened?? =)))"))
end
Here you have... NOTE that "date" is changed to os.date!
-- TimeBot by aMutex - 26.06.2005
-- Converted to LUA5 by TTB - 08.09.2005
-----------------------------------------
BotName = "Time"
TimeSpanInMinutes = 60
function Main()
SetTimer(TimeSpanInMinutes*60000)
StartTimer()
end
function OnTimer()
SendToAll(BotName, os.date("Today %A %D. And time now %T ...Whether it is time to be freshened?? =)))"))
end
Many thanks for a prompt reply:) I shall test Now :D
You're welcome :)