mIRC Home    About    Download    Register    News    Help

Print Thread
#25662 23/05/03 05:07 PM
Joined: Dec 2002
Posts: 18
G
Gwion Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Dec 2002
Posts: 18
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

#25663 23/05/03 05:11 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Yes, use a /timer that $read's a random line from the file and then does a /topic at the given interval.

#25664 23/05/03 05:18 PM
Joined: Dec 2002
Posts: 18
G
Gwion Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Dec 2002
Posts: 18
Hi,

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

Gwion

#25665 23/05/03 05:19 PM
Joined: Mar 2003
Posts: 49
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Mar 2003
Posts: 49
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

#25666 24/05/03 06:36 AM
Joined: Mar 2003
Posts: 54
J
Babel fish
Offline
Babel fish
J
Joined: Mar 2003
Posts: 54
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)


#25667 24/05/03 01:24 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
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

#25668 19/06/03 05:17 AM
Joined: Mar 2003
Posts: 54
J
Babel fish
Offline
Babel fish
J
Joined: Mar 2003
Posts: 54
I didn't assume he'd use that in the editbox. Could be used in the editbox or remotes, so who knows.


Link Copied to Clipboard