Originally Posted by
localhostage
You mean there is a address to which direction your toon is facing? That helps, using that how would I go about finding another X,Y coord and check if I'm facing it? Also could you share that address?
Thanks
i use this in autoit
Code:
;Cur_Coords[1] = players y coord
;Cur_Coords[0] = Players x coord
;Tar_Coords[1] = Target y coord
;Tar_Coords[0] = Target x coord
Target_Rot = _Degree(ATan( (Cur_Coords[1]-Tar_Coords[1]) / (Cur_Coords[0]-Tar_Coords[0]) ))
If Tar_Coords[0] < Cur_Coords[0] Then
Target_Rot += 180
EndIf
If Target_Rot > 359 then Target_Rot -= 360
If Target_Rot < 0 Then Target_Rot = 360-(Target_Rot*-1)
i hope it helps
and
Code:
0x00BBD204 = player y
0x00BBD200 = player x
edit: wtf, i cant use $text inside the code tags?!