Skill assist script not working.

10/11/2018 17:11 OuttaControlX#1
basically just trying to have this script assist me while i actually play, just want it to use skills 1-4 as they are recharged, any help appreciated.

Code:
#include <WindowsConstants.au3>
#include <StaticConstants.au3>
#include <GUIConstantsEx.au3>
#include <EditConstants.au3>
#include "GWA2.au3"

$lMe = GetAgentByID(-2)
$lTarget = GetNearestEnemyToAgent(-2)
While 1
   Sleep(100)
   $lMe = GetAgentByID(-2)
   $lTarget = GetNearestEnemyToAgent(-2)
   While GetDistance($lMe, $lTarget) <= 200 ;Dont want it to work until im close to enemy (Melee)
	  Attack($lTarget, True)

	  $skillbar = GetSkillbar()
	  $useSkill = -1
		For $i = 1 To 4
			$recharged = DllStructGetData($skillbar, 'Recharge'& $i)
			$strikes = DllStructGetData($skillbar, 'AdrenalineB'& $i)
			If $recharged = 0 Then
				$useSkill = $i
				ExitLoop
			EndIf
		Next
	  UseSkill($useSkill,$lTarget)
	  RndSleep(500)
   WEnd
WEnd
10/12/2018 07:57 bingbongman#2
Did you initialize GWA2?
10/12/2018 13:21 OuttaControlX#3
Quote:
Originally Posted by bingbongman View Post
Did you initialize GWA2?
NOPE :D