Hello fellow scrip/botters.
Dont you just love when little projects turn into big ones or nothing but just problems, Cause I do...
Im working on something where im using most of the old code over at
"Diablo 3 Au3 & MemoryRead Tool-Kit for bots"
My problem is something with attacking, I find my character/toon killing everything
& then just standing there attacking the ground. Sometimes there nothing but the ground
other times hes clicking next to some items. Heres my code im sure im reading something wrong.
btw if i change to SOF my character/toon just runs from one waypoint to the next, with out attacking.
Thats another problem which im concerned about but dont really care right now.
- I call this to move -> looks fine....
- I call this to attack... -> sure theres something wrong.Code:MoveToPos(1152.68298339844, 701.385498046875 , 4.20062875747681, 1, 25)
Once again im sure im reading something wrong,Code:;;-------------------------------------------------------------------------------- ;; Attack() ;;-------------------------------------------------------------------------------- Func Attack($range, $monsterList) ActDiablo() $Once = 0 While 1 $OBject = IterateObjectList(0) $foundtarget = 0 For $i = 0 To UBound($OBject, 1) - 1 _ArraySort($OBject, 0, 0, 0, 8) If checkFromList($monsterList, $OBject[$i][2]) And $OBject[$i][1] <> 0xFFFFFFFF And $OBject[$i][7] <> -1 And $OBject[$i][8] < $range Then ;<-- Could be this??? $Coords = FromD3toScreenCoords($OBject[$i][3], $OBject[$i][4], $OBject[$i][5]) MouseMove($Coords[0], $Coords[1], 3) If $Once = 0 Then AttackHydra() $tempvalue = _MemoryRead($OBject[$i][9] + 0x4, $d3, 'ptr') While $tempvalue <> 0xFFFFFFFF $tempvalue = _MemoryRead($OBject[$i][9] + 0x4, $d3, 'ptr') $Coords = FromD3toScreenCoords(_MemoryRead($OBject[$i][9] + 0xB0, $d3, 'float'), _MemoryRead($OBject[$i][9] + 0xB4, $d3, 'float'), _MemoryRead($OBject[$i][9] + 0xB8, $d3, 'float')) MouseMove($Coords[0], $Coords[1], 3) OffsetList() $CurrentLoc = GetCurrentPos() $xd = $CurrentLoc[0] - $Coords[1] $yd = $Coords[0] - $CurrentLoc[1] $Distance = $xd+$yd $Distance = Sqrt($Distance) GetLifep24() If $LIFE = 0 Then ;$DeathCount = 1 LeaveGame() Sleep(20000) Start() Exit EndIf If $Distance > 15 Then MouseClick("Right",$Coords[0],$Coords[1]) Else MouseClick("Left",$Coords[0],$Coords[1]) EndIf WEnd $foundtarget = 0 ExitLoop EndIf Next If $foundtarget = 0 Then Grabit(30) ExitLoop EndIf MoveToPos($lastwp_x, $lastwp_y, $lastwp_z, 0, 25) WEnd EndFunc ;==>Attack
& thanks for looking at all this.