PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Finished Scripts => Topic started by: TZB on 24 February, 2010, 16:24:19

Title: Hub Clock
Post by: TZB on 24 February, 2010, 16:24:19
Made it simple Haven't Completed fully since i haven't come across any ASCII clock :)
--[[
-- Hub Clock v 1.0 By T-z-B
-- Requested By ultrajo
-- Made it simple and sweet since i had not seen any previous script.
-- Haven't added any Decorations yet will add later if i get an idea of what kind to be added.
-- Time interval is kept 1 minute you can edit it as per your choice.
-- Thanks to C??o?y?? instructions in Current time Script.
]]--

-- "Botname" [Add as you wish]
bot = "Hub-Clock"
-- "BotDesc" [Describe]
botDesc = "I Send Time"
-- "Tag" [Version.DO NOT CHANGE]
botTag = "version.1.0"


function OnStartup()
TmrMan.AddTimer(1*60000) --[Time interval change as per needed]
       Core.RegBot(bot,botDesc,botTag,true)
end

function OnTimer()
Core.SendToAll("<"..bot..">".." Local Hub Time is "..os.date("%I.%M.%S.%p").." on "..os.date("%A").." , "..os.date("%d.%B.%Y"))
end

Title: Re: Hub Clock
Post by: TZB on 24 February, 2010, 18:23:26
After intense searching came across a script in Archived section and i think this script is not what that was requested so changed the name :) haven't yet got any full script.If anyone can find it would like go through it.