AuthorMessage
ATAG
n00b
Posts: 12

This script puts  current time into userlist
Code:
----------------------------------------------
--hex_timebot.lua  by ATAG
version = 2.12
----------------------------------------------
desc = "¤ Time bot by ATAG ¤"   -- bot's description
email = "forma1hub.gmail.com"   -- bot's email
t = {"(•","•)"}               -- ex: (•18:00•)
function Main()
   timer1 = NewTimer("OnTimeBot")
   timer1:Set(60000 - i)
   timer1:Start()
   GetName()
   SendMyINFO()
end
i = tonumber(os.date("%S"))*1000
set = 1
function SendMyINFO()
   SendToAll("$MyINFO $ALL "..name.." "..desc.."<TimeBot by ATAG V:"..version..">$ $Bot\5$"..email.."$0$")
end
OnTimeBot = function()
   if set then
      timer1:Stop()
      timer1:Set(60000 - i)
      timer1:Start()
      set = nil
      i = nil
   end
   SendToAll("$Quit "..name)
   GetName()
   SendMyINFO()
end
function GetName()
   local Time = os.date("%H:%M")
   if not Time then Time = "ERROR" end
   name = t[1]..Time..t[2]
end
function Unload()
   SendToAll("$Quit "..name)
end

ahile
n00b
Posts: 18

somebody tell me how to use the scripts , i am a beginer  in HeXHub.I  instal the simple scripts like Timed Message , Sysinf. But how to instal this script in HeXHub ...  tres difficile pour moi !
Lord_Zero
Ametuar
Posts: 122

Read this: http://www.meka-meka.com/forum/viewtopic.php?t=476
Badday
Clone
Posts: 5

I can't see that with witch lua plugin i should use that timebot??  :roll:
Meka][Meka
Unstopable
Posts: 700

timer1 = NewTimer("OnTimeBot") < must be meka lua plugin, judging by this line ;)
Badday
Clone
Posts: 5

Ok..Thanks Meka Meka   :wink: