Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Searches for an enemy in range, targets it, attacks it until dead, loots it, rests until healed. The script will pop a health potion during combat if it falls below 33%. The script is smart enough to tell if an enemy is still on it after one dies or if it gets attacked while resting.
- My resolution is pseudo fullscreen 1680x1050. If your resolution is different you'll need to alter the pixelcoordinates and color values yourself. You'll also need to alter the hotkeys for your particular class / hotkey layout. In the script above 6 is loot all, 7 is a health potion, 1 and 2 are specials, Tab is target closest enemy, and , is rest.
- CoordMode, Mouse, Screen
- CoordMode, Pixel, Screen
- WinActivate AION Client
- Loop {
- Sleep 500
- Target()
- Sleep 500
- Attack()
- Sleep 3000
- Send 6
- Sleep 3000
- CheckTarget()
- Sleep 500
- Rest()
- }
- Rest()
- {
- PixelGetColor, PlayerHealth, 485,987
- if PlayerHealth = 0x1819C1
- {
- return
- }
- else if PlayerHealth != 0x1819C1
- {
- Send {,}
- while PlayerHealth != 0x1819C1
- {
- CheckTarget()
- Sleep 1000
- PixelGetColor, PlayerHealth, 485,987
- }
- }
- }
- Target()
- {
- PixelGetColor, TargetReticule, 743,74
- if TargetReticule = 0x334255
- {
- Send {Escape}
- }
- Send {Tab}
- Sleep 1000
- PixelGetColor, TargetReticule, 743,74
- while TargetReticule != 0x334255
- {
- Send {Right down}
- Sleep 750
- Send {Right up}
- Send {Tab}
- Sleep 1000
- PixelGetColor, TargetReticule, 743,74
- }
- }
- Attack()
- {
- PixelGetColor, EnemyHealth, 788,48
- while EnemyHealth != 0x303A3C
- {
- Send 2
- Sleep 1000
- Send 1
- Sleep 1000
- Send 1
- Sleep 1000
- Send 1
- Sleep 1000
- PixelGetColor, EnemyHealth, 788,48
- HealthPot()
- }
- }
- CheckTarget()
- {
- PixelGetColor, TargetReticule, 743,74
- if TargetReticule = 0x334255
- {
- Attack()
- Sleep 500
- send 6
- }
- else
- {
- return
- }
- }
- HealthPot()
- {
- PixelGetColor, PlayerHealth, 345,989
- if PlayerHealth != 0x3031E0
- {
- Send 7
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement