mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 237
X
xrn0id Offline OP
Fjord artisan
OP Offline
Fjord artisan
X
Joined: Jan 2003
Posts: 237
how cna i do this. like if somebody types !test, a dcc chat window would opne with them and say This is a test



;Check for Life

if (%life == $null) {
goto getlife
}
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
you could use an on text event something like this
Code:
  
 on 1:Text:!test:*: {
 /dcc chat $nick 
}

look in the help under On Text and also /DCC Chat for further information

Joined: Jan 2003
Posts: 237
X
xrn0id Offline OP
Fjord artisan
OP Offline
Fjord artisan
X
Joined: Jan 2003
Posts: 237
thats only part of what i want to do. I want to use that opend dcc chat and say something.



;Check for Life

if (%life == $null) {
goto getlife
}
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
can you give an example ?

and also for a dcc chat in most cases the other user will have to accept your request before the chat session is initiated if your specifically wanting to dcc chat take that into consideration

Last edited by Cheech; 08/02/03 06:39 AM.
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
on *:CHAT:!test*: msg =$nick This is a test.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Joined: Jan 2003
Posts: 237
X
xrn0id Offline OP
Fjord artisan
OP Offline
Fjord artisan
X
Joined: Jan 2003
Posts: 237
im not sure how that one works hammer, anything else?



;Check for Life

if (%life == $null) {
goto getlife
}
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Sorry, I misread your original question. I thought you meant if someone typed !test in an already opened DCC Chat window, you'd msg them something back in DCC Chat.
Code:

on *:CHAT:!test*: msg =$nick This is a test

That line would accomplish that. However, it wasn't what you asked for. You wanted it such that if someone said !test in any window, it would open a DCC Chat window to them and then tell them the result string in that DCC Chat window.
Code:

on *:TEXT:!test*:*:{
  set -u300 %!test $nick
  DCC Chat $nick
}
on *:OPEN:=:{
  if ($nick == %!test) {
    unset %!test
    msg =$nick This is a test.
  }
}


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard