Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: JoeSchmoe on September 20, 2003, 10:48 PM

Title: Using a Database
Post by: JoeSchmoe on September 20, 2003, 10:48 PM
Hello,

    I would like to know how to use a database for my bot. Kind of like Feanor's WinClient. It reads a text file from a website and checks to see if username is on the list. If not, it declines connection, if so, it allows the bot to connect.

Thank You,
JoeSchmoe
Title: Re:Using a Database
Post by: EvilCheese on September 20, 2003, 10:58 PM
It seems to me that you just answered your own question. To do what you asked, simply:

-Read a text file from a website containing a list of users.
-Check to see if the current username is on the list.
-If so, allow connection.
-If not, decline connection.
Title: Re:Using a Database
Post by: JoeSchmoe on September 20, 2003, 11:16 PM
Yes, thanks, but I do not know how to make a VB program read a text file from the internet.

VB to Internet or Internet to VB is what I'm new at.
Title: Re:Using a Database
Post by: UserLoser on September 20, 2003, 11:29 PM
Using Winsock, or it could easily be done with the INet control.
Title: Re:Using a Database
Post by: JoeSchmoe on September 20, 2003, 11:53 PM
Don't know how to do that stuff.  :P
Title: Re:Using a Database
Post by: MyndFyre on September 21, 2003, 12:47 AM
Quote from: JoeSchmoe on September 20, 2003, 11:53 PM
Don't know how to do that stuff.  :P

This is when you look up the control info for the winsock or inet controls....
Title: Re:Using a Database
Post by: iago on September 21, 2003, 06:31 AM
Quote from: Myndfyre on September 21, 2003, 12:47 AM
Quote from: JoeSchmoe on September 20, 2003, 11:53 PM
Don't know how to do that stuff.  :P

This is when you look up the control info for the winsock or inet controls....

You took the words right out of my mouth!  Well, right off my keyboard anyway...

Since you've been given the outline of what you need to do, I would suggest going and researching it.  You have to look like you're at least making some effort at learning :-P
Title: Re:Using a Database
Post by: UserLoser on September 21, 2003, 11:02 AM
Quote from: JoeSchmoe on September 20, 2003, 11:53 PM
Don't know how to do that stuff.  :P

www.pscode.com
www.google.com
www.elitevb.com
...

i can go on and on with VB sites =)