Quote:
Originally Posted by challe
ich finde das mit der range richtig gut, hab jedoch einen bug gefunden.
Ich war fleißig am kloppen, da kam ein anderer Typ der mitgekloppt hat. Als der mob down war stand im bot fenster einfach nur noch "waiting... -747m"
dann hat er nichts mehr gemacht. habe leider vergessen nen screenshot zu machen.
|
i pimped kknb's code a bit .. to fix this issue the bot now targets a mob
and checks distance... if the dist. is longer then 26m (most mage casts are
around 25m? right ) it TABs and checks dist...
it will repead this process 15 times until one found closer then 26m...
it just targest " a close one " not the nearest ...
I need some help to get the nearest one in target without changing
mem values ...
Kknbs Function tweakd:
Code:
Func waitForDist() ;;;: waits until the mob is in range - Added by kknb 30.10.2009
do
$abstand1 = GetDistance()
if $abstand1 > 26 Then
$zaehler = 0
While $abstand1 > 26 and $zaehler < 15
send("{TAB}")
sleep(10)
$abstand1 = GetDistance()
sleep(100)
$zaehler = $zaehler + 1
WEnd
Else
;~ do
sleep(100)
$abstand = GetDistance()
_toolTip("waiting until target is in range -"&$abstand&"m")
Send($atck)
$loopcounter+=1
EndIf
until $abstand <= $attackdist or $loopcounter = 1000
$loopcounter = 0
;~ EndIf
EndFunc
if you want to beta test this version have a go... another
dirty and lazy quickfix out of my kitchen
thx to Kknb for the basis work !