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
Joined: May 2008
Posts: 329
A
Fjord artisan
Offline
Fjord artisan
A
Joined: May 2008
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.
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
Joined: May 2008
Posts: 329
A
Fjord artisan
Offline
Fjord artisan
A
Joined: May 2008
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.
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
Joined: May 2008
Posts: 329
A
Fjord artisan
Offline
Fjord artisan
A
Joined: May 2008
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.
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,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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
Joined: May 2008
Posts: 329
A
Fjord artisan
Offline
Fjord artisan
A
Joined: May 2008
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.
xyzzy #200549 07/06/08 01:24 AM
Joined: Jun 2008
Posts: 3
S
Self-satisified door
Offline
Self-satisified door
S
Joined: Jun 2008
Posts: 3
Ahan nice topic ,well ummm do i have to copy this code to alias???or where wuld u guys plz help me:S

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The code would go in the remotes section of the client that you want to run the code.


Link Copied to Clipboard