TinyUpload.com - best file hosting solution, with no limits, totaly free
hi! since many here were hoping for an update of the good old script, and nidarks script wasnt working for me, i changed it a bit, so it works for me.
IMPORTANT: this is for 1920x1080 standalone, dunno if it works with steam, it will definitely NOT work with any other resolution.
thanks to nidarks for his work!
NIDARKS THREAD (PoE Companion (AHK))
what changed? the method the script read the HP was based on the black background above the player, i changed it to read some areas at the red hp globe to trigger the different stages of potting (TriggerHPLow, TriggerHPHigh, etc). if hp is full it also checks if mana is below 15% or so... if it isnt blue (eg you have more mana reserved or play on blood magic) you should change the script. if your hp globe isnt red (if you use Energy Shield) IT WONT WORK
so... these are my settings... maybe i will have to change them too for another char. this is not done as fast as earlier, but manageable:
what do you have to do, if you have another resolution or mana or ES?
first: read into the ahk pixelsearch command
PixelSearch
here is the code of the .ahk - open it with an editor. at the end you will find:
Code:
TGameTick(){
;if Debug {FileAppend, FormatTime, T, %A_Now%, M/dd/yy h:mmtt Testing Chat Icon Existence `n, PoeCompanion.log}
PixelSearch, StatueMatchX, StatueMatchY, 9, 946, 13, 950, 0x779DB7, 2, Fast
if (ErrorLevel=1){
CurrentHP:=100
GuiUpdate()
Exit
}
if (AutoPot=1) {
Trigger:=00000
GetKeyState, state, %MainAttackKey%
if state = D
Trigger:=Trigger+TriggerMainAttack
GetKeyState, state, %SecondaryAttackKey%
if state = D
Trigger=:Trigger+TriggerSecondaryAttack
}
PixelSearch, HPQuitX, HPQuitY, 165, 1000, 172, 1006, 0x190D84, 2, Fast
if (ErrorLevel=1) {
Logout()
Exit
} else {
PixelSearch, HPLowX, HPLowY, 85, 955, 92, 963, 0x2112AD, 3, Fast
if (ErrorLevel=1) {
Trigger:=Trigger+TriggerHPLow
} else {
PixelSearch, HPMedX, HPMedY, 95, 925, 104, 935, 0x2913B5, 3, Fast
if (ErrorLevel=1) {
Trigger:=Trigger+TriggerHPAvg
} else {
PixelSearch, HPHighX, HPHighY, 110, 895, 118, 904, 0x292385, 2, Fast
if (ErrorLevel=1) {
Trigger:=Trigger+TriggerHPHigh
} else {
PixelSearch, HPManaX, HPManaY, 1780, 1024, 1790, 1030, 0x883F0F, 4, Fast
if (ErrorLevel=1) {
Trigger:=Trigger+TriggerManalow
}
}
}
}
}
first: i matched the light pixels of the statues shoulder next to the hp globe, if they arent present (eg you are travelling etc) it doesnt execute autopot/autoquit.
Now: open the game, open the script, and PRESS alt+O with your cursor hovered at the point, where you want to quit.
-write down the coordinates and color. eg: X169 Y1003 color=0x190D84
-now subtract some points for the first coordinate and add some points for the second coordinate, so you get X165,Y1000 and X172,Y1006 - now you get a small rectangle. in this rectangle he checks for the presence of the color 0x190D84. if not, AutoQuit is executed.
Code:
PixelSearch, HPQuitX, HPQuitY, 165, 1000, 172, 1006, 0x190D84, 2, Fast
repeat this for
Code:
PixelSearch, HPLowX, HPLowY, 85, 955, 92, 963, 0x2112AD, 3, Fast
if (ErrorLevel=1) {
Trigger:=Trigger+TriggerHPLow
where you want the TriggerHPLow to trigger... and so on with the HPAvg and TriggerManaLow at the blue mana globe
hope this helps!
download:
TinyUpload.com - best file hosting solution, with no limits, totaly free
-start the ahk
-ingame press alt+F11 and alt+F12 to start AutoQuit and AutoPot
and thx to nidark! everything else should still work with his script.
every other information to the script you find in his thread.
p.s.: you can still change, which flasks should be clicked in the .ini file. the threshold percentages are useless, as this script uses a different method. also the hp percentage in the bottom left corner has no meaning anymore (for me it didnt either before)
edit: ive chosen a pretty early autoquit point, since sometimes it feels like this script has a small delay... feel free to change that. and if you plan to run face forward into a buzzsaw at the lab and survive with 10%, disable the script... or risk losing an offering ^^
edit2: also: dont forget to change TriggerMainAttack and TriggerSecondaryAttack in the PoeCompanion.ini if you want pots to be used when you are attacking