mIRC Home    About    Download    Register    News    Help

Print Thread
Msg #channel every 30 minutes #137663
17/12/05 07:45 AM
17/12/05 07:45 AM
Joined: Dec 2005
Posts: 54
Johannesburg, South Africa
B
Bundy Offline OP
Babel fish
Bundy  Offline OP
Babel fish
B

Joined: Dec 2005
Posts: 54
Johannesburg, South Africa
How can I set my bot to msg a channel it is in every 30 minutes?
I have a set of 10 sentences that it must say to the #channel... (in a spesific order)

for example:

<bot> www.mirc.com is a very useful website to visit...

<bot> to change your nickname type /nick <new nick>

<bot> remember our channels get together on the 4th of January 2006

etc...

Thanx alot for your help!!

Kind Regards,

Re: Msg #channel every 30 minutes #137664
17/12/05 08:35 AM
17/12/05 08:35 AM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
schaefer31  Offline
Fjord artisan
S

Joined: Aug 2005
Posts: 525
Code:
alias mirchelp {
  msg [color:red]#YourChannel[/color] www.mirc.com is a very useful website to visit...
  msg [color:red]#YourChannel[/color] to change your nickname type /nick &lt;new nick&gt;
  msg [color:red]#YourChannel[/color] remember our channels get together on the 4th of January 2006
}


Put the above in remotes (alt +r), File > New > Paste.

After that, start a timer like this:

/timerhelp 0 1800 mirchelp

0 - Means it does not stop, unless you specifically halt it or disconnect/close mirc.
1800 - This is 30 minutes represented in seconds.
The last part tells it to execute the alias I created which is called 'mirchelp'

Re: Msg #channel every 30 minutes #137665
17/12/05 09:13 AM
17/12/05 09:13 AM
Joined: Dec 2005
Posts: 54
Johannesburg, South Africa
B
Bundy Offline OP
Babel fish
Bundy  Offline OP
Babel fish
B

Joined: Dec 2005
Posts: 54
Johannesburg, South Africa
By the way... It works... but sends all 10 sentences at once to the channel. How can i fix this problem?

Thanks alot for your help, its appreciated... Two more things...

1. The 'help' part in /timerhelp is just a name that you give to the timer correct?

2. And if I want to start this script automatically everytime I connect my bot, can I put the following in remotes...

on 1:CONNECT:/timerhelp 0 1800 mirchelp

Happy days!
wink grin

Re: Msg #channel every 30 minutes #137666
17/12/05 12:28 PM
17/12/05 12:28 PM
Joined: Apr 2003
Posts: 701
Leuven, Belgium
K
Kelder Offline
Hoopy frood
Kelder  Offline
Hoopy frood
K

Joined: Apr 2003
Posts: 701
Leuven, Belgium
Put all lines in a text file. Then try
/play #channel messages.txt 2000
This should send all messages to your channel with a 2 second = 2000 ms delay between lines.

If this works, then put in a timer to do this every 30 minutes:
/timer.#channelmessage 0 1800 play #channel messages.txt 2000

If that works (it will wait 30 minutes == 1800 seconds before starting) then you can do it automatically when you join the channel, put this in remotes (alt-r alt-r) at the top or in a new script file:

on me:*:JOIN:#channel:timer.#channelmessage 0 1800 play #channel messages.txt 2000
on me:*:PART:#channel:timer.#channelmessage off

Re: Msg #channel every 30 minutes #137667
18/12/05 10:30 AM
18/12/05 10:30 AM
Joined: Dec 2005
Posts: 5
S
speedytuning Offline
Nutrimatic drinks dispenser
speedytuning  Offline
Nutrimatic drinks dispenser
S

Joined: Dec 2005
Posts: 5
i need a time and put this in the remote.


alias mirchelp {
msg #speedy zaterdag 24-12-05 wedstrijd triviant van 12:00 tot 22:00. inschrijfgeld 25.000. 1ste plaats 100.000.
melden bij speedy of via ingame message naar Princeprecia. tot dan
}


but it give no massege in the channel.

what is wrong whit it?

Re: Msg #channel every 30 minutes #137668
18/12/05 10:35 AM
18/12/05 10:35 AM
Joined: Dec 2005
Posts: 5
S
speedytuning Offline
Nutrimatic drinks dispenser
speedytuning  Offline
Nutrimatic drinks dispenser
S

Joined: Dec 2005
Posts: 5
i have found the problem.

its working now.