mIRC Home    About    Download    Register    News    Help

Print Thread
#11311 15/02/03 07:23 PM
Joined: Feb 2003
Posts: 15
J
jlb00h Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Feb 2003
Posts: 15
on *:INPUT:#: {
if ($1 == *I like dogs*) {
describe cats are better!
return
}
elseif ($1 == *hi*) {
describe how are you!?
return
}
}

think this would work?
should i be using Say instead of Describe?

#11312 15/02/03 07:40 PM
Joined: Feb 2003
Posts: 76
G
Babel fish
Offline
Babel fish
G
Joined: Feb 2003
Posts: 76
Hm... better change it a bit smile:
Code:
 on *:INPUT:#: { 
var %a, %b
set %a *i like dog*
set %b *hi*
if (%a iswm $1-) { 
say cats are better!
 } 
elseif (%b iswm $1-) { 
say how are you!?
 } 
 } 
 

I'm not sure if this works, but give it a shot! Watch out for these { and }... they MUST be between spaces! smirk

#11313 15/02/03 08:20 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
//describe $active is the same command as /me - //msg $active is the same command as /say.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#11314 15/02/03 10:52 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Quote:

on *:INPUT:#: {
if ($1 == *I like dogs*) {
describe cats are better!
return
}
elseif ($1 == *hi*) {
describe how are you!?
return
}
}

Looks like what you want is to auto-reply to someone else saying these things?
Code:
 
on *:TEXT:*:#: {
 if (I like dogs iswm $1-) {
msg $chan Excuse me $nick $+ $chr(44) but cats are better!
 }
if ($1 == hi) {
msg $chan Hi $nick $+ $chr(44) how are you!?
 }
}



#11315 16/02/03 05:54 AM
Joined: Feb 2003
Posts: 15
J
jlb00h Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Feb 2003
Posts: 15
hm, it seems that the last code isnt working either.... confused
im still NEVER getting Any response/action out of any of these scripts...

#11316 16/02/03 06:15 AM
Joined: Feb 2003
Posts: 15
J
jlb00h Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Feb 2003
Posts: 15
oh and btw, these are responses to what Someone says!!
maybe thats why...

#11317 16/02/03 06:21 AM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
i think mike had it right but perhaps you are dealing with an action ?
Code:
 
on *:ACTION:*:#: {
 if (I like dogs iswm $1-) {
msg $chan Excuse me $nick $+ $chr(44) but cats are better! 
}
if ($1 == hi) {
msg $chan Hi $nick $+ $chr(44) how are you!? 
}
}
 

#11318 16/02/03 06:26 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
on 1*:TEXT:hi*:#channel:/msg $chan Welcome to $chan $nick!
on 1*:TEXT:*I like cats*:#channel:/msg $chan But dogs are even better!
}

Is this similar to what you are wanting? For additional help see your mIRC help file and look up on text .

Last edited by The_Game; 16/02/03 06:27 AM.
#11319 16/02/03 06:40 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
Code:
  on *:INPUT:#: {
if ($1 == *I like dogs*) {
describe cats are better!
return
}
elseif ($1 == *hi*) {
describe how are you!?
return
}
}


ok in that im getting that u want ur mirc to change from u just saying hi to u actually saying that full response and for the other ur going to be saying cats are better? if u say u like dogs??? ok mayb im confused alil but lets give this a try

Code:
 
on *:INPUT:#: {
  if ($1- == *I like dogs*) {
    say cats are better!
    return
  }
  elseif ($1 == hi) {
    say how are you!?
    return
  }
}


ok now that will say those things ur wanting it to say ....... if im getting u right but ..... i dont know how ur wanting it to format EX like having it say hi, how are you or I like dogs, But cats are better! .......... maybe someone else can figure exactly what ur wanting


D3m0nnet.com
#11320 16/02/03 04:56 PM
Joined: Feb 2003
Posts: 76
G
Babel fish
Offline
Babel fish
G
Joined: Feb 2003
Posts: 76
The_Game's code is correct. You should use TEXT remotes and not INPUT ones at this part. How come i didn't think about it earlier?! grin kidding
And ppl: Make your life easier! Don't complicate things! wink

Last edited by gerdigos; 16/02/03 04:58 PM.
#11321 16/02/03 05:33 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
well geez im telling ya ...... ive gotten a major case of the not understand what ppl are asking lately ..... im sure glad you all are understanding em cause if this were a Q&A to just me no one would get the answer they are looking for LmAo ... sorry bout not understanding the question


D3m0nnet.com
#11322 19/02/03 05:17 AM
Joined: Jan 2003
Posts: 44
L
Ameglian cow
Offline
Ameglian cow
L
Joined: Jan 2003
Posts: 44
Quote:

i think mike had it right but perhaps you are dealing with an action ?

Code:
 
  on *:ACTION:*:#: {
    if (I like dogs iswm $1-) {
      msg $chan Excuse me $nick $+ $chr(44) but cats are better! 
    }
 
    if ($1 == hi) {
      msg $chan Hi $nick $+ $chr(44) how are you!? 
    }

  } 



I think mike and cheech have it right too
cept you are having a problem indicating what you really mean.

What you meant to tell us, is it's an autoresponse to what someone says to you through a private message (pm) or query window.

in which case, if you try the following, I believe you'll find it to work for you.

Code:
 
  ;note the use of the ? instead of the #
  ;? means in the private message window
  on *:TEXT:*:?: {
    if (I like dogs iswm $1-) {
      msg $chan Excuse me $nick $+ $chr(44) but cats are better! 
    }
 
    if ($1 == hi) {
      msg $chan Hi $nick $+ $chr(44) how are you!? 
    }

  } 
 


Link Copied to Clipboard