first debug run i get an error in this block
Function KillNearestTarget
Dim aTarget
set aTarget = FindTarget(3,5,40*VG_YARDS)
Dim bGotTarget
if (aTarget = getPlayer) then
'Invalid or no targets nearby
KillNearestTarget = false else
bGotTarget = TargetNearestMob(aTarget)
'Hit tab once to see if the next closest is it.
if (bGotTarget = false) then
bGotTarget = TargetNextMob(aTarget)
end if
if (bGotTarget = false) then
Log.DebugLog "Could not target mob"
KilLNearestTarget = false
else
set aTarget = getTarget 'Have to assign vars byref
if (getTargetHealth = 100) then
call KillCurrentTarget
KillNearestTarget = true
else
Log.DebugLog "This mob was claimed. (HP<100%)"
KillNearestTarget = false
end if
end if
end if
end function
i get
Error:Line:196, Char: 4::Object requred: 'VG'
can anyone clarify what i need to do to fix this pls?