Quote:
Originally Posted by plox3
Hey,
my Char only uses Skill Number 1... How can i fix it, so he uses the whole skillbar?
|
Look to see how its used and what the context is for the useage. Then add in your other skills in the same format. Typically, to use a skill, just type the skill number and then the corresponding parameter. Here is just an example of some simple skill casting. You need to look at some other scripts to see full effective cast engines.
Code:
UseSkilExl(2,-2)
Sleep(GetPing()+300) ;<====Change times to reflect cast time
UseSkilExl(3,-2)
Sleep(GetPing()+300)
UseSkilExl(4,-2)
Sleep(GetPing()+300)
UseSkilExl(5,-2)
Sleep(GetPing()+300)
UseSkilExl(6,-2)
Sleep(GetPing()+300)
UseSkilExl(7,-2)
Sleep(GetPing()+300)
UseSkilExl(7,-2)
Func UseSkillEx($lSkill, $lTgt=-2, $aTimeout = 10000)
Local $lme = GetAgentByID(-2)
If GetIsDead($lme) Then Return
If Not IsRecharged($lSkill) Then Return
Local $lDeadlock = TimerInit()
UseSkill($lSkill, $lTgt)
Do
Sleep(50)
If GetIsDead($lme) = 1 Then Return
Until (Not IsRecharged($lSkill)) Or (TimerDiff($lDeadlock) > $aTimeout)
If $lSkill > 1 Then RndSleep(750)
EndFunc
Here is an example of a Kill or Spike function using all 8 skills repetitively until all the enemy are killed.
Code:
Func Kill()
Out("Attacking")
Do
CheckPartyDead()
$target = GetNearestEnemyToAgent(-2)
$distance = GetDistance($target, -2)
ChangeTarget($target)
Attack($Target)
UseSkills()
Until DllStructGetData($target, 'HP') = 0 Or GetDistance($target, -2) > 1400
PickUpLoot()
EndFunc
Func UseSkills()
$target = GetNearestEnemyToAgent(-2)
$targetHP = DllStructGetData(GetCurrentTarget(),'HP')
$targetDistance = GetDistance($target, -2)
For $i = 1 to 8
If GetSkillBarSkillRecharge($i) = 0 Then
If $targetHP <> 0 And $targetDistance > 1250 then ExitLoop
UseSkill($i, $target)
CallTarget($target)
Sleep(1000)
EndIf
Next
EndFunc