Quote:
Originally Posted by Kronos8
@  I fixed the issue, I made a refactor the other day and $target wasn't set properly
|
Sweet thx a ton
one other quick thing about this one is this
'- 1x Minor Fast Casting + 1x Major Fast Casting' & @

_
I think the creator meant 1 Minor Dom rune and a Major FC. I had a +1 FC headpiece so Im just guessing here.
Quote:
Originally Posted by Kronos8
@  I fixed the issue, I made a refactor the other day and $target wasn't set properly
|
I'm sorry to be a butt but it's still crashing at Line 174. same error. updated the Gemstone with what is on the github. here's my code for that section
Func GemKill()
If GetIsDead() Then Return
Local $target = GetNearestEnemyToAgent(GetMyAgent())
While Not GetIsDead() And DllStructGetData($target, 'ID') <> 0 And $distance < $FightDist
If GetMapLoading() == 2 Then Disconnected()
Local $targetsInRangeArr = GetFoesInRangeOfAgent(GetMyAgent(), 1700, IsDreamerDryderOrAnurKi)
Local $distance = 0
Local $specialTarget = False
If IsArray($targetsInRangeArr) And UBound($targetsInRangeArr) > 0 Then
$target = $targetsInRangeArr[0]
$specialTarget = True
EndIf
;— if no special target, fall back
If $target = 0 Then
$target = GetNearestEnemyToAgent(GetMyAgent())
$distance = GetDistance($target, GetMyAgent())
EndIf
If DllStructGetData($target, 'ID') <> 0 And $distance < $FightDist Then
ChangeTarget($target)
RndSleep(150)
CallTarget($target)
RndSleep(150)
Attack($target)
RndSleep(150)
ElseIf DllStructGetData($target, 'ID') = 0 Or $distance > $FightDist Or GetIsDead() Then
ExitLoop
EndIf
For $i = 0 To UBound($Gem_SkillsArray) - 1
Local $targetHp = DllStructGetData(GetCurrentTarget(), 'HP')
If GetIsDead() Then ExitLoop
If $targetHp = 0 Then ExitLoop
If $distance > $FightDist And Not $specialTarget Then ExitLoop
Local $skillPos = $Gem_SkillsArray[$i]
Local $recharge = DllStructGetData(GetSkillbarSkillRecharge($skillPo s, 0), 0)
Local $energy = GetEnergy()
If $recharge = 0 And $energy >= $gemSkillCostsMap[$skillPos] Then
UseSkillEx($skillPos, $target)
RndSleep(500)
EndIf
Next
WEnd