Set a flag variable with a delay when first skill triggered... same for second, then you know when u can use third... or read some post as someone posted this code not too long ago -- possibly earlier in this thread even...
or you just check for the mainhand, offhand, dualattacks ^^Quote:
Set a flag variable with a delay when first skill triggered... same for second, then you know when u can use third... or read some post as someone posted this code not too long ago -- possibly earlier in this thread even...
maybe this will help you: [Only registered and activated users can see links. Click Here To Register...]Quote:
Anyone know how to check if offhand and dual attacks are ready to be used through gwa2?
Func GetDaggerStatus($aAgent) If IsDllStruct($aAgent) = 0 Then $aAgent = GetAgentByID($aAgent) Return (DllStructGetData($aAgent, 'LastStrike')) EndFunc
Same here. After it finishes selling it goes to Longeye and just sits there.Quote:
Have an issue with Niliya Vaettir Bot
Bot work very well, but sometimes when Travel at Eye of the North, selle items, Travel Map to longeye and doesnt restart.
Work only for one "run"
Any ideas?
edit : doesn't pick up mesmer tomes too ?
Thanks
This should still work ok... Just call the above function with...Quote:
Thats what i used until nowCode:Func GetDaggerStatus($aAgent) If IsDllStruct($aAgent) = 0 Then $aAgent = GetAgentByID($aAgent) Return (DllStructGetData($aAgent, 'LastStrike')) EndFunc
Local $lLastStrike $lLastStrike = GetDaggerStatus(GetAgentByID(GetMyID()))
Shouldn't you call it with your target's AgentID instead of your own one?Quote:
This should still work ok... Just call the above function with...Code:Local $lLastStrike $lLastStrike = GetDaggerStatus(GetAgentByID(GetMyID()))
Func DaggerLowest() $target = GetLowestEnemyToAgent(-2) if GetDaggerStatus($target) = 1 Then UseSkillEx($ff, $target) ElseIf GetDaggerStatus($target) = 2 Then UseSkillEx($db, $target) ElseIf (GetDaggerStatus($target) = 0 or GetDaggerStatus($target) = 3) Then UseskillEx($js, $target) EndIf EndFunc
Works perfectly, thank you!Quote:
@[Only registered and activated users can see links. Click Here To Register...] yes, my daggerstatus function works like "GetDaggerStatus($target)"
and it just returns a number between 0 and 3 and you can base your fight func off that
Edit: A simple function that just daggerspams the lowes enemy in range would look like:
Code:Func DaggerLowest() $target = GetLowestEnemyToAgent(-2) if GetDaggerStatus($target) = 1 Then UseSkillEx($ff, $target) ElseIf GetDaggerStatus($target) = 2 Then UseSkillEx($db, $target) ElseIf (GetDaggerStatus($target) = 0 or GetDaggerStatus($target) = 3) Then UseskillEx($js, $target) EndIf EndFunc
Local $lLastStrike $lLastStrike = GetDaggerStatus(GetCurrentTarget())