mIRC Home    About    Download    Register    News    Help

Print Thread
Bot Login system #124162 03/07/05 07:04 AM
Joined: May 2005
Posts: 106
S
Sleepyfreak Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: May 2005
Posts: 106
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
Re: Bot Login system #124163 03/07/05 07:10 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

Re: Bot Login system #124164 03/07/05 07:16 AM
Joined: May 2005
Posts: 106
S
Sleepyfreak Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: May 2005
Posts: 106
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
Re: Bot Login system #124165 03/07/05 07:24 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

Re: Bot Login system #124166 03/07/05 07:27 AM
Joined: May 2005
Posts: 106
S
Sleepyfreak Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: May 2005
Posts: 106
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

Last edited by Sleepyfreak; 03/07/05 07:31 AM.

and thats the way the scout leader burns
Re: Bot Login system #124167 03/07/05 07:30 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

Re: Bot Login system #124168 03/07/05 08:52 AM
Joined: Mar 2003
Posts: 48
F
flup Offline
Ameglian cow
Offline
Ameglian cow
F
Joined: Mar 2003
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

Re: Bot Login system #124169 03/07/05 10:08 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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
  }
}
  

Re: Bot Login system #124170 03/07/05 10:45 AM
Joined: May 2005
Posts: 106
S
Sleepyfreak Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: May 2005
Posts: 106
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
Re: Bot Login system #124171 03/07/05 11:51 AM
Joined: Apr 2003
Posts: 701
K
Kelder Offline
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
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?

Re: Bot Login system #124172 03/07/05 09:38 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
oops...forgot to remove one ) in the last elseif statement

Re: Bot Login system #124173 04/07/05 03:40 AM
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline
Fjord artisan
Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
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