Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2014
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. 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.
  2.  
  3. 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.
  4.  
  5.  
  6.  
  7.  
  8. CoordMode, Mouse, Screen
  9. CoordMode, Pixel, Screen
  10. WinActivate AION Client
  11. Loop {
  12. Sleep 500
  13. Target()
  14. Sleep 500
  15. Attack()
  16. Sleep 3000
  17. Send 6
  18. Sleep 3000
  19. CheckTarget()
  20. Sleep 500
  21. Rest()
  22. }
  23.  
  24. Rest()
  25. {
  26. PixelGetColor, PlayerHealth, 485,987
  27. if PlayerHealth = 0x1819C1
  28. {
  29. return
  30. }
  31. else if PlayerHealth != 0x1819C1
  32. {
  33. Send {,}
  34. while PlayerHealth != 0x1819C1
  35. {
  36. CheckTarget()
  37. Sleep 1000
  38. PixelGetColor, PlayerHealth, 485,987
  39. }
  40. }
  41. }
  42. Target()
  43. {
  44. PixelGetColor, TargetReticule, 743,74
  45. if TargetReticule = 0x334255
  46. {
  47. Send {Escape}
  48. }
  49. Send {Tab}
  50. Sleep 1000
  51. PixelGetColor, TargetReticule, 743,74
  52. while TargetReticule != 0x334255
  53. {
  54. Send {Right down}
  55. Sleep 750
  56. Send {Right up}
  57. Send {Tab}
  58. Sleep 1000
  59. PixelGetColor, TargetReticule, 743,74
  60. }
  61. }
  62. Attack()
  63. {
  64. PixelGetColor, EnemyHealth, 788,48
  65. while EnemyHealth != 0x303A3C
  66. {
  67. Send 2
  68. Sleep 1000
  69. Send 1
  70. Sleep 1000
  71. Send 1
  72. Sleep 1000
  73. Send 1
  74. Sleep 1000
  75. PixelGetColor, EnemyHealth, 788,48
  76. HealthPot()
  77. }
  78. }
  79. CheckTarget()
  80. {
  81. PixelGetColor, TargetReticule, 743,74
  82. if TargetReticule = 0x334255
  83. {
  84. Attack()
  85. Sleep 500
  86. send 6
  87. }
  88. else
  89. {
  90. return
  91. }
  92. }
  93. HealthPot()
  94. {
  95. PixelGetColor, PlayerHealth, 345,989
  96. if PlayerHealth != 0x3031E0
  97. {
  98. Send 7
  99. }
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement