mIRC Home    About    Download    Register    News    Help

Print Thread
#85155 03/06/04 06:47 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
This script checks if MAIN bot on Quakenet is online, or fake
- made by Iori

alias Qcheck { inc -u5 %qcheck | userip Q }
raw 340:*:{
if %qcheck {
if Q*TheQBot@127.0.0.1 iswm $2 { echo -sie $timestamps the real Q is online ! - You can safely auth now. }
elseif !$2 { echo -sie $timestamps Q is not online (Reason: *.net*.split) }
else { echo -sie $timestamps Fake Q online $+([,$2,]) - DO NOT AUTH ! }
halt
}
}

and it works !
but i made same thing just for L bot

alias Lcheck { inc -u5 %lcheck | userip L }
raw 340:*:{
if %lcheck {
if L*TheLBot@127.0.0.1 iswm $2 { echo -sie $timestamps The real L is online ! - You can safely command channel(s) now. }
elseif !$2 { echo -sie $timestamps L is not online (Reason: *.net*.split) }
else { echo -sie $timestamps Fake L online $+([,$2,]) - BE CAREFULL ! }
halt
}
}


so problem is this:
on connect i got this info

(20:44) The real Q is online ! - You can safely auth now.

(20:44) Fake Q online [L*=+TheLBot@127.0.0.1] - DO NOT AUTH !

(20:44) Fake Q online [L*=+TheLBot@127.0.0.1] - DO NOT AUTH !

----------------
it should write Real Q is online
and Real L is online, but in unknown thing it mixed each other up smirk

why? and how to make it work together?

btw: userip of Q is Q*=+TheQBot@127.0.0.1
and userip of L is L*=+TheLBot@127.0.0.1

if that helps

Last edited by bunar; 03/06/04 06:51 PM.
#85156 03/06/04 07:33 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Combine, and check for which bot the reply is for.
Code:
raw 340:*:{
  if %qcheck && Q* iswm $2 {
    if Q*TheQBot@127.0.0.1 iswm $2 { echo -sie $timestamps the real Q is online ! - You can safely auth now. }
    else { echo -sie $timestamps Fake Q online $+([,$2,]) - DO NOT AUTH ! }
    unset %qcheck
    halt
  }
  if %lcheck && L* iswm $2 {
    if L*TheLBot@127.0.0.1 iswm $2 { echo -sie $timestamps The real L is online ! - You can safely command channel(s) now. }
    else { echo -sie $timestamps Fake L online $+([,$2,]) - BE CAREFULL ! }
    unset %lcheck
    halt
  }
  elseif !$2 { echo -sie $timestamps $iif(%qcheck,Q,L) is not online (Reason: *.net*.split) }
}


Last edited by Iori; 03/06/04 07:50 PM.
#85157 03/06/04 07:45 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
hmm, now it only replies

the Q is online

and it should
the Q is online
the L is online :P

#85158 03/06/04 07:51 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
LOL yeah sorry laugh
I edited this line "if %lcheck && L* iswm $2 {"

#85159 03/06/04 10:00 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
thank you so very much !


Link Copied to Clipboard