PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: mjj on 31 October, 2003, 14:40:23

Title: lua syntax
Post by: mjj on 31 October, 2003, 14:40:23
Hi people

how is the lua syntax to exlude the time signature from main or pvt via lua?

I know that %A  %D  %T are for date and time, but how i do exlude date from main chat or  pvt chat without Dc++ settings





Sorry for my bad english :(
Title:
Post by: BlazeXxX on 31 October, 2003, 17:02:39
Hmm.. I really don't get what you trying to say, but i can guess from this time etc.. it must be a Uptime problem.. or A Time to Time messenger that sends out any msg every hr or something ?

Can u pls copy and paste the script u want us to modify?
Title:
Post by: mjj on 31 October, 2003, 17:30:41
here it is..


BotName = "TimerBot"

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

function OnTimer()
SendToAll(BotName, (">>> Hi people <<<"))
end

_____________________________________________


On the mainchat it is :

[16:36] >>> Hi people <<<

How can i obtain:

>>> Hi people <<<
_____________________________________________

 :))
Title:
Post by: Optimus on 31 October, 2003, 17:55:51
mm, i think the only way is to disable timestams in your dc++ settins. sorry m8
Title:
Post by: BlazeXxX on 31 October, 2003, 18:04:42
[16:36]  that tag is default by DC++ client... Take the tick off in File>Settings>Appearance> Show Time stamps in Chat...

That should solve your pbm..