mIRC Home    About    Download    Register    News    Help

Topic Options
#124162 - 03/07/05 08:04 AM Bot Login system
Sleepyfreak Offline
Vogon poet

Registered: 16/05/05
Posts: 106
Loc: Adelaide
i'm currently making a bot login system for a friend and i got this far but it doesn't work

Quote:

on *:TEXT:!login*:?:{
if ($2 == temp) ($nick == Paul) {
/notice $nick Password Accepted smile
/notice $nick Welcome back Owner
}
if ($2 == temp) ($nick == Shane) {
/notice $nick Password Accepted smile
/notice $nick Welcome back Admin
if ($1 == temp) ( $nick == Joey ) {
/notice $nick Password Accepted smile
/notice $nick Welcome back Operator
}
/notice $nick Bad Password/Nickname
}
}

but for some reason it won't work it will msg Shane Paul and Joey
_________________________
and thats the way the scout leader burns

Top
#124163 - 03/07/05 08:10 AM Re: Bot Login system
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
You could try here. It's a login system I did a while back, you're welcome to modify it.

I never did get around to actually using it, my brother did though, seemed to work for him. Others can comment on the code to make it a little more sufficient for you.

-Andy

Top
#124164 - 03/07/05 08:16 AM Re: Bot Login system
Sleepyfreak Offline
Vogon poet

Registered: 16/05/05
Posts: 106
Loc: Adelaide
should this code work
Code:
 
on *:TEXT:!login*:?:{
  if ($2 == temp)( $nick == Paul ) {
    /notice $nick Password Accepted :)
  }
  if ($2 == temp)( $nick == Shane ) {
    /notice $nick Password Accepted :)
  }
  if ($2 == temp)( $nick == Joey ){
  /notice $nick Password Accepted :)
}
/notice $nick Bad Password/Nickname
}

 
_________________________
and thats the way the scout leader burns

Top
#124165 - 03/07/05 08:24 AM Re: Bot Login system
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
if ($2 == temp) && ( $nick == Paul )

But the thing is, if someone else uses those nicknames the design is flawed, eh?

Someone else could login.

-Andy

Top
#124166 - 03/07/05 08:27 AM Re: Bot Login system
Sleepyfreak Offline
Vogon poet

Registered: 16/05/05
Posts: 106
Loc: Adelaide
not really the server which the bot will be on HAS nickserv so they have to register the nickname before hand
and when i pm the bot saying !login temp i got this notice from it

[17:00] -Botter- Password Accepted smile
[17:00] -Botter- Bad Password/Nickname


Edited by Sleepyfreak (03/07/05 08:31 AM)
_________________________
and thats the way the scout leader burns

Top
#124167 - 03/07/05 08:30 AM Re: Bot Login system
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Well I guess that would work aslong as NickServ wont let others use their nicknames. Not all services will have the 60 second warning to change nicks.

-Andy

Top
#124168 - 03/07/05 09:52 AM Re: Bot Login system
flup Offline
Ameglian cow

Registered: 11/03/03
Posts: 48
Code:
on *:TEXT:!login*:?: {
  if (($2 == temp) && ($nick == Paul)) {
    /notice $nick Password Accepted
    /notice $nick Welcome back Owner
  }
  if (($2 == temp) && ($nick == Shane)) {
    /notice $nick Password Accepted
    /notice $nick Welcome back Admin
  }
  if (($1 == temp) && ( $nick == Joey )) {
    /notice $nick Password Accepted
    /notice $nick Welcome back Operator
  }
  else {  
  /notice $nick Bad Password/Nickname
  }
}


Think it works like that

Top
#124169 - 03/07/05 11:08 AM Re: Bot Login system
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
Code:
on *:TEXT:!login*:?: {
if ($2 != temp) { .notice $nick Bad Password/Nick }
elseif ($nick == Paul) {
    /notice $nick Password Accepted
    /notice $nick Welcome back Owner
  }
elseif ($nick == Shane) {
    /notice $nick Password Accepted
    /notice $nick Welcome back Admin
  }
elseif ( $nick == Joey )) {
    /notice $nick Password Accepted
    /notice $nick Welcome back Operator
  }
  else {  
  /notice $nick Bad Password/Nickname
  }
}
  

Top
#124170 - 03/07/05 11:45 AM Re: Bot Login system
Sleepyfreak Offline
Vogon poet

Registered: 16/05/05
Posts: 106
Loc: Adelaide
codes a no go didn't work i got this msg

* /elseif: invalid format (line 21, script.ini)
_________________________
and thats the way the scout leader burns

Top
#124171 - 03/07/05 12:51 PM Re: Bot Login system
Kelder Offline
Hoopy frood

Registered: 12/04/03
Posts: 701
Loc: Leuven, Belgium
Even with that protection, 60 or even 30 seconds is more than enough to login to a bot, get ops, deop everyone in the channel and change nick back to your own...

If the network has nickserv, doesn't it have a chanserv too then?

Top
#124172 - 03/07/05 10:38 PM Re: Bot Login system
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
oops...forgot to remove one ) in the last elseif statement

Top
#124173 - 04/07/05 04:40 AM Re: Bot Login system
IR_n00b Offline
Fjord artisan

Registered: 01/10/04
Posts: 200
Loc: where i am.
I got a login system somewhere, all you need to do is say !auth
in the channel, and the bot checks if you have logged in with nickserv, and it sets an variable that confirms that you logged in. it unsets the variable if you leave the channel, was kicked, quit, or said "!deauth" in the channel.
i have it on mhy home PC, im on a mac laptop right now for the 4th of july smile

Top