Object Finding

Note

Remove?:

  • Several FindObj*() functions?

FindAllObjsRecord

function FindAllObjsRecord(var Objects: TPointArray; AutoInfo: TAutoColorInfo; x1, y1, x2, y2: Integer; QuickSorting, RGBXYZCheck: Boolean): Boolean;

Finds an Object using a TAutoColorInfo record, returns the center of the found objects.

Note

by Sumilion

Example:

FindAllObjsRecordEx

function FindObjRecordEx(var fx, fy: Integer; AutoInfo: TAutoColorInfo; QuickSorting, RGBXYZCheck: Boolean): Boolean;

Finds an Object using a TAutoColorInfo record with extra options.

Note

by Sumilion

Example:

FindObjRecord

function FindObjRecord(var fx, fy: Integer; AutoInfo: TAutoColorInfo): Boolean;

Finds an Object using a TAutoColorInfo record.

Note

by Sumilion

Example:

FindObjEx

function FindObjEx(var cx, cy: Integer; Text: TStringArray; Color: TIntegerArray;
Tol, Step, xs, ys, xe, ye: Integer): Boolean;

Searches for an object using an array of colors and texts within the area you specify. Will start searching from the middle and returns true if found. Parameters:

  • cx, cy: Coordinate Position of object if result is true

  • Text: Array of string you want to search for

  • Color: Array of colors you want to search for

  • Tol: Tolerance of the colors you will allow

  • Step: How big you want to make the search squares.

    50 = Default. 30-70 Recommended

  • xs, ys, xe, ye: Bounds you want to search in

Note

by Starblaster100

Example:

FindObj

function FindObj(var cx, cy: Integer; Text: string; Color, Tol: Integer): Boolean;

Finds Object

Note

by Starblaster100

Example:

FindObjCustom

function FindObjCustom(var cx, cy: Integer; Text: TStringArray; Color: TIntegerArray; Tol: Integer): Boolean;

Finds Object with custom amount of colors and custom amount of Uptext

Note

by Starblaster100

Example:

FindObjCustom(x, y, ['att', 'ack'], [123456, 345678], 5);

FindObjectDeformed

function FindObjectDeformed(var ObjX, ObjY: Integer; UpText1, UpText2: String; BMP, a, b, c, d: Integer): Boolean;

Finds Object in Box a,b,c,d, specified by BitMap and Uptext1 or Uptext2 Returns coords in ObjX and ObjY. Uses Deformed Bitmap. FindObjectDeformed will gradually lower Tol and reduce Accuracy. Functon can cause severe Lag when using bitmaps bigger than 16 pixels.

Works but lags.

Note

by WT-Fakawi

Example:

FindObjTPA

function FindObjTPA(var x, y: integer; color, tol, cts, ObjWidth, ObjHeight, minCount :Integer; UpText: tstringarray): Boolean;

Finds object using WizzyPlugin functions. Starts with a Spiral from x and y. Put in the color, Tolerance and ColorToleranceSpeed. If you don’t know what colortolerancespeed to choose, put in -1. ObjWidth and ObjHeight are the parameters TPAToATPAEx uses, thus filtering the MS’s FindColorsSpiralTolerance points in boxes defined by ObjWidth and ObjHeigth. minCount is the amount of colors it should at least find in a Object box. UpText, is ofcourse the text the object should have. In the Multi variant the UpText is a string array.

Note

by Wizzup?

Example:

FindObjTPAMulti

function FindObjTPAMulti(var X, Y: integer; Color: TIntegerArray; Tol, CTS, ObjWidth, ObjHeight, minCount :Integer; UpText: TStringArray): Boolean;

This is a modification of FindObjTPA, which uses a TIntegerArray for the Colors.

Note

by Torrent of Flame based on FindObjTPA

Example:

FindObjThroughMM

function FindObjThroughMM(var x, y: Integer; Kind: string; Colors, Tol: TIntegerArray; UpText: TStringArray; Width, Height: Integer): boolean;

Finds a object with the given parameters. Uses minimap dots to get locations of objects. Will put the matching areas first in the TPA array,so it hovers those first.

Note

It still searches the whole screen, but it puts items first in the array.

Valid kinds are:
  • npc/yellow
  • item/red
  • player/white

Note

by N1ke!

Example: