[RELEASE][OPENBETA] IBot PB by Manulaiko

04/24/2014 09:32 manulaiko#31
mmmm... never thought in that.
My logic sucks, all of me sucks xD going to suicide brb
04/24/2014 09:49 Serraniel#32
Quote:
Originally Posted by manulaiko View Post
None of both: Java
why?
Because AutoIt sucks and my pixel search algorythm takes 1 - 2 seconds to find the pixel in c#
I´m not quite sure but remembering my old pixel bot 2+ years ago in VB or C#, doesn´t really matter, it was more or less the same slow speed. But I thought of an idea I had that time when I stopped the project to make it much more faster.
I did not look at yours cause I read it a minute ago but you thought about deviding the screen in x pixel large (or better small) rectangles and scanning each at same time in threads and just checking if x% of the rectangle has the colors of the box?
The rects should not be much bigger than a box to do that.
Well, many threads, I know. It was just a thinking I had in that times after I stopped mine. Maybe I will test it or you want to test that way (if you did not already do it :P).
04/24/2014 10:12 manulaiko#33
My pixel search makes an screenshot of the area and search for the pixel in that screenshot.
It doesn't search pixel by pixel ofc, that would be slow (slow but faster than 1 second), it makes a random number between 1 and 10 and use it as the counter.

It would be something like
Code:
r = random.nextInt(9) + 1;
for(int i = 0; i < imgArr.length; i++)
{
    Point p = new Point();
    //give coordinates
    return p;
}
This give a faster process and more secure because it doesn't clicks in same pixel all the time.

But I'm woing to improve it to find the closest match near the ship (center of the area)
04/24/2014 14:08 TheFallenAngel#34
Quote:
Originally Posted by TskulT View Post
Putting a perfectly tested timer is faster, because there will always be a delay between the message and the collection. But for npc it would be very stable indeed.
the C# bot that i am releasing this weekend does that. i also have it use a timer do the delay like you suggested. but i made the timer so it would run for a different amount of time on every computer. my only problem is i cant figure out how to circle the npc. otherwise it kills them all fairly well
04/24/2014 14:17 manulaiko#35
Hi!

When I try to get the source of DarkOrbit's page with Java idk why but I get the source of login page, and not internalStart.
I've tried to do it with php but the resulting string is empty.

The url is "http://". $_GET["server"] .".darkorbit.bigpoint.com/indexInternal.es?action=internalStart&dosid=". $_GET["sid"];
04/24/2014 14:18 edoardo1104#36
will be implemented a background feature?
04/24/2014 14:22 manulaiko#37
idk I'll try to figure out how to do it xD
04/24/2014 14:24 TheFallenAngel#38
you have to pass the cookies of the login as well
04/24/2014 14:32 manulaiko#39
fuck -.-
I think Apache HTTP library can do it
04/24/2014 18:07 TheFallenAngel#40
Quote:
Originally Posted by manulaiko View Post
fuck -.-
I think Apache HTTP library can do it
i dont know about java. but C# u dont even need that library
04/24/2014 19:37 manulaiko#41
in java is like this:
Code:
// specify the host, protocol, and port
HttpHost target = new HttpHost(Main.server + ".darkorbit.bigpoint.com", 80, "http");	      
// specify the get request
HttpGet getRequest = new HttpGet("/indexInternal.es?action=internalStart&dosid="+ Main.sid);
//Execute Request
HttpResponse httpResponse = httpclient.execute(target, getRequest);
//Save resource
HttpEntity entity = httpResponse.getEntity();
//Go to fuck
04/25/2014 05:01 NQQBtuber#42
Please help me Manu i dont know how to change the bonusbox style for your PB and it doesnt change automaticly. The bot is Flying random but doesnt collect boxes because he dont find the Pixel from the box2.
04/25/2014 11:03 TskulT#43
Quote:
Originally Posted by TheFallenAngel View Post
the C# bot that i am releasing this weekend does that. i also have it use a timer do the delay like you suggested. but i made the timer so it would run for a different amount of time on every computer. my only problem is i cant figure out how to circle the npc. otherwise it kills them all fairly well
There must be a mathematic formula that gives you the position of the next point of a circle, so you can run it in a loop and circle around the middle of the screen, eventually the npc will stand in the middle.

Quote:
Originally Posted by manulaiko View Post
in java is like this:
Code:
// specify the host, protocol, and port
HttpHost target = new HttpHost(Main.server + ".darkorbit.bigpoint.com", 80, "http");	      
// specify the get request
HttpGet getRequest = new HttpGet("/indexInternal.es?action=internalStart&dosid="+ Main.sid);
//Execute Request
HttpResponse httpResponse = httpclient.execute(target, getRequest);
//Save resource
HttpEntity entity = httpResponse.getEntity();
//Go to fuck
Login with COM?

Code:
WB.Navigate("darkorbit.com")
While wb.readyState != 4 || wb.document.readyState != "complete" || wb.busy ; wait for the page to load
   Sleep, 50
wb.document.getElementById("bgcdw_login_form_username").value := Username
wb.document.getElementById("bgcdw_login_form_password").value := Password
wb.document.getElementsByClassName("bgcdw_button bgcdw_login_form_login")[0].click()
04/25/2014 13:33 Serraniel#44
Quote:
Originally Posted by TskulT View Post
There must be a mathematic formula that gives you the position of the next point of a circle, so you can run it in a loop and circle around the middle of the screen, eventually the npc will stand in the middle.
If you need a circle function for your gameplay you can use the Darkorbit Helper Manager, even if it is quite old and its servers are down -> slow start
[Only registered and activated users can see links. Click Here To Register...]

I can look up the source code if you want.
04/25/2014 15:05 gara250#45
I'm really glad to see bot developers helping each other. :)