mIRC Home    About    Download    Register    News    Help

Topic Options
#200516 - 06/06/08 07:51 PM auto reply(talk)
xyzzy Offline
Vogon poet

Registered: 06/11/06
Posts: 143
hey can sm1 help me abt
that if some say in room or channel i want reply them auto
ex sm1 said hello first time ill reply as heya howsu sm1
n other1 said hello again this time my reply as welcome other1 hows going cani do smthng like that ? sorry for ma bad english :S thnxx a lot smile

Top
#200518 - 06/06/08 08:26 PM Re: auto reply(talk) [Re: xyzzy]
AWEstun Offline
Fjord artisan

Registered: 02/05/08
Posts: 329
Code:
on *:TEXT:*:#: {
  if (hello isin $1-) {
    set %rndnmbr $rand(0.4)
    if (%rndnmbr == 0) { set %rslt Greetings }
    elseif (%rndnmbr == 1) { set %rslt Hey }
    elseif (%rndnmbr == 2) { set %rslt Hi }
    elseif (%rndnmbr == 3) { set %rslt What's up }
    elseif (%rndnmbr == 4) { set %rslt Sup }
    msg $chan %rslt $nick
  }
}



This is untested, but I'm sure someone else will have a better code, or at least tweak this code for you.
_________________________
I registered; you should too.

Top
#200521 - 06/06/08 08:35 PM Re: auto reply(talk) [Re: AWEstun]
xyzzy Offline
Vogon poet

Registered: 06/11/06
Posts: 143
not works :S thnx for try helping

Top
#200523 - 06/06/08 08:44 PM Re: auto reply(talk) [Re: xyzzy]
AWEstun Offline
Fjord artisan

Registered: 02/05/08
Posts: 329
Originally Posted By: xyzzy
not works :S thnx for try helping


Try it again, I corrected and updated it.
_________________________
I registered; you should too.

Top
#200524 - 06/06/08 08:55 PM Re: auto reply(talk) [Re: AWEstun]
xyzzy Offline
Vogon poet

Registered: 06/11/06
Posts: 143
still same not reply confused

Top
#200526 - 06/06/08 09:04 PM Re: auto reply(talk) [Re: xyzzy]
AWEstun Offline
Fjord artisan

Registered: 02/05/08
Posts: 329
Originally Posted By: xyzzy
still same not reply confused


Are you trying to test it yourself? Someone else has to say hello, etc on the room. ???

Also, you're putting the code in the remote.ini file, right?
_________________________
I registered; you should too.

Top
#200527 - 06/06/08 09:06 PM Re: auto reply(talk) [Re: AWEstun]
xyzzy Offline
Vogon poet

Registered: 06/11/06
Posts: 143
of course a friend says hello but not reply
its reply as %2 nick smirk


Edited by xyzzy (06/06/08 09:09 PM)

Top
#200529 - 06/06/08 09:11 PM Re: auto reply(talk) [Re: xyzzy]
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
Code:
on *:TEXT:*hello*:#:{
  var %words = Greetings,Hey,Hi,What's up,Sup
  msg $chan $gettok(%words,$r(1,$numtok(%words,44)),44)
}

Top
#200530 - 06/06/08 09:18 PM Re: auto reply(talk) [Re: hixxy]
xyzzy Offline
Vogon poet

Registered: 06/11/06
Posts: 143
thnxx hixxy n AWEstun its work great smile


Edited by xyzzy (06/06/08 09:36 PM)

Top
#200532 - 06/06/08 09:27 PM Re: auto reply(talk) [Re: xyzzy]
AWEstun Offline
Fjord artisan

Registered: 02/05/08
Posts: 329
See, I knew there was a better way to do it, but I just didn't know how.
_________________________
I registered; you should too.

Top
#200549 - 07/06/08 02:24 AM Re: auto reply(talk) [Re: xyzzy]
sehardepp Offline
Self-satisified door

Registered: 07/06/08
Posts: 3
Loc: lahore,pakistan
Ahan nice topic ,well ummm do i have to copy this code to alias???or where wuld u guys plz help me:S

Top
#200552 - 07/06/08 05:18 AM Re: auto reply(talk) [Re: sehardepp]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
The code would go in the remotes section of the client that you want to run the code.

Top