. Compiled version that runs in windowed mode 1280x1024 gamma average and default window position.
Now the funny part. Cause it works by checking colors on the screen if you need other display mode you propably will neeed edit it so here is the tool
And here goes the code ;P.
IfWinExist Lineage II
{
WinActivate
Loop{
PixelSearch, Px, Py, 158, 57, 162, 62, 0x213139, 20, Fast
if ErrorLevel
Sleep, 250
else
Send {F11}
Sleep, 250
}
}
You need to copy the code to notepad save it as ***.AHK then compile using the program. Now few things about how code works
First two numbers are coordinates where program start to look for specified color. Next two are right lower corner of rectangle where the pixel is searched.
The Hex number is the color of CP bar when you are without cp. 20 after HEX is number of Hues of CP bar because its transparent and not always the same
Sleep are just delays between cp potion reuse and next look for color of pixel. Its counted in ms
Send {F11} here program simulates pressing of the button. F11 is hotkey for cp pots for me . You can change it just by editing the number
Tool to check the position and color of cp bar is included in the soft and called AutoIT3 Window Spy
Aah one thing more. After converting ahk to exe. Start your L2 before CP spammer