Guest User

Untitled

a guest
Apr 8th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.97 KB | None | 0 0
  1. Func Cast()
  2.  
  3.  
  4.     ;~      Death's Charge
  5.     If GetDistance($mLowestEnemy, $mSelf) < 1250 Then
  6.         If CanUseSkill(8, 5) Then
  7.             UseSkill(8, $mLowestEnemy)
  8.             Return True
  9.         EndIf
  10.     EndIf
  11.    
  12.     ;~      Shroud of Distress
  13.     If CanUseSkill(6, 10) Then
  14.         UseSkill(6, $mSelfID)
  15.         Return True
  16.     EndIf
  17.    
  18.     ;~      Spiteful Spirit
  19.     If GetDistance($mLowestEnemy, $mSelf) < 750 Then
  20.         If CanUseSkill(1, 15) Then
  21.             UseSkill(1, $mLowestEnemy)
  22.             Return True
  23.         EndIf
  24.     EndIf
  25.        
  26. ;~          Viper Defense
  27.     If GetDistance($mLowestEnemy, $mSelf) < 450 Then
  28.         If Not GetIsPoisoned($mLowestEnemy) Then
  29.             If CanUseSkill(2, 5) Then
  30.                 UseSkill(2, $mLowestEnemy)
  31.                 Return True
  32.             EndIf
  33.         EndIf
  34.     EndIf
  35.    
  36. ;~          Barbed Signet
  37.     If GetDistance($mLowestEnemy, $mSelf) < 450 Then
  38.         If DllStructGetData($mSelf, 'HP') > .35 Then
  39.             If Not GetIsBleeding($mlowestEnemy) Then
  40.                 If CanUseSkill(3, 0) Then
  41.                     UseSkill(3, $mLowestEnemy)
  42.                     Return True
  43.                 EndIf
  44.             EndIf
  45.         EndIf
  46.     EndIf
  47.    
  48.     Return False
  49. EndFunc
Add Comment
Please, Sign In to add comment