Quote:
Originally Posted by Waka.Waka
open the script and add tiny things like
Code:
Out("here the bot starts to attack/use spells")
or just count from 1 to 10 and see exactly where the bot has problems.. it helps alot and when you know what function is wrong you can post that function here and people can take a look at it. But some scrips are pretty large and it consumes alot of time to look into stuff like this without more informations.
Cheers 
|
Apparently the problem would come from this function how I could find the error there?
Func PrepareToFight()
Local $lDunkoro, $lTahlkora, $lMiku, $lZhed
Local $lDeadLock, $lDeadLock2
$lDunkoro = GetAgentByName($dunkoro)
$lTahlkora = GetAgentByName($tahlkora)
$lMiku = GetAgentByName($miku)
UseHeroSkill(4, 1)
Sleep(2000)
UseHeroSkill(4, 8, $lDunkoro)
Sleep(3500)
UseHeroSkill(4, 8, $lTahlkora)
Sleep(3500)
UseHeroSkill(4, 8, $lMiku)
Sleep(3500)
CommandAll(-5536, -4765)
CommandHero(1, -5399, -4965)
CommandHero(2, -5877, -4479)
CommandHero(3, -5669, -4640)
;~ If GUICtrlRead($Mesmers) = $GUI_CHECKED Then
;~ UseHeroSkill(5, 8, $lGwen)
;~ UseHeroSkill(7, 8, $lGwen)
;~ EndIf
;~ Sleep(5000)
;~ If GUICtrlRead($Mesmers) = $GUI_CHECKED Then
;~ UseHeroSkill(5, 8, $lGwen)
;~ UseHeroSkill(7, 8, $lGwen)
;~ EndIf
MoveTo(-6550, -5382)
$lDeadLock = TimerInit()
Do
Sleep(10)
Until GetNumberOfFoesInRangeOfAgent(-2, 4250) <> 0 Or TimerDiff($lDeadLock) > 5000
$lDeadLock2 = TimerInit()
Do
$lMiku = GetAgentByName($miku)
HelpMiku($lMiku)
Sleep(250)
Until TimerDiff($lDeadLock2) > 5000
UseSkillEx(2) ; On met une ward pour les copains
UseSkillEx(1)
Sleep (5000)
UseSkillEx(3)
UseSkillEx($skill_bar_toubillon, GetNearestEnemyToAgent(-2))
Sleep (3000)
EndFunc ;==>PrepareToFight