HighestAngle --> SetAngle(True);
LowestAngle --> SetAngle(False);
CountItems(Bmp/Dtm/Color)(Mask)(Tol)
-->
function CountItems(identifier: Integer; identifiertype: string; tol: IntegerArray): Integer;
ClickAllItems(Bmp/Color)(Mask)TolWait
-->
function ClickAllItems(identifier: Integer; identifiertype, option: string; waitnum: Integer; tol: TIntegerArray):Integer;
Code:
function CountItems(identifier: Integer; identifiertype: string; tol: TIntegerArray): Integer;
By: WT-Fakawi / Sumilion
Description: Performs a count of inventory items by "identifier" with tol[0]
as color tolerance, tol[1] as contour tolerance in case of bmp masks. Valid identifiertypes are :
bmp, mask, color, dtm.
function ClickAllItems(identifier: Integer; identifiertype, option: string; waitnum: Integer; tol: TIntegerArray):Integer;
By: WT-Fakawi / Sumilion
Description: Performs "option" popupmenu action on all items
with "identifier" and "tol[0]" as color tolerance and col[1]
as contour tolerance in case bmp masks are used in inventory. (e.g. 'store all')
Returns number of performed operations. Valid identifiertypes are :
bmp, mask, color, dtm.
RadialWalkEx(var x, y: Integer; cx, cy, TheColor, tol: Integer; StartRadial, EndRadial: Integer; Radius: Integer): Boolean;
-->
function RadialWalkEx(var tpa: TPointArray; cx, cy, TheColor, tol: Integer; StartRadial, EndRadial: Integer; Radius: Integer): Boolean;
So make a TPA variable and instead of x and y, use tpa[0].x and tpa[0].y.
RunAwayDirection --> RunTo(dir: String; runfar: Boolean); or RunAway(dir: string; RunFar: Boolean; Action, WaitTime: Integer);
Code:
procedure RunAway(dir: string; RunFar: Boolean; Action, WaitTime: Integer);
By: nielsie95
Description: Runs away in minimap related direction, based on north.
Dir can be 'N', 'E', 'S' or 'W'. RunFar will run further than normal.
Action can be either 1, 2 or 3.
1: RunAway + Wait(WaitTime) + RunBack
2: RunAway + Wait(WaitTime)
3: RunBack
Note: WaitTime is in milliseconds!
Some other functions just got deleted..