mIRC Home    About    Download    Register    News    Help

Print Thread
why dosnt this work? #10368 09/02/03 06:32 PM
Joined: Jan 2003
Posts: 237
X
xrn0id Offline OP
Fjord artisan
OP Offline
Fjord artisan
X
Joined: Jan 2003
Posts: 237
on *:TEXT:!test*:*:{
set -u300 %!test $nick
DCC Chat $nick
}
on *:OPEN:=:{
if ($nick == %!test) {
unset %!test
msg =$nick This is a test.
}
}
on *:OPEN:=:{
if ($nick == %!test) {
if ( $1- == hello ) {
msg =$nick Hi
}
}
}

i want it so fi somebody say hello in the dcc window, i will reply with "hi"



;Check for Life

if (%life == $null) {
goto getlife
}
Re: why dosnt this work? #10369 09/02/03 09:46 PM
Joined: Feb 2003
Posts: 14
F
Fredde87 Offline
Pikka bird
Offline
Pikka bird
F
Joined: Feb 2003
Posts: 14
on *:TEXT:!test*:*:{
set -u300 %!test $nick
DCC Chat $nick
}
on *:OPEN:=:{
if ($nick == %!test) {
.msg $nick This is a test.
}
}
on *:CHAT:hello:{
if ($nick == %!test) { .msg $nick Hi }
}

try that... i think it should work

Re: why dosnt this work? #10370 10/02/03 01:29 AM
Joined: Jan 2003
Posts: 18
P
PeteM Offline
Pikka bird
Offline
Pikka bird
P
Joined: Jan 2003
Posts: 18
just an idea, you have the variable set %!test, try just %test, the negate feature "!" usually has another reasoning, in mirc script, so try removing the ! and good luck

Re: why dosnt this work? #10371 10/02/03 01:38 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
never really used the dcc chat for any reason but i think where you have $nick in the On Open and On Chat events it would need to be =$nick ?

Re: why dosnt this work? #10372 10/02/03 01:51 AM
Joined: Jan 2003
Posts: 18
P
PeteM Offline
Pikka bird
Offline
Pikka bird
P
Joined: Jan 2003
Posts: 18
yes as he had in his original code