i wanna make a bot that supports multiple accounts for gaia so i can make good bots and also one that makes auto posts votes ect but i wanna know how to make a multiple account first Thanks
I code on VB8
Results 1 to 18 of 18
- 06 Aug. 2011 09:53pm #1
[vb.net request] Can anyone help with a bot :D thnx
- 06 Aug. 2011 10:03pm #2
Look into multithreading, this is definitely the way to go. I can't provide you any code examples of how you should approach something like this though. I'm on a corrupt Windows 7 OS and I don't have Visual Studio installed on it. But I can tell you that users that use visual/RAD programming languages such as VB.NET & C# typically go with a string grid control or something similar due to the fact that it's a simple approach to value enumeration.
You know, the types of controls that look like this?
g y a z o. c o m / 8b069f0f42cbdb2c59027fc659a3cc85.png
You'll have to compile that link btw, I have insufficient user statistics to post links here as of now.
Anyways, VB.NET and C# have similar infrastructures and are oriented around the same platform; .NET Framework. Which means, you could also ponder into C# a little to do some converting with this code - http://forum.logicalgamers.com/publi...entor-bot.html
Made by Chris respectively of LG. His bot has multi-account support and was made in C#.
Good luck.Last edited by Protozoid; 06 Aug. 2011 at 10:09pm.
- 06 Aug. 2011 10:31pm #3
- 06 Aug. 2011 10:37pm #4
I'm envious of your system. Clean UI, Visual Studio actually works on it. I swear you guys have it so easy..
Anyways, can't help you there bud.
I'm on a corrupt Windows 7 OS and I don't have Visual Studio installed on it.
- 06 Aug. 2011 10:45pm #5
lol thanks though but my os is cracked on my desktop and i got good loaders if you want i formatted it recently cause it had big holes in it loland i use advances system care 4 ( look for granturismo banned and look at his threads and get it for free ) and it keeps my pc in a good shape
- 06 Aug. 2011 11:24pm #6
For multiple accounts you would either use Multi-Dimensional Arrays or a List of Arrays. They are basically the same thing.
Except for the multi-dimensional arrays you need to keep track of how many you are using with an integer.
Small example in C# written off of the top of my head.
Code:String[,] AccountArrays = new String[10, 2]; //10 Accounts supported, 10 rows with 2 columns in each row. Username Password style. Int32 AccountCount = 0; AccountArrays[AccountCount, 0] = Username; AccountArrays[AccountCount, 1] = Password; AccountCount++; //This will add 1 to the count.
Code:Console.WriteLine(AccountArrays[0, 0]);
Code:Console.WriteLine(AccountArrays[0,1]);
AccountArrays[ROW, COLUMN]
Shouldn't be to hard to convert into VB.Net.
Fuck it, I'll make a tutorial.
---------- Post added at 11:24 PM ---------- Previous post was at 11:01 PM ----------
Here is a quick example I wrote up in C# using HTTP Wrappers and my local login.php file on my wamp. It uses multi-dimensional arrays.
PHP Code:class Program
{
#region Declarings
static HTTPWrapper.HTTPInterface[] Wrapper = new HTTPWrapper.HTTPInterface[10];
static String[,] AccountArray = new String[10, 2];
static Int32 ArrayCount = 0;
#endregion
static void Main(string[] args)
{
String Username = String.Empty;
String Password = String.Empty;
for (; true; )
{
Console.Write(">>");
String[] Split = Console.ReadLine().Split('-');
switch (Split[0].ToLower())
{
case "add array":
if (ArrayCount < 10)
{
Console.Write("Username: ");
Username = Console.ReadLine();
Console.Write("Password: ");
Password = Console.ReadLine();
Wrapper[ArrayCount] = new HTTPWrapper.HTTPInterface();
if (Wrapper[ArrayCount].Post("http://localhost/login.php", "key=" + new Random().Next(0, 100) + "&username=" + Username + "&password=" + Password + "&signInButton=Log+In").IndexOf("You have logged in!") > -1)
{
AccountArray[ArrayCount, 0] = Username;
AccountArray[ArrayCount, 1] = Password;
Console.WriteLine(AccountArray[ArrayCount, 0] + " : Has logged in!");
ArrayCount++;
}
else
{
Console.WriteLine("Failed to login!");
}
}
else
{
Console.WriteLine("You can only support up to 10 accounts!");
}
break;
case "get array":
Console.WriteLine("Username: " + AccountArray[Int32.Parse(Split[1]), 0]);
break;
}
Console.WriteLine(String.Empty);
}
}
- 06 Aug. 2011 11:32pm #7
I seriously doubt that will be of any help to him.
There's a significant difference in C# and VB syntactically.
Don't you have past experience in VB.NET/VB6?
- 06 Aug. 2011 11:55pm #8
- 07 Aug. 2011 01:21pm #9
- 07 Aug. 2011 02:55pm #10
- 07 Aug. 2011 02:57pm #11
- 07 Aug. 2011 03:47pm #12
That wasn't the tutorial and most likely the tutorial will be in C# because I don't have VB on my computer. All you have to do is have some way of containing all the accounts either into an array or a list. They both really are similar. If you put them into in string array you have to limit it, for the most part. If you use a List container (List<String>) Which is like a listbox but not really a control on the form, you can have unlimited accounts the only factor that will limit you is how many your computer can hold up.
Once you have all the accounts you want added on it, you have to either open them up in a new Thread (Assuming you know multiple threading already). That thread will have to target that one account index specifically or you can just have it loop through all of them. If you open them up in their own threads, they can all be doing something at the same time. If you loop through them in just a single thread, only one account will be doing one thing at a time.
If you haven't already, go look up some Multiple Threading tutorials and some Array or Multidimensional Array tutorials. You might as well want to look up System.Collection tutorials as well (Contains the virtual listbox control thing [List<String>], hashtabels, and a lot of other useful list arrays).
-------
As for the HTTP Wrappers, I've been using the ones released by Chris a few months ago however I modified them a tad to fit my needs. Added Between (GetStringBetween) and BetweenAll (GetAllStringsBetween) as well as referrer. You can find them here. I would suggest using these. They are optimized, fast, and it has a nice way to control cookies if you ever need to. You can port it into a .dll to use it into any .NET language if wanted.
Bradley had re-created some old HTTP Wrappers from C# into VB.Net a while back. You can find them here. These were our first version of our HTTP Wrappers except ours were in C#. They have the basic functionality to get what needs to be done, done.
- 07 Aug. 2011 06:19pm #13
- 07 Aug. 2011 06:22pm #14
- 07 Aug. 2011 08:40pm #15
Basically what Bradley said. Took me a few weeks to get used to it from VB.Net. I personally like it's syntax more. It seems organized and you can do a lot with it. I like C# mainly because it's kind of an OOP Language. It's similar to PHP and Java. It makes it easier to learn other languages OO oriented. When you know one language, you technically know them all.
- 07 Aug. 2011 09:39pm #16
- 07 Aug. 2011 11:19pm #17
Um, C# is practically identical to Java. It's not kinda object-oriented, it's all object-oriented. You can't write anything in C# without object-orientation being used in some way. Also, gonna have to disagree with you on that ideology. When you learn one language, you don't technically know them all. I know what you mean though. But the way you put it is like me saying if I mastered VB I technically know C and Perl, which is false.
Originally Posted by Dummy
- 07 Aug. 2011 11:32pm #18
Thanks Bro i was scarred of doing it but dince everybody does it here it might be easier for me then
I really don't master vb.net very well but ill try to keep both in my head
@Chad & Bradley
Dude you think its ok if some questions sometimes till i get a good grip on it ?