Post Reply Home » Forums » MMO Forums » Age of Conan » Age of Conan Guides, Bots & Tools

AOC BOts - AutoHotkey Script - AoC Auto Combo : Age of Conan Guides, Bots & Tools

Posted: May 20th, 2008
User avatar
Total Posts:143 Joined:2005
I was looking to make a G15 like functional macros using autohotkey, and had an idea to automate combo's regardless of what is there.

Requirements:
AutoHotkey (Register to unlock hidden link)
Windowed Mode
Rose (Can be turned on in interface options under Hud)
1,2, and 3 must still be bound to the combat swings.

How it works:
It scans the pixels in a box that you define. If it see's the color specified (and it searches within a range since the color can be highlighted at times) it will activate that direction. Since combo's light up the direction on the rose, its easily detectable.

Setup:
First thing to do is to is rename the file extension to .ahk

Then we must setup the detection areas.
To do so...start off by opening the game, then run the script. It will tell you your mouse position (relative to current selected window) and color that is under the mouse (not just on selected window, but whatever is visible under mouse)

There is a section in the script that looks like this.

Code: Register to unlock hidden link

	;Edit These Variables
	;Edit                 X    Y    X    Y  Color when combo selected
	PixelSearch, Lx, Ly, 571, 811, 610, 845, 0x55a1b6, 35 ;Left Directional
	PixelSearch, Mx, My, 623, 791, 652, 815, 0x55a1b6, 35 ;Middle Directional
	PixelSearch, Rx, Ry, 671, 816, 700, 843, 0x55a1b6, 35 ;Right Directional
It is pretty self explanitory, but basically it works like this.
You want to put the first x,y coordinates somewhere to the top left of the area on the comat rose and the second x,y cooridnates somewhere to the bottom right of the area on the combat rose. This needs to be done for all 3 directional attacks.

The color doesnt have to be spot on, but may take some tweaking before it works properly.

After this, restart the script with the saved variables and you are essentially good to go.

The key to disable and enable the combos actually triggering is ALT+C.
You should see a L M R indicator as well when the script detects the correct color and will change that direction indicator to green.

I will attempt to get screenshots when I have more time and release a second version with the exta two directions once I get that level.


Attachments:
Auto Combo.txt Register to unlock hidden link
(2.28 KiB) Downloaded 102 times
Posted: May 20th, 2008
User avatar
administrator
Total Posts:29891 Joined:2002
500 to you and moved to confirmed
Posted: May 21st, 2008
Total Posts:21 Joined:2006
Kaeus, would you be able to code this so that it does not have to be in windowed mode? I would be willing to pay you to develop something like that. Anyway let me know if that is possible.
Posted: May 21st, 2008
User avatar
Total Posts:143 Joined:2005
It should work in fullscreen mode. Since the coordinates are relative to what window is selected, you can simply use windowed mode to make the detection box coordinates using the same resolution but windowed.

If it isn't working in fullscreen let me know, as I havn't really tried since I tend to multi-task a lot and I like to have other output.
Posted: May 21st, 2008
Total Posts:21 Joined:2006
i will attempt to use it full screen again and then try the coords. Would you mind talking off the boards?
Posted: May 23rd, 2008
pnot
Works like a charm in windows mode. I believe the problem with people not getting full screen to work properly is because they're not running AOC at the ir monitors native res. if you can run windowed at the same res at your fullscreen then it should match up.
Posted: May 23rd, 2008
mrannon
Ive been working on a autohotkey script that will kill mobs and loot. I have got everything to work ok, but there is one problem. There seems to be a problem with the autofacing of the client. If the mob spawns realy close to you I notice that your character will not autoturn to face the mob. This is really a problem with the script because while the mob is attacking you, your attacking in the opposite direction because the client didn't turn you to face the mob. If the mob spawn far away it works fine. Anyone have a fix for this. Im not that skilled in using Autohotkey, so wonding if anyone has any idea how to have a script turn your character to face a mob.
Posted: May 23rd, 2008
pnot
After playing around with this i think i've found a flaw in the way the entire process works. The rose is not a solid white color so grass and the ground can be seen through the rose a little and it throws off the color detection bigtime.

I don't know but maybe some screenshots would help.
Posted: May 24th, 2008
Total Posts:107 Joined:2007
mrannon wrote:Ive been working on a autohotkey script that will kill mobs and loot. I have got everything to work ok, but there is one problem. There seems to be a problem with the autofacing of the client. If the mob spawns realy close to you I notice that your character will not autoturn to face the mob. This is really a problem with the script because while the mob is attacking you, your attacking in the opposite direction because the client didn't turn you to face the mob. If the mob spawn far away it works fine. Anyone have a fix for this. Im not that skilled in using Autohotkey, so wonding if anyone has any idea how to have a script turn your character to face a mob.
I don't have a fix in AutoHotKey, but I do have a fix in AutoIT...check out Register to unlock hidden link....
Posted: May 24th, 2008
Total Posts:107 Joined:2007
Hm..I was hoping this would work, but I cannot figure it out. The AutoHotkey script keeps "Not Responding" and I'm not sure if that is why it isn't firing the combos or if has to do with the X,Y locations or colors. =)

Any further advice?

I'm running in windowed mode on Vista.
Posted: May 24th, 2008
pnot
As the script is now it doesn't work and it can't since the rose is transparent and the colors will always change depending on the background. I've tried multiple things and nothing works. I'm asking the mod community if there is a way to make the rose solid but no response yet.
Posted: May 24th, 2008
Total Posts:107 Joined:2007
I figured out a way to make this work. If you notice, the rose isn't the only thing that changes color when you have to do button presses. The 1,2,3 buttons themselves change to an orange type color, from their original red.

I currently have this working through an AutoIT script, which I believe is based on a similar syntax as AutoHotkey. So, instead of selecting and using the pixels from the rose, use the pixels from the physical buttons.

My recommendation is to use a small sliver of the top of each button as your area. So, select the top left corner that is red and the bottom right maybe just a pixel or two below the original on the other side of the button.

If you have questions let me know...thanks to the OP for this idea though, I'm integrating it into my auto combat script. =) I shall give credit where it is due.
Posted: May 26th, 2008
pnot
arvida wrote:I figured out a way to make this work. If you notice, the rose isn't the only thing that changes color when you have to do button presses. The 1,2,3 buttons themselves change to an orange type color, from their original red.

I currently have this working through an AutoIT script, which I believe is based on a similar syntax as AutoHotkey. So, instead of selecting and using the pixels from the rose, use the pixels from the physical buttons.

My recommendation is to use a small sliver of the top of each button as your area. So, select the top left corner that is red and the bottom right maybe just a pixel or two below the original on the other side of the button.

If you have questions let me know...thanks to the OP for this idea though, I'm integrating it into my auto combat script. =) I shall give credit where it is due.
This worked great, thanks.
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 3 guests
Post Reply