mIRC Home    About    Download    Register    News    Help

Print Thread
#130622 20/09/05 12:00 AM
Joined: Oct 2003
Posts: 10
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Oct 2003
Posts: 10
Hello, I was curious to know is there if there's like a variable type thing for a private message?

Reason being i'm doing something with private message... an echo to the active window IF i get private messaged.

Thanks :-)

#130623 20/09/05 12:10 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
On *:Open:?:*: {
  echo -a $+([Privately] $nick -> $me,:) $1-
}


-Andy

#130624 20/09/05 12:13 AM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Code:
on *:OPEN:?:echo $color(info) -aet * $nick just messaged you $iif($cid != $activecid,on $network)

#130625 20/09/05 12:16 AM
Joined: Oct 2003
Posts: 10
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Oct 2003
Posts: 10
I'm a bit confused...so...i'll give you what i have so far, so you're not confused.

on ^*1:TEXT:*:*:{
if ($me isin $1-) {
if ($chan == $active) { halt }
else { echo -a 12MESSAGE TO YOU < $+ $nick $+ > $1- }
}
}


i'd like to include an IF statement for a private message simular to the channel one

#130626 20/09/05 12:20 AM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
hmmm why not just do this..

options (alt+o) > irc

under Show in active select Queries

#130627 20/09/05 12:23 AM
Joined: Oct 2003
Posts: 10
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Oct 2003
Posts: 10
Quote:
hmmm why not just do this..

options (alt+o) > irc

under Show in active select Queries


because i want to do it this way...lol

#130628 20/09/05 12:26 AM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
try

if ($query($nick) == $active)

#130629 20/09/05 12:36 AM
Joined: Oct 2003
Posts: 10
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Oct 2003
Posts: 10
Quote:
try

if ($query($nick) == $active)


how does that fit into that little script there?

#130630 20/09/05 03:22 AM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Well since I'm not sure exactly what it is you're trying to
accomplish, I would say use it the same way you're
using if ($chan == $active)

#130631 20/09/05 06:40 AM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Slight alteration to mIRCManiac's code, change the on text to on *:OPEN:?: if you want this to happen only when somebody new messages you.

Code:
on ^*1:TEXT:*:?:{
  if ($active &amp;&amp; $target != $active) { 
    echo -aet 12MESSAGE TO YOU &lt; $+ $nick $+ &gt; $1-  $iif($cid != $activecid, - $network)
  }
}


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
#130632 20/09/05 06:51 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Slight error in first line of code dude.. smile

Code:
on ^*[color:red]1[/color]:TEXT:*:?:{


-Andy

#130633 20/09/05 07:45 AM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Indeed, simply quoted the original code and edited.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby

Link Copied to Clipboard