Did some minor tweaks:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; If the script is not elevated, relaunch as administrator and kill current instance:
full_command_line := DllCall("GetCommandLine", "str")
if not (A_IsAdmin or RegExMatch(full_command_line, " /restart(?!\S)"))
{
try ; leads to having the script re-launching itself as administrator
{
if A_IsCompiled
Run *RunAs "%A_ScriptFullPath%" /restart
else
Run *RunAs "%A_AhkPath%" /restart "%A_ScriptFullPath%"
}
ExitApp
}
#MaxThreadsperHotkey, 2
CoordMode, Mouse, Screen
global lov:= 0,
global berry:= 0,
`::Pause ;--------------------- PAUSE HOTKEY --------------------
~NumpadMult:: ;----------- FOR TOGGLE KEY ------------------
Previouskey:= !PreviousKey
loop
{
if PreviousKey
{
;insert auto berry here:
sleep, 10
send, {F2}
sleep, 10
send, {Click 459 528, down} ; use window spy to get mouse coord
sleep, 10
send, {Click, up}
Sleep, 10 ; adjust 10-40
send, {F5}
sleep, 130 ; adjust 100-240
}
else
break
}
return
!5::Edit
!4::Reload
Works best if you have -100% after cast delay. Thus I added auto berry code if you swap upper Pharaoh C. for Aegir Helm.
Auto Berry + box Code here:
lov:= lov + 1
if (lov = 70) ; lov = 40-100 depends on build
{
sleep, 100
send, {F1}
lov:= 0,
berry:= berry + 1
if (berry = 100)
{
sleep, 100
send, {F4}
berry:= 0
}
}
When using auto berry code. Bring no less than a 100 berry on hand and any amount of Berry box. ( Don't overweight )
Hotkeys:
F1 = Ygg Berry // Hidden Dun 03
F4 = Ygg Berry Box
Build:
Aegir Helm -40% cast delay // @request Gpack please
Any Mid[1] - Kiel -40% cd // 80-100 AC or beg ( i got mine from begging XD )
Kiel Staff - 50% cd+ Dopel // Freebie