omegashin
2009-07-23 09:03:03
I myself don't like botting but I did soem cool stuff here.
Like HP of players, is ther a way we can see Monsters HP/??
Like HP of players, is ther a way we can see Monsters HP/??
2009-07-23 09:03:03
2009-07-23 09:14:50
2009-07-23 09:21:22
2009-07-23 09:28:56
2009-07-23 10:34:52
2009-07-23 11:38:33
2009-07-23 20:30:19
{*******************************************************************************
Function FindAllHPBars(Sx, Sy, x1, y1, x2, y2: Integer): TBoxArray;
By: Cazax
Description: Finds all the HP bars (the TPAs of them) in the box formed by
x1, y1, x2, y2. Recommended to set Sx and Sy to MSCX and MSCY, so Result[0]
is your own Bar or the closest one to you.
*******************************************************************************}
Function FindAllHPBars(Sx, Sy, x1, y1, x2, y2: Integer): TBoxArray;
Var
a, b : TPointArray;
ATPA : T2DPointArray;
H, I : Integer;
Begin
FindColorsSpiralTolerance(Sx, Sy, a, 10496, x1, y1, x2, y2, 0);
FindColorsSpiralTolerance(Sx, Sy, b, 198716, x1, y1, x2, y2, 0);
ATPA := TPAToATPAEx(CombineTPA(a, b), 55, 7);
H := High(ATPA);
SetLength(Result, Length(ATPA));
For I := 0 To H Do
Result[i] := GetTPABounds(ATPA[i]);
End;
{*******************************************************************************
Function GetHits(Sx, Sy, x1, y1, x2, y2: Integer): TIntegerArray;
By: n3ss3s & Cazax
Description: Finds all HP percents of the HP bars in x1, y1, x2, y2.
READ THE DESCRIPTION OF FindAllHPBars!
*******************************************************************************}
Function GetHitsIn(Sx, Sy, x1, y1, x2, y2: Integer): TIntegerArray;
Var
E: Extended;
I, H: Integer;
TBA : TBoxArray;
Begin
TBA := FindAllHPBars(Sx, Sy, x1, y1, x2, y2);
SetArrayLength(Result, GetArrayLength(TBA));
H := High(TBA);
For I := 0 To H Do
Begin
E := CountColorTolerance(56488, TBA[i].x1, TBA[i].y1, TBA[i].x2, TBA[i].y2, 43) / 60;
Result[i] := Round(100 * E);
End;
End;