SRL Archive - OSR Help

FindObjEx


KFC

2012-01-05 23:35:33

Whats this 'step' thing? im pretty sure this is the function i need to use in this script im making, it has all i need, i jst dont know what that 'step' is.

ive tried these yet i keep getting the error : [Error] (35:75): Type mismatch at line 34


FindObjEx(x, y, 'ake', 6654110, 10, 70, 62, 159, 464, 184);
///////////////////////////////////////////////////////////////////////////
FindObjEx(x, y, ['ake'], 6654110, 10, 70, 62, 159, 464, 184);
//////////////////////////////////////////////////////////////////////////
FindObjEx(x, y, ['ake', 'ta', 'ke'], 6654110, 10, 70, 62, 159, 464, 184);
//////////////////////////////////////////////////////////////////////////

YoHoJo

2012-01-05 23:59:39

Step: How big you want to make the search squares. 50 = Default. 30-70 Recommended

^From inside SRL.

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

Bascially around the text and color put [] like
  FindObjEx(x, y, ['ake', 'ta', 'ke'], [6654110], 10, 70, 62, 159, 464, 184);  

^That should work, you can also enter multiple colors.

KFC

2012-01-06 00:00:41

From: YoHoJo
^From inside SRL.

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

Bascially around the text and color put [] like
  FindObjEx(x, y, ['ake', 'ta', 'ke'], [6654110], 10, 70, 62, 159, 464, 184);  

^That should work, you can also enter multiple colors.


<3 id give you a cookie if i could, everyone loves cookies

YoHoJo

2012-01-06 00:18:12

Assuming problem all solved now? Good Good!
Yeah cookies are great!