Skip to content
MSN Addons

Need an addon

A TG007 community discussion started by nyt1972.

Closed discussion 26 posts
Page 1 of 2
Closed
Topic #4847 · 26 published posts · 2,876 views

Hello,

 

I need a code which display a message at a specific time, e.g. at 12:00 PM its say good noon, and at 05:00 PM it say good evening etc.

 

thanx.

using the help file, /timer will do exactly what you are requesting. This is basically what you need to look at:

 

/timer[N/name] [-ceomhipr] [time] <repetitions> <interval> <command>

...

/timer9 14:30 1 1 /say It's now 2:30pm

 

This will wait until 2:30pm and will then announce the time once and stop.

/timer1 17:05 1 1 /say Timer test 1

/timer2 17:06 1 1 /say Timer test 2

/timer1 17:07 1 1 /say Timer test 3

 

 

I am dump, I wrote this code but its doing nothing. help me plz.

that should work, but make sure you don't use the same names. See how you have timer1, timer2 and timer1. well the name of that timer is the text after timer. So you have the names as, 1 2 1. But because the name is the same, it just overrides the previously set one.

I tried this one but not working

 

 

/timer1 18:00 1 1 /msg $chan Timer test 1

/timer2 19:00 1 1 /msg $chan Timer test 2

/timer3 20:00 1 1 /msg $chan Timer test 3

 

you do know that it waits till 7pm to message? and you can't use $chan cause the % will stuff it up. Try this.

 

/timer1 18:00 1 1 /msg $!chr(37) $!+ $right($chan,-1) Timer test 1
/timer2 19:00 1 1 /msg $!chr(37) $!+ $right($chan,-1) Timer test 2
/timer3 20:00 1 1 /msg $!chr(37) $!+ $right($chan,-1) Timer test 3

Thanx for your help GD but its not working, may u didnt get I actually want.

 

I want that it say automatically in main i.e. "Timer test 1" at 19:00 etc.

 

this is the whole code in my script

 

/timer1 18:43 1 1 /msg $!chr(37) $!+ $right($chan,-1) Timer test 1
/timer2 18:45 1 1 /msg $!chr(37) $!+ $right($chan,-1) Timer test 2
/timer3 20:00 1 1 /msg $!chr(37) $!+ $right($chan,-1) Timer test 3

put this in

 

on *:START: {

timer1 18:43 1 1 /msg $!chr(37) $!+ $right($chan,-1) Timer test 1

timer2 18:45 1 1 /msg $!chr(37) $!+ $right($chan,-1) Timer test 2

timer3 20:00 1 1 /msg $!chr(37) $!+ $right($chan,-1) Timer test 3

}

Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

Haggis it didnt show this message in main chat but in status window of my bot it showed the following. by the way I use Kenobi script.

 

 

[20:34:01] -> *%Timer* test 1

-

* Timer 1 halted

try this instead

 

on *:START: {
 timer1 18:43 1 1 msg $!chan(1) Timer test 1
 timer2 18:45 1 1 msg $!chan(1) Timer test 2
 timer3 20:00 1 1 msg $!chan(1) Timer test 3
}

"the important thing was, that i had an onion on my belt, which was the style at the time"

I tried all the above codes nothing happened, but when I type /timer it show me the following:

 

* Active timers:

* Timer 1 19:26 1 time(s) 1s delay /msg $chan(1) Timer test 1 (MSN)

* Timer 2 18:45 1 time(s) 1s delay /msg $chan(1) Timer test 2 (MSN)

* Timer 3 20:00 1 time(s) 1s delay /msg $chan(1) Timer test 3 (MSN)

* Timer msn.look.main 20s delay sockwrite -tn msn.look.main VERSION (MSN)

* Timer msn.look.comm 20s delay sockwrite -tn msn.look.comm VERSION (MSN)

* Timer .noop.999 100s delay .raw NOOP (MSN)

* Timer norm2udate 7200s delay msn.ppu99 (MSN)

* Timer .noop.1 100s delay .raw NOOP (MSN)

 

 

hope u all got that what I actually wanted.

thanx every one for help, this code is working fine now, but I want that the text "test 1" to be display in large fonts, how to do it. help plz.

 

on *:START: {
 timer1 05:20 1 1 /msg $!chan(1) Test 1
 timer2 13:30 1 1 /msg $!chan(1) Test 2
 timer3 16:45 1 1 /msg $!chan(1) Test 2
}

 

 

Hope This Helps

.Bold Colors
 Aqua:  S Tahoma;0 
 Black:  S Tahoma;0  
 Blue:  S \rTahoma;0 
 Gray:  S \nTahoma;0
 Green:  S Tahoma;0 
 Navy:  S Tahoma;0  
 Purple:  S Tahoma;0  
 Yellow:  S Tahoma;0 
 Red: S eTahoma;0  

 

and u add color code here

 

on *:START: {
 timer1 06:18 1 1 msg $!chan(1) S eTahoma;0  your message here
 timer2 13:17 1 1 msg $!chan(1) S \nTahoma;0  your message here
 timer3 13:19 1 1 msg $!chan(1) S Tahoma;0 your message here
 }

 

Tested and working

Edited Oct 4, 2005 8:27 PM by RAIN70

you forgot the end tags for the colour codes

 

 

CODE  
on *:START: {
timer1 06:18 1 1 msg $!chan(1) S eTahoma;0 your message here 
timer2 13:17 1 1 msg $!chan(1) S \nTahoma;0 your message here 
timer3 13:19 1 1 msg $!chan(1) S Tahoma;0 your message here 
} 

My code does NOT have bugs. It just develops random features.

Thank you all,

 

can u tell me what is this character s \r and \n means.

What I wanted to know is that:

 

I want to display a bid message on with a blank line b4 and after it.

 

plz if u cud explain which keys to press for colors and fonts/sizes in mirc.

Thanks every one. This code works fine, but it just work for once and I want it to work continuously. help me please.

 

on *:START: {

timer1 06:18 1 1 msg $!chan(1) S eTahoma;0 your message here

timer2 13:17 1 1 msg $!chan(1) S \nTahoma;0 your message here

timer3 13:19 1 1 msg $!chan(1) S Tahoma;0 your message here

}

 

Thanks every one. This code works fine, but it just work for once and I want it to work continuously. help me please.

 

on *:START: {

timer1 06:18 1 1 msg $!chan(1) S eTahoma;0 your message here

timer2 13:17 1 1 msg $!chan(1) S \nTahoma;0 your message here

timer3 13:19 1 1 msg $!chan(1) S Tahoma;0 your message here

}

 

Pulled from the mIRC help file:

 

/timer1 0 20 /ame is AWAY!

 

Timer1 will repeat an all channel action every 20 seconds until you stop the timer.

 

So this code "should" work for you:

 

on *:START: {
timer1 06:18 0 1 msg $!chan(1) S eTahoma;0 your message here 
timer2 13:17 0 1 msg $!chan(1) S \nTahoma;0 your message here 
timer3 13:19 0 1 msg $!chan(1) S Tahoma;0 your message here 
}

 

Help this helps!

- Compu

i don't know