RiverRat Posted March 24, 2007 Report Share Posted March 24, 2007 From experience timers cannot be used on IRCx because mIRC takes $chan as a variable. Is there a way to use $chan with timers on IRCx? Link to comment Share on other sites More sharing options...
Warrior124 Posted March 24, 2007 Report Share Posted March 24, 2007 Can you give us a sample of the coding you wish to use with the timer? Link to comment Share on other sites More sharing options...
RiverRat Posted March 24, 2007 Author Report Share Posted March 24, 2007 Just a simple { timer 1 5 msg $chan Blah Blah } Link to comment Share on other sites More sharing options...
Guest Travis Posted March 24, 2007 Report Share Posted March 24, 2007 If channels on your network use the %# syntax you may need to remove the % or $chr(37) and replace it in different instances. I remember this issue on MSN. Those who used pre-built connections like Vincula or NuclearMSN may not have noticed since the connections took care of the issue for you. Link to comment Share on other sites More sharing options...
Ozzy10 Posted March 24, 2007 Report Share Posted March 24, 2007 timers dont work with $chan cause you could be in more than one chan and it wouldnt know which one to send the message to you could use /amsg in a timer i think or set the $chan as a variable and then use that to message the room Link to comment Share on other sites More sharing options...
hixxy Posted March 31, 2007 Report Share Posted March 31, 2007 timers dont work with $chan cause you could be in more than one chan and it wouldnt know which one to send the message to you could use /amsg in a timer i think or set the $chan as a variable and then use that to message the room $chan would be evaluated when the timer command is used, not when the timer fires, so it would from any event/location that $chan exists in. However, your variable idea would be the best way to do this. Something like this would work well: on *:join:#:{ set %chan $chan .timerblah 1 5 dowhatever } alias dowhatever { msg %chan hello unset %chan } Link to comment Share on other sites More sharing options...
Pyscho Posted March 31, 2007 Report Share Posted March 31, 2007 .timerblah 1 5 msg $!chr(37) $!+ $mid($chan, 2) hello Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted March 31, 2007 Report Share Posted March 31, 2007 Notice how he said IRCx. Not an MSN lookalike. Link to comment Share on other sites More sharing options...
Guest Travis Posted April 1, 2007 Report Share Posted April 1, 2007 Ive used aliases fine with timers. .timer $+ $chan 1 42 doit $nick $chan alias doit { if ($1 ison $2) kick $2 $1 you have been pwned by $me } Link to comment Share on other sites More sharing options...
hixxy Posted April 1, 2007 Report Share Posted April 1, 2007 Ive used aliases fine with timers. .timer $+ $chan 1 42 doit $nick $chan alias doit { if ($1 ison $2) kick $2 $1 you have been pwned by $me } That's fine, but he said the channels start with a %. Timers evaluate things twice so mIRC will interpret %#channel as a variable. To avoid that you can use the code provided by me or Psycho. Psycho's method is shorter but I find it more kludgy. It's much harder to read. Link to comment Share on other sites More sharing options...
Recommended Posts