mIRC Home    About    Download    Register    News    Help

Print Thread
#139258 12/01/06 08:37 PM
Joined: Jan 2006
Posts: 6
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jan 2006
Posts: 6
hey all,

I am very new to this. I wanted a little script that messages a user when they logon to a irc server...

XXX joins server XXX.blah.org

then they receive a msg in there private box...

Hey there!

Any help would be great.

#139259 12/01/06 08:40 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I guess you only can do that if you have oper status on that network/server.. corect me if im wrong.. wink


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#139260 12/01/06 08:44 PM
Joined: Jan 2006
Posts: 6
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jan 2006
Posts: 6
its more like a noticifcation, as when someone in your notify list logs in,
there is a msg thats displayed

when that happens then i would like to be able to send them a msg.

is that possible

#139261 12/01/06 08:49 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
ahh..
Code:
on *:NOTIFY:{ 
echo -a $nick signed in at $time
.msg $nick Hi how are you today?
}
on *:UNOTIFY:{
echo -a $nick left irc at $time
}

that goes in to your remote.. ALT + R in mirc..

EDIT -------------------

You wont see the message you send to the user, remove the "." infront of .msg and u will see it..

Last edited by sparta; 12/01/06 08:52 PM.
#139262 12/01/06 11:03 PM
Joined: Jan 2006
Posts: 6
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jan 2006
Posts: 6
Thats perfect!!

Now.. is it possible, for it to be more user specific... ie

Matt - Hey there
Mark - Good Day
Luke - How ya doing
John - Long time no see

cheerz

#139263 13/01/06 12:01 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
In simplest form:

Code:
on *:NOTIFY:{ 
  if ($nick == Matt) { .msg $nick Hey there }
  else if ($nick == Mark) { .msg $nick Good Day }
  else if ($nick == Luke) { .msg $nick How ya doing }
  else if ($nick == John) { .msg $nick Long time no see }
}


I'd suggest however that you make use of userlevels.
Have a look at /help access levels as well as /help $level.

#139264 13/01/06 02:21 AM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
does it mather? wink i cant see any harm in that the wrong person may get the msg? no password or any other info is sent true the text.. the worst that chan happen is that he maybe have to write: "Sorry i belived it was my friend" smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#139265 13/01/06 03:21 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
It doesn't necessarily matter. It's a cross between what type of information is being send and personal preference. Personally, I'd feel safer knowing the information is going to the exact person I intended it for.

#139266 13/01/06 03:26 AM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
i have to test it.. and since the on *:NICK: was there i used it.. smile thnx for your help smile have a nice night/day #depending on ur timezone", here its soon morning, so time for bed grin


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#139267 13/01/06 02:43 PM
Joined: Jan 2006
Posts: 6
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jan 2006
Posts: 6
Cheers for all the help smile

#139268 13/01/06 07:34 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Quote:
In simplest form:

Code:
on *:NOTIFY:{ 
  if ($nick == Matt) { .msg $nick Hey there }
  else if ($nick == Mark) { .msg $nick Good Day }
  else if ($nick == Luke) { .msg $nick How ya doing }
  else if ($nick == John) { .msg $nick Long time no see }
}


I'd suggest however that you make use of userlevels.
Have a look at /help access levels as well as /help $level.


as an example of one that I used for a DCC allow on DALnet

Code:
on *:notify:{
  if ($network == DALnet) {
    var %address $mask($wildsite,3)
    if ($nick == Mathew) && (%address == *!*@*.host.net) { notice Mathew Welcome Home Mathew }
  }
}


$wildsite doesnt have the user in the address, but as a test of the nick being the person you intended I think this is workable.


Link Copied to Clipboard