|
You last visited: Today at 01:59
Advertisement
[Teaching Units] ProxyParadise! A step by step proxy tutorial!
Discussion on [Teaching Units] ProxyParadise! A step by step proxy tutorial! within the CO2 Programming forum part of the Conquer Online 2 category.
06/27/2011, 03:55
|
#31
|
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
|
lol, yah a zoom might not be a half bad idea but i didnt see any issues with it, again very nicely done..
|
|
|
06/27/2011, 13:51
|
#32
|
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
|
iam having an annoying error with mining
PHP Code:
private void button2_Click(object sender, Client C) { C.Mining = true;
Console.WriteLine("Mining is" + C.Mining); } private void button3_Click(object sender, Client C) { C.Mining = false;
Console.WriteLine("Mining is" + C.Mining); }
PHP Code:
// // button3 // this.button3.Location = new System.Drawing.Point(219, 45); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(91, 23); this.button3.TabIndex = 1; this.button3.Text = "Stop Mining"; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button2_Click); // // button2 // this.button2.Location = new System.Drawing.Point(48, 45); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(94, 23); this.button2.TabIndex = 0; this.button2.Text = "Start Mining"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click);
it says that there is no overload for 'button2_Click' 'button3_Click' and matches delegate 'System.EventHandler'
|
|
|
06/27/2011, 17:56
|
#33
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
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.
|
|
|
06/27/2011, 20:08
|
#34
|
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
|
Quote:
Originally Posted by [GM]
it says that there is no overload for 'button2_Click' 'button3_Click' and matches delegate 'System.EventHandler'
|
You get that error because your handler method doesn't match the signature of the System.EventHandler delegate, which is:
Code:
public delegate void EventHandler(object sender, EventArgs e);
You need to change your handler method's signature to match that, ex:
Code:
private void button2_Click(object sender, EventArgs e)
{
}
|
|
|
06/27/2011, 20:30
|
#35
|
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
|
Quote:
Originally Posted by pro4never
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
@up i know but i get another error if i change it
|
|
|
06/27/2011, 21:03
|
#36
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Quote:
Originally Posted by [GM]
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.
|
|
|
06/27/2011, 21:16
|
#37
|
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
|
Quote:
Originally Posted by pro4never
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.
|
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 ?
|
|
|
06/27/2011, 22:19
|
#38
|
elite*gold: 0
Join Date: Aug 2010
Posts: 52
Received Thanks: 2
|
dude can u just make a vid it will be easier like that to show us!
|
|
|
06/27/2011, 22:35
|
#39
|
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
|
why wouldnt you just use one button? I don't really think there is a need for 2?
|
|
|
06/27/2011, 23:58
|
#40
|
elite*gold: 0
Join Date: Dec 2010
Posts: 21
Received Thanks: 0
|
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
|
|
|
06/28/2011, 01:16
|
#41
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Quote:
Originally Posted by jakos111
dude can u just make a vid it will be easier like that to show us!
|
What he's doing is like a full unit into the future.... so yahhh
|
|
|
06/28/2011, 04:55
|
#42
|
elite*gold: 0
Join Date: Dec 2010
Posts: 21
Received Thanks: 0
|
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!
|
|
|
06/28/2011, 15:06
|
#43
|
elite*gold: 0
Join Date: Oct 2008
Posts: 127
Received Thanks: 10
|
Microsoft.Visual.Studio.2010.Professional is good to use ? or express
|
|
|
06/28/2011, 17:04
|
#44
|
elite*gold: 223
Join Date: Dec 2007
Posts: 1,076
Received Thanks: 257
|
Quote:
Originally Posted by darkopp
Microsoft.Visual.Studio.2010.Professional is good to use ? or express
|
You can download it free from the interwebs
It's from microsoft, so NO need for a virusscan and such boys.
|
|
|
06/28/2011, 20:43
|
#45
|
elite*gold: 0
Join Date: Aug 2010
Posts: 951
Received Thanks: 76
|
Code:
[Loader]
IPAddress=192.168.0.192
LoginPort=9959
GamePort=5816
Website=http://www.whocares.com
Code:
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.
|
|
|
All times are GMT +1. The time now is 02:00.
|
|