This script can do the following:
1. Turn your character in a circle to auto-target mobs in your line of sight
2. Start swinging combos at the target
3. If you are no longer in combat, it will return you to combat check stage after finishing remaining combos
Setup
To setup this script you will need the following:
1. AutoIT version 3
2. This script
3. Some patience
Step 1 - Enabling AoC Interface Options (Basic Window):
Enable Auto-Targetting = On
Enable Target Auto-Facing = On
Step 2 - Finding the Correct Pixel to Check for Combat and setup Combos:
I've included a download for a Pixel Position script. The combat script has it included, but it will require you to run the combat script, get your pixels, then exit the script before editing. Or you can run the Pixel Position script, edit, then run your combat script. It is up to you. Both Pixel Position tooltips end by left clicking your mouse or hitting escape.
This script uses 'PixelGetColor' to check for a change in the GUI. If you look carefully, when you target something or enter into combat, your bottom right bar changes slightly. It will have the target's health and other bars displayed. This change also changes a few pixels that are always the same color. What happens is the system displays the targets info on top of the bottom toolbar. The bottom toolbar pixels are always the same color, unless this target info is on top of it.
So, with 'PixelGetColor' we setup our "Non-Combat Pixel Color" and test it against what is happening on screen. Our "NCPC" is a standard and if our check tells us that the pixel we are checking is different than our "NCPC" the script knows that we are in combat or have targetted something.
You will need to find your pixel (x,y) coordinates. I've included a tool tip that will tell you the position of your cursor.
You will need to find (x,y) coordinates for your target check and (x,y) coordinates for your three to five onscreen combo buttons (1,2,3,q,e).
I've found that the location of the bottom bar that is just over the #5 slot, where it starts to bevel up at a 45% angle is the best pixel area for target check. In my testing, this has been the best spot to check for a pixel. I have good luck with the edge pixel on the 45% angle border. I found this to work well, but you may have to work with the coordinates a bit before you find one that works for you.
You can use a pixel almost anywhere on the combo buttons, however I've found that the top left corner of each button works the best. Just make sure the button is in down state (Not moved up when you mouse over it) when you record the pixel location.
After finding the pixels you want to try to use record them on paper or wherever and then click the mouse. Unfortunatley at this time getting the position automatically by click is unreliable, so you still have to manually enter pixel locations. It is much more reliable this way.
After clicking, the script will want to run, but you don't have variables working, so just hit escape to close out the script.
Step 3 - Open the Script in your Editor and Make Changes
Now you'll need to open the script in your editor and begin to make changes.
The first change is to set your (x,y) coordinates in the $portraitx, $portraity variables.
The second change is to set your combo buttons - they are respectively
$atk1x
$atk1y
.
.
$atk5x
$atk5y
Next, you'll be able to fool around with your pauses, or in AutoIT your "Sleep". This is in milliseconds.
Values for attack/combo keys 'q' and 'e' or '4' and '5' are currently commented out since many people may not be to the level where they have more combo buttons. To make these function, just put in your pixel values and uncomment the sections by removing the ';' from each line that is commented referring to the fourth and fifth combo buttons.
There are four sections you'd need to uncomment.
In order to run this script, I believe you'll need to be in windowed mode, but I haven't tested it in full-screen so I'm not sure. Just, start the script and it will fire off.
If you want to pause, you can use the 'Pause' button (Or assign a different button within the script). To exit the script, you can hit escape.
aoc_auto_pixelpos.zip ( 443bytes )
Number of downloads: 7
auto_combat_aoc_v3_0.zip ( 1.53K )
Number of downloads: 6