autobuffs

10/17/2010 06:10 quoctinh#31
Quote:
Originally Posted by Mega Byte View Post
Well have you checked for different game brightness levels. they effect the colors slightly dont they?

It does effect the shade of the colour but I program it so that it detect the colour at a specific pixel coordinate after buffs are used.
10/17/2010 06:20 quoctinh#32
Quote:
Originally Posted by AfterBurn 2.0 View Post
In full screen mode the coordinates are not always the same depends on resolution. The coords for buffs on a 1024 by 768 are totally diferent then the coords on a 1920 x 1200 resolution, then there is the glow effect as Mega has said that can alter the color. So no your bot will not always work, these things you need to consider.

You can not see the cursor but it is over the same buff on both res's you can tell by the discription dropdown on the buff.

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
I'm not sure how you manage to find the coordinate but from these res below I've found that the buffs coordinates I used are always the same.

1024x768,1152x864,1280x720,1280x768,1280x800,1280x 960,1280x1024,1360x768,1360x1024,1440x900,1680x105 0.

As you can see I don't have resolution 1920x1200 so I can't confirm that resolution but I'm guessing that It'll be the same. If you don't mind can you send me an ss with inventory open using this method:
1. press PRT SCR (PRINT SCREEN)
2. using an image editing software (ie photoshop)
3. paste as new image

Thanks
10/17/2010 20:07 Mega Byte#33
Its not fine the GUI expands depending on screen/window resolution. Run the game at 800/600 no quickbar at the bottom ;).

So no they are not in the same place each time hence why AfkGuy made different resolution configs for each res for his bot ;).

However! it is possible to read the exact location of a game ui feature in Pixels from the game engine if you know where to look ;) Ive stumbled upon them a few times but have not documented it.
10/17/2010 20:35 quoctinh#34
Quote:
Originally Posted by Mega Byte View Post
Its not fine the GUI expands depending on screen/window resolution. Run the game at 800/600 no quickbar at the bottom ;).

So no they are not in the same place each time hence why AfkGuy made different resolution configs for each res for his bot ;).

However! it is possible to read the exact location of a game ui feature in Pixels from the game engine if you know where to look ;) Ive stumbled upon them a few times but have not documented it.
ahhh, I've never thought about 800x600 but who uses this resolution nowaday?

for me, for autobuff I didn't have to use different res but for autopot refill I do have to config for different res because the location of inventory changes. I can't find a mathematical equation to find this location but for pet hp and quick slot bar there's an equation for each one.
10/17/2010 21:44 Mega Byte#35
I use it occasionaly when im doing code stuffs and memory junk :). As the windows tiny.
But usally I just run the game at 1024 on my first monitor.

But i was using it as an example to show that the GUI is not static its dynamic. "Fluid" layout. Expanding to what it needs. So defiantly keep that in mind when designing where to click. Because it won't always be in the same place on all res's even though you may get lucky and get it most of the time :). You could do calculations like the game does relative to a corner / middle edge / center of the screen/window res. You can then calculate the exact location. You can also find the location even in window mode no matter where the window is just using maths and some api calls.
10/17/2010 21:58 AfterBurn 2.0#36
Quote:
Originally Posted by quoctinh View Post
I'm not sure how you manage to find the coordinate but from these res below I've found that the buffs coordinates I used are always the same.

1024x768,1152x864,1280x720,1280x768,1280x800,1280x 960,1280x1024,1360x768,1360x1024,1440x900,1680x105 0.

As you can see I don't have resolution 1920x1200 so I can't confirm that resolution but I'm guessing that It'll be the same. If you don't mind can you send me an ss with inventory open using this method:
1. press PRT SCR (PRINT SCREEN)
2. using an image editing software (ie photoshop)
3. paste as new image

Thanks
Thanks for the explanation but I know how to use ss software, I design my own software (you dont read the forums much do you?):) so the step by step was not necessary. But as for the inventory , trade window, character info and all that is all built into one big GUI that allows you to open and close each window, now if you off set the inventory window in memory you move everything but the skill bar and stuff at the bottom that is all on a different layout and moved by a different memory region. As Mega said read the res from memory as your program is starting and write the source code to make the necessary changes to match that res.