mIRC Homepage
Posted By: xrn0id why dosnt this work? - 09/02/03 06:32 PM
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"
Posted By: Fredde87 Re: why dosnt this work? - 09/02/03 09:46 PM
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
Posted By: PeteM Re: why dosnt this work? - 10/02/03 01:29 AM
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
Posted By: Cheech Re: why dosnt this work? - 10/02/03 01:38 AM
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 ?
Posted By: PeteM Re: why dosnt this work? - 10/02/03 01:51 AM
yes as he had in his original code
© mIRC Discussion Forums