Results 1 to 3 of 3

Thread: how to use the find object function?

  1. #1
    Join Date
    Oct 2007
    Location
    england
    Posts
    200
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default how to use the find object function?

    hey im quite new to scripting and i need to know how to use the find object function can some one help me please?
    Quote Originally Posted by ham? View Post
    i didnt merder the fukin english language it im just talkin gangsta!!
    which none of u would no coz ur all fukin nerds

  2. #2
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Here:
    function FindObj(var cx, cy: Integer; Text: String; color, tolerance: Integer): Boolean;

    function FindObjCustom(var cx, cy: Integer; Text: TStringArray; Color: TIntegerArray; tolerance : integer) : boolean;
    Examples:

    SCAR Code:
    FindObj(x, y, 'ttack', 123456, 5);

    FindObjCustom(x, y, ['ttack', 'hicken'], [12345, 54321], 5);

    You can addy many colors/texts to TArray as you want...

    and be sure to declare variables...

    Example
    x and y must be declared as integers in beginning of procedure or script
    SCAR Code:
    var x, y : integer;

    EDIT:
    Example how to make procedure to find something and click on it
    SCAR Code:
    procedure example;
    var x, y : integer;
    begin
      if FindObj(x, y, 'ttack', 123456, 5) then
      begin
        Mouse(x, y, 0, 0, True);
        {and here add rest off stuff like random event finding, gas or ent finding etc...}
      end;
    end;
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  3. #3
    Join Date
    Oct 2007
    Location
    england
    Posts
    200
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ty helped alot
    Quote Originally Posted by ham? View Post
    i didnt merder the fukin english language it im just talkin gangsta!!
    which none of u would no coz ur all fukin nerds

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Unknown identifier problems with Find object
    By jimbo34 in forum OSR Help
    Replies: 5
    Last Post: 02-26-2008, 04:13 PM
  2. Find Netles--function
    By pwnaz0r in forum OSR Help
    Replies: 2
    Last Post: 02-04-2007, 07:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •