this.button3.Click += new System.EventHandler(this.button2_Click);
Should be button3_Click lol.
There's no reason to have two buttons though... Just do C.Mining = !C.Mining and change the button text based on what it is.
still not working, the problem is i have to change this
Code:
private void button3_Click(object sender, Client C)
to this:
Code:
private void button3_Click(object sender, EventArgs C)
but this way it will say that 'System.EventArgs' does not contain a definition for 'Mining' and no extension method 'Mining' accepting a first argument of type 'System.EventArgs' could be found, and i don't know how to make a button text based on what it is
still not working, the problem is i have to change this
Code:
private void button3_Click(object sender, Client C)
to this:
Code:
private void button3_Click(object sender, EventArgs C)
but this way it will say that 'System.EventArgs' does not contain a definition for 'Mining' and no extension method 'Mining' accepting a first argument of type 'System.EventArgs' could be found, and i don't know how to make a button text based on what it is
@up i know but i get another error if i change it
No offense but duhhh.
You can't pass a Client object into it, it doesn't work like that.
Example would be setting a Client as active (selectable via say... a dropdown menu or w/e) and use THAT for the actual settings controlled from the buttons.
You can't pass a Client object into it, it doesn't work like that.
Example would be setting a Client as active (selectable via say... a dropdown menu or w/e) and use THAT for the actual settings controlled from the buttons.
lol excuse my ignorance, iam trying to actually make something
would u explain more how can i set a Client as active via an example, please ?
pro4never i love you. just thought id tell you that. also awesome guide. gunna try and making a hunting bot with the help of your current and hopefully future guides. id make a mining but i hate mining bots :/ hunting ftw scratch that. pro4never ftw
0 errors ;D Followed guide and worked perfect. Obviously. But maaaaan that stuff is confusing xD So Ill have to watch the video a few times in order for my brain to obsorb what I just watched. Cant wait for the next guides to come out MineBot and HuntingBot here we come! w00t
Keep up the good work!
public partial class GUI : Form
{
public static Dictionary<string, GameUser> Clients = new Dictionary<string, GameUser>();
//So, we now have our LISTENERS. We need to know what happens when something connects though!
public static string GameIP = "";//we're actually going to be reading this from the auth response packet so leave it blank for now.
public static ushort GamePort = 5816;
public static string AuthIP = "208.96.34.46";
public static string ProxyIP = "192.168.0.192";
public static string EncryptionKey = "DR654dt34trg4UI6";
public GameUser selectedChar = null;
public GUI()
{
This is how I used it for alchemy, and I can get a login success BUT I also get an error when it tries to login to the game server with a 10 error? I tried using my external IP also and yes ports are open lol.