Works with any Resolution
Any Resolution Chicken Script (HP Based | Updated 03.04.2014) Any Resolution Chicken Script (Shield Based | Updated 03.04.2014) Includes F1 Instant Logout + Ctrl-X /oos + Alt-C /itemlevel
Code: Select all
#IfWinActive, Path of Exile
menu, tray, add
menu, tray, add, Windowed (Borders), Border
menu, tray, add, Windowed (Borderless), Borderless
Menu, Tray, Tip, PoE Chicken Script v2.0`nMade by Sanctus
Menu, Tray, Icon, Images\ChickenOff.ico
;i = bordertop+bottom, j = borderleft+right, l=bordertop, k=borderleft
toggle = 0
IniRead, i, borderonoff.ini, border, i
IniRead, j, borderonoff.ini, border, j
IniRead, k, borderonoff.ini, border, k
IniRead, l, borderonoff.ini, border, l
return
F1::
WinGetPos,,, w, h, A
SendInput, 1112345
SendInput, {Esc}
MouseClick, Left, % Round(962 / (1920 / (w - i))) + l, % Round(432 / (1080 / (h - j))) + k, Fast
return
F4::
WinGetPos,,, w, h, A
HX := % Round(127 / (1920 / (w - i))) + l
HY := % Round(983 / (1080 / (h - j))) + k
CX := % Round(16 / (1920 / (w - i))) + l
CY := % Round(882 / (1080 / (h - j))) + k
PixelGetColor, hpcolor , %HX%, %HY%
PixelGetColor, hpcolorrgb , %HX%, %HY%, RGB
PixelGetColor, chaticon , %CX%, %CY%
PixelGetColor, chaticonrgb , %CX%, %CY%, RGB
OBX := % Round(4 / (1920 / (w - i))) + l
OBY := % Round(873 / (1080 / (h - j))) + k
OBXX := % Round(25 / (1920 / (w - i))) + l
OBYY := % Round(894 / (1080 / (h - j))) + k
DHX := % Round(60 / (1920 / (w - i))) + l
DHY := % Round(872 / (1080 / (h - j))) + k
DHXX := % Round(170 / (1920 / (w - i))) + l
DHYY := % Round(972 / (1080 / (h - j))) + k
HQX := % Round(60 / (1920 / (w - i))) + l
HQY := % Round(872 / (1080 / (h - j))) + k
HQXX := % Round(170 / (1920 / (w - i))) + l
HQYY := % Round(991 / (1080 / (h - j))) + k
gui, new
gui, Default
gui, +LastFound +LabelMyGui
gui, add, groupbox, w205 h100, Colors found:
gui, add, text, yp+25 xp+10, ChatIcon Color:
gui, add, Progress, xp+80 yp-5 w100 h20 c%chaticonrgb%,100
gui, add, text, yp+25 xp-80, HP Color:
gui, add, Progress, xp+80 yp-5 w100 h20 c%hpcolorrgb%,100
gui, add, button, xp-80 yp+25 w25 h25 gDone, OK
gui, show,, Chicken Script Activated
Menu, Tray, Icon, Images\ChickenOn.ico
Loop {
IfWinActive, Path of Exile
{
;Find the Orange chat Icon (makes sure you are on a character)
PixelSearch, FoundoX, FoundoY, %OBX%, %OBY%, %OBXX%, %OBYY%, %chaticon%, 10, Fast
if ErrorLevel = 0
{
;Just under 50% start drinking pots
PixelSearch, FoundhX, FoundhY, %DHX%, %DHY%, %DHXX%, %DHYY%, %hpcolor%, 10, Fast
if ErrorLevel = 1
{
SendInput, 12345
}
;If HP goes to 35%~ or below quit
PixelSearch, FoundhX, FoundhY, %HQX%, %HQY%, %HQXX%, %HQYY%, %hpcolor%, 10, Fast
if ErrorLevel = 1
{
SendInput, 1112345
SendInput, {Esc}
MouseClick, Left, % Round(962 / (1920 / (w - i))) + l, % Round(432 / (1080 / (h - j))) + k
}
}
}
Sleep, 100
}
return
Border:
MsgBox, Windowed (Borders all around)
;For Windowed (with Borders all round)
i = 16
j = 38
l = 8
k = 30
IniWrite, %i%, borderonoff.ini, border, i
IniWrite, %j%, borderonoff.ini, border, j
IniWrite, %l%, borderonoff.ini, border, l
IniWrite, %k%, borderonoff.ini, border, k
return
Borderless:
MsgBox, Borderless (No Borders)
;For Fullscreen Borderless
i = 0
j = 0
l = 0
k = 0
IniWrite, %i%, borderonoff.ini, border, i
IniWrite, %j%, borderonoff.ini, border, j
IniWrite, %l%, borderonoff.ini, border, l
IniWrite, %k%, borderonoff.ini, border, k
return
Done:
gui,submit,nohide
gui, destroy
return
^x::
SendInput, {Enter}
sleep, 20
SendInput, {/}oos
SendInput, {Enter}
return
!c::
MouseClick, Left
SendInput, {Enter}
SendInput, {/}itemlevel
SendInput, {Enter}
Sleep, 100
MouseClick, Left
return
F7::Reload
F8::ExitApp
First time you turn it on you need to go to the bottom of the right corner and right click the .ahk icon
Turn on Windowed (Borders)
or Turn on Windowed (Borderless)
Default is Windowed (Borderless) if you download the .rar file
IF YOU DONT GET COLORS SIMILAR TO THIS SOMETHING IS WRONG
If running shield character(and shield script) then color should be light blue at shield color
This popup indicates the script is ON
At anytime you can F7 to Reload the script (turns off ChickenScript)
F8 To Crash
F1 to Instantly Logout
F4 to turn on Chicken Script
Ctrl+X to /oos
Alt+C to /itemlevel
You only need to set it up once, it will remember your settings next time you turn it on.
Older Version (HP / Shield)
Spoiler
Heed the warnings above. Have fun.