mIRC Home    About    Download    Register    News    Help

Print Thread
#33516 01/07/03 09:42 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
on *:INPUT:#:{
if ($left($1-,1) != /) {
msg # $1-
//echo -a 7[14Message7] - 7[14 $+ $me $+ 7]: $1-
haltdef
}
}

i want to only echo what i tell it to, but not the original <$me> $1-

how is this done grin ?


new username: tidy_trax
#33517 01/07/03 09:47 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
on ^*:INPUT:#:{
if ($left($1-,1) != /) {
echo -a 7[14Message7] - 7[14 $+ $me $+ 7]: $1-
haltdef
}
}

maybe?


Code:
//if ( khaled isgod ) echo yes | else echo no
#33518 01/07/03 09:50 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
then it wont send the message frown
also for some reason on ^*:INPUT with the ^ doesnt work for me, but haltdef works without it.

Last edited by pheonix; 01/07/03 09:51 PM.

new username: tidy_trax
#33519 01/07/03 09:51 PM
Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
Put a dot in front of msg command:

Code:
 .msg # $1- 


#33520 01/07/03 09:52 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
thanx smile


new username: tidy_trax
#33521 01/07/03 11:57 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on *:INPUT:#: {
  if ($left($1-,1) != /) {
    .msg # $1-
    echo -a 7[14Message7] - 7[14 $+ $me $+ 7]: $1-
    haltdef
  }
}

Works fine. smile
7[14Message7] - [14SladeKraven7]: ...

#33522 02/07/03 01:31 PM
Joined: Jan 2003
Posts: 108
H
Vogon poet
Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
^ is used for text commands, by default the on input event (without the ^) is the equivalent to on ^1:text ext.
Edit: I just wanted to mention that on input is also one of the only events that /say can be used as part of the script smile


Link Copied to Clipboard