#CLOSE
Hi, you're right, I with this code I wanted to give initial help to those who want to creating bots, and have no experience.Quote:
Nice job but in my opinion you could've done way better job on C# and try focusing on creating as many files as you need.
And a tip from me:
Don't re-create the same thing twice that can be done with the same code
private void repair_pet()
{
String[] dataz = null;
string imgshade = "16";
dataz = UseImageSearch((Convert.ToString("*") + imgshade) + " " + "images\\petz.png");
if (dataz != null && dataz.Length != 0) {
int xc = 0;
int yc = 0;
int.TryParse(dataz(1), xc);
int.TryParse(dataz(2), yc);
au.MouseClick("left", xc, yc, 1, 0);
}
}
I have a better view for coding bots for this game. If you want PM and I can help you create a revolutionary one and teach you some new things =)Quote:
Hi, you're right, I with this code I wanted to give initial help to those who want to creating bots, and have no experience.
I did not go with complicating procedures or other, to try to understand the code having basic knowledge
( I admit it is a bit confusing but it is not difficult to understand :D )
P.S: vb.net in my opinion is the easiest to learn
Es c# procedure repair p.e.t:
Code:private void repair_pet() { String[] dataz = null; string imgshade = "16"; dataz = UseImageSearch((Convert.ToString("*") + imgshade) + " " + "images\\petz.png"); if (dataz != null && dataz.Length != 0) { int xc = 0; int yc = 0; int.TryParse(dataz(1), xc); int.TryParse(dataz(2), yc); au.MouseClick("left", xc, yc, 1, 0); } }
thank you, but I like to program more videogames that bot: DQuote:
I have a better view for coding bots for this game. If you want PM and I can help you create a revolutionary one and teach you some new things =)
I maybe next time I will consider :D , in any case I have placed the entire projectQuote:
I would recommend using github for source code releases.
Convert.ToString("*")
(new string(Convert.ToString("*").ToCharArray()).ToString()
Bad coding practices :facepalm:Quote:
i think i fixed your bug there:
would beCode:Convert.ToString("*")
just to be sureCode:(new string(Convert.ToString("*").ToCharArray()).ToString()
Convert.ToString((string)Encoding.Default.GetString(Encoding.Default.GetBytes("*".ToLower().ToUpper().ToLower())).ToString());
What do you guys want to do ? ^^Quote:
Bad coding practices :facepalm:
It should be
PHP Code:Convert.ToString((string)Encoding.Default.GetString(Encoding.Default.GetBytes("*".ToLower().ToUpper().ToLower())).ToString());
I see people pressing the thanks button on the wrong persons..... :D:D:DQuote:
What do you guys want to do ? ^^
The most unefficient casting ?
Well....Quote:
I see people pressing the thanks button on the wrong persons..... :D:D:D
The only cast happened here was there:
Convert.ToString((string)Encoding.Default.GetString(Encoding.Default.GetByt es("*".ToLower().ToUpper().ToLower())).ToString()) ;
I am not sure why no one got it but here is why we wrote that:
The op has many useless conversions in his code and does not seem to know what he is doing
public static int countWLANCablesInRoom()