PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: damo on 21 April, 2005, 21:33:54

Title: time as user
Post by: damo on 21 April, 2005, 21:33:54
can anyone help get this script to work. it used to work till i put latest ptokax on any help please.

-- timebot by WooshMan -- landofkaraoke.ath.cx
-- creates a dummy user at the top of the user list
-- and displays the time as the user name.
-- A clock which diplays the current time in Hours, Minutes and Seconds.
-- Converted to LUA 5 by nErBoS

current = os.date("%H:%M:%S")
sec = 1000

--------------------------------------------------------
function Main()
frmHub:RegBot("-=" ..current .."=-")
SetTimer(sec)
StartTimer()
end
--------------------------------------------------------
function OnTimer()
frmHub:UnregBot("-=" ..current .."=-")
time = os.date("%H:%M:%S")
current = time
frmHub:RegBot("-=" ..current .."=-")
end
--------------------------------------------------------
function OnExit()
frmHub:UnregBot("-=" ..current .."=-")
end
Title:
Post by: ??????Hawk?????? on 21 April, 2005, 21:53:00
change the dividing Chars in this line  ...

current = os.date("%H:%M:%S")

the : is refused by Ptokax

try something like this

current = os.date("%H_%M_%S")


??????Hawk??????
Title: time as user
Post by: damo on 21 April, 2005, 21:58:15
cheers hawk works great now thx any chance of makeing your hangman into a stand alone script