mIRC Home    About    Download    Register    News    Help

Print Thread
#211114 04/04/09 02:24 PM
Joined: Oct 2003
Posts: 11
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Oct 2003
Posts: 11
Hello
I use to have a command in mirc perform that only showed in one room that i was in. unfortunatel i accidently erased it, I would appreciate any help. what i need is a timer add that would play once a hour that says no working server, no voice. no exceptions and i need that to only play in only one of the rooms im in. thanks.

charlene #211122 04/04/09 07:00 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Goes into mirc perfom. Change #channel to the the one you want to send the message to. I hope this is it:
Code:
.timer 0 3600 msg #channel no working server, no voice. no exceptions.

Tomao #211153 05/04/09 02:16 PM
Joined: Oct 2003
Posts: 11
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Oct 2003
Posts: 11
Thanks for the reply.. what you gave me dont seem to work in the perform box but it works when i type it in the romm. only bad part is i have to type it every time i reboot mirc but its better than nothing. thanks again

charlene #211166 05/04/09 05:18 PM
Joined: Mar 2009
Posts: 74
K
Babel fish
Offline
Babel fish
K
Joined: Mar 2009
Posts: 74
You could try this, again changing #channel to the name of the channel.
Code:
On *:Join:#channel:{
  if ($nick == $me) { .timer 0 3600 msg #channel No working server. No voice. No exceptions. }
}

Last edited by KageNoOni; 05/04/09 05:19 PM.
KageNoOni #211177 05/04/09 07:18 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Instead of if $nick == $me, you could do this:
Code:
on me:*:JOIN:#channel: { .timer 0 3600 msg #channel No working server. No voice. No exceptions. }

And it goes into your remote, not perform.

KageNoOni #211179 05/04/09 07:59 PM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
I suggest to use a named timer (or to check if there's already such a timer running) - else you'll have multiple timers running for the same channel in case of rejoin. smile

Example: By using a named timer it's "restarting" (overwriting) the timer for this chan at every join. In addition it's checking if you're still on that channel. If you are it's sending the msg, if you're not it's stopping the timer.
Code:
on me:*:join:#yourchannel:{
  var %msg = No working server. No voice. No exceptions.
  .timerMsgTo $+ $chan 0 3600 $!iif(( $!me ison $safe($chan) ), msg $!v2 %msg , .timer $!+ $!ctimer off)
}
alias safe { return $!decode( $encode($1,m) ,m) }


Tomao #211205 07/04/09 04:28 AM
Joined: Mar 2009
Posts: 74
K
Babel fish
Offline
Babel fish
K
Joined: Mar 2009
Posts: 74
Would "On me" work if you don't set up a me access level in the user list? I created that access level because I have more than one server I join, and have different nicks in some of them. But can it be used with out making the access level?

KageNoOni #211207 07/04/09 05:25 AM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
The me-prefix isn't documented in the helpfile, but can be used for all events you can trigger yourself - to limit an event definition to yourself exclusively. Think of it as the counterpart to the !-prefix. It's no access level, and it differs slightly from the standard format "on <prefix><level>:<event>:(...)" by the extra ":".

Horstl #211211 07/04/09 12:46 PM
Joined: Oct 2003
Posts: 11
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Oct 2003
Posts: 11
appreciate the replys.. thank you horst, i put that in remotes and it does what i want so thanks. my hats off to anyone who can put $ me ! in a sentence line and it make sense. so thanks to all


Link Copied to Clipboard