mIRC Home    About    Download    Register    News    Help

Print Thread
#180457 09/07/07 11:56 PM
I
ispukikoy
ispukikoy
I
Hi. Please help. I need a remote script that will automatically
starts the timer when I Join a channel.

channel = #829=1
timer = /timer1 0 300 /me @local.hub.live.gay.com sets mode for Manila room Channel #829=X +tnl 100 -M

Please help. Thanks.

#180458 09/07/07 11:58 PM
L
LostShadow
LostShadow
L
on *:join:#YourChannel: { if ($nick == $me) { /timername 1 SecondsToStart /whatever you want here. } }

#180459 10/07/07 12:05 AM
I
ispukikoy
ispukikoy
I
Thank you so much sir!

#180460 10/07/07 12:31 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Also note that you can remove the if statement, by using the me prefix in the ON JOIN event. This would make the code look something like
Code:
on me:*:join:#YourChannel: { /timer 1 SecondsToStart /whatever you want here. } 


Noting the fact that you used 1 in your original example for the timer, I'm going to guess that you're not familiar with naming timers, so I'm going to recommend that you not name the timer, as mIRC will automatically give the timer an incrementing number, or the number of a timer that has already expired, if no name is specified. If you specify a name for a timer, and then specify the same name when trying to set a different timer, the most recent setting takes priority and overrides the previous settings.

Last edited by RusselB; 10/07/07 12:35 AM.
RusselB #180461 10/07/07 12:37 AM
I
ispukikoy
ispukikoy
I
something went wrong when I used the code above.
The timer started in the channel.
in the status window it said: * Timer 1 activated
but I got error message in the status window:
* /me: cannot use /me in this window

this was what I put in my remotes:

on *:join:#829=1: { if ($nick == $me) { /timer1 0 300 /me @local.hub.live.gay.com sets mode for Manila room Channel #829=X +tnl 100 -M } }

I only wanted to /me <message> every 5 mins and activate the timer whenever I join the channel.

Something is wrong. frown

Last edited by ispukikoy; 10/07/07 12:39 AM.
#180470 10/07/07 01:12 AM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Use /describe instead of /me.

Code:
on me:*:join:#829=1: {
  .timerdescribe 0 300 decribe $chan @local.hub.live.gay.com sets mode for Manila room Channel #829=X +tnl 100 -M
}


Note that if that @local.* part is a custom window that you want your action to appear in, then remove $chan from that line. Otherwise, leave it as-is and it will display in the channel.

Riamus2 #180472 10/07/07 02:49 AM
I
ispukikoy
ispukikoy
I
Thank you Riamus. Your script works perfectly well.
I just have one more question...

Using the same script of Riamus, How do modify the script
to say:

/me Hello World

whenever I join channel #829=1

Thanks in advance!

#180473 10/07/07 03:06 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Code:
on me:*:join:#829=1: {
  .describe $chan Hello World
  .timerdescribe 0 300 describe $chan @local.hub.live.gay.com sets mode for Manila room Channel #829=X +tnl 100 -M
}

RusselB #180474 10/07/07 03:40 AM
I
ispukikoy
ispukikoy
I
Thanks for all the help.
Appreciate it!


Link Copied to Clipboard