Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;By Sladki
- #NoEnv
- #SingleInstance force
- #MaxHotkeysPerInterval 500
- SendMode Input
- SetTitleMatchMode, 1
- lastLifeFlask := 0
- lastUtilityFlask := 0
- ~w::
- if WinActive("ahk_exe PathOfExile_x64.exe")
- {
- ActivateLifeFlasks()
- ActivateUtilityFlasks()
- }
- return
- ActivateUtilityFlasks()
- {
- Global lastUtilityFlask
- if ((A_TickCount - lastUtilityFlask) > 4000)
- {
- lastUtilityFlask := A_TickCount
- ActivateFlask(3)
- ActivateFlask(4)
- ActivateFlask(5)
- }
- }
- ActivateLifeFlasks()
- {
- Global lastLifeFlask
- if ((A_TickCount - lastLifeFlask) > 1000)
- {
- lastLifeFlask := A_TickCount
- Random, roll, 0, 3
- if (roll == 0)
- {
- ActivateFlask(2)
- ActivateFlask(1)
- }
- else
- {
- ActivateFlask(1)
- ActivateFlask(2)
- }
- }
- }
- ActivateFlask(i)
- {
- Send %i%
- Random, delay, 50, 150
- Sleep delay
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement