Advertisement
Guest User

Untitled

a guest
Oct 7th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.99 KB | None | 0 0
  1. ;at this point i assume that you have pulled all enemies and stored their id's in an array called $target[], $target[0] contains the number of enemies
  2.  
  3. Do
  4.     For $i=1 To $target[0]
  5.         ;check all enemies for hexes here, store the id's in an array with the number in [0] (e.g. $hexedEnemies[])
  6.         ;check rits for key skills, store the id's in an array with the number in [0] (e.g. $castingEnemies[])
  7.     Next
  8.    
  9.     For $i=1 To 8
  10.         ;check skill availability here, store 0/1 in an array depending on recharge status (e.g. $recharged[8]
  11.     Next
  12.    
  13.     ;determine which skill to use:
  14.     If $castingEnemies[0] And $recharged[3] Then
  15.         ;interrupt enemy in $hexedEnemies[1]
  16.     ElseIf $hexedEnemies[0] And $recharged[1] Then
  17.         ;hit enemy in $castingEnemies[1] with sniper shot
  18.     Else
  19.         ;use another skill depending on recharge status, energy and health (nature's blessing)
  20.     EndIf
  21.  
  22.     $cbType = "float"
  23.         CmdCB($CA_GETNEARESTALIVEENEMYTOAGENT, -2)
  24.  
  25. Until $cbVar[1] > 1200; to determine whether there is an enemy left to kill
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement