mIRC Home    About    Download    Register    News    Help

Print Thread
#200516 06/06/08 06:51 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
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

xyzzy #200518 06/06/08 07:26 PM
A
AWEstun
AWEstun
A
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.

#200521 06/06/08 07:35 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
not works :S thnx for try helping

xyzzy #200523 06/06/08 07:44 PM
A
AWEstun
AWEstun
A
Originally Posted By: xyzzy
not works :S thnx for try helping


Try it again, I corrected and updated it.

#200524 06/06/08 07:55 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
still same not reply confused

xyzzy #200526 06/06/08 08:04 PM
A
AWEstun
AWEstun
A
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?

#200527 06/06/08 08:06 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
of course a friend says hello but not reply
its reply as %2 nick smirk

Last edited by xyzzy; 06/06/08 08:09 PM.
xyzzy #200529 06/06/08 08:11 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Code:
on *:TEXT:*hello*:#:{
  var %words = Greetings,Hey,Hi,What's up,Sup
  msg $chan $gettok(%words,$r(1,$numtok(%words,44)),44)
}

hixxy #200530 06/06/08 08:18 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
thnxx hixxy n AWEstun its work great smile

Last edited by xyzzy; 06/06/08 08:36 PM.
xyzzy #200532 06/06/08 08:27 PM
A
AWEstun
AWEstun
A
See, I knew there was a better way to do it, but I just didn't know how.

xyzzy #200549 07/06/08 01:24 AM
S
sehardepp
sehardepp
S
Ahan nice topic ,well ummm do i have to copy this code to alias???or where wuld u guys plz help me:S

#200552 07/06/08 04:18 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
The code would go in the remotes section of the client that you want to run the code.


Link Copied to Clipboard