mIRC Homepage
Posted By: Gwion Random topics? - 23/05/03 05:07 PM
Hi,

Question - is there a way to set random topics in a channel (taken from a .txt file) - eg. every 5 or 6 hours or daily etc.?
With Mirc 6.03.

Thx.
Gwion
Posted By: codemastr Re: Random topics? - 23/05/03 05:11 PM
Yes, use a /timer that $read's a random line from the file and then does a /topic at the given interval.
Posted By: Gwion Re: Random topics? - 23/05/03 05:18 PM
Hi,

Um, no idea how to do that .. I only know how to make it with the quit message (no timer though).

Gwion
Posted By: SnakeRulez Re: Random topics? - 23/05/03 05:19 PM
Work with timers

/timer1 0 1800 /topic #YourChan $read(txt.txt)

Change #YourChan To Your Channel name
and change txt.txt to your text file with the topics
Posted By: Jagfire Re: Random topics? - 24/05/03 06:36 AM
Actually, SnakeRulez, that wouldn't work because the first time the command is performed, the $read identifier would be evaluated once and the same topic would be set each time.
This can be prevented by using $!identifier, to have it re-evaluated each time the timer is activated.
Code:
timer1 0 1800 topic #YourChan $!read(txt.txt)

Posted By: ScatMan Re: Random topics? - 24/05/03 01:24 PM
well Jagfire, snakerulez was right also, cuz he put only ONE / in the command so if u type it from the EDITBOX the identifier won't evaluted immideatly but it will 're-evaluted' when the timer triggered
Posted By: Jagfire Re: Random topics? - 19/06/03 05:17 AM
I didn't assume he'd use that in the editbox. Could be used in the editbox or remotes, so who knows.
© mIRC Discussion Forums