mIRC Home    About    Download    Register    News    Help

Print Thread
#91793 26/07/04 06:15 AM
Joined: Apr 2004
Posts: 5
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Apr 2004
Posts: 5
Alot of people PM me asking to idle their channels and etc...
So i need something so i can auto reply\PM back with a text saying something like
"I do not idle public channels, Write your message directly or get ignored..." blah blah...

How can i do it?

thanks laugh

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
This script will auto-reply to every new PM that contains the # char:
  • On ^*:open:?:*#*:{
    haltdef
    .msg $nick I do not idle on public channels, Write your message directly or get ignored...
    }
In addition, /haltdef will take care of auto-closing the message window.

Joined: Apr 2004
Posts: 5
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Apr 2004
Posts: 5
What does it do?
Everytime someone PM's me with a "#" it replies with this message, or it replies to every PM with this message, and i dont want to close it afterwards.

Sorry for being such a newbie and thanks for helping me laugh

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
It only checks the first line of your conversation. Btw, the code goes to the remote (Alt+R).

Joined: Apr 2004
Posts: 5
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Apr 2004
Posts: 5
I still don't get it -_- sorry

i press alt+r paste that code at the remote tab,
and it doesn't do anything, i don't auto reply and nothing...

and how do i make it reply not only to ad messages. but to every PM.

I'm using NNscript if it matters

Last edited by mark1221; 26/07/04 07:13 AM.
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
It works here with NNScript. Make sure you paste the code into the script file "ownstuff.mrc" (see the View menu in the Alt+R dialog)

You don't see yourself replying because the message window does not appear at all - it's halted immediately.

If you want to auto reply to every PM and keep the window open, use this code instead:
  • On *:open:?:*: msg $nick Hello, this is my auto reply.

Joined: Jul 2004
Posts: 6
T
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Jul 2004
Posts: 6
An easier way of doing the same thing:

on *:TEXT:*:?: {
.msg $nick Please do not PM me.
.window -c $nick
}

If you have a decent computer, you won't even see the PM window.

Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hi,

in the original example of Online, this is the case.

He is preventing from letting the query open, because he uses haltdef (or halt) along with the on OPEN event and ^ prefix. With this code it doesn't matter whether you have a fast or slow PC, the query is stopped from opening.

Your code lets the query open, and then closes it again right away. Can't really say it's an easier way, or the same thing.

Greets


Gone.
Joined: Apr 2004
Posts: 5
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Apr 2004
Posts: 5
I don't need it to close, just reply and stay open so i can see teh message :\


Link Copied to Clipboard