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