Results 1 to 6 of 6

Thread: findobjmulti help

  1. #1
    Join Date
    Jun 2006
    Location
    N Wales
    Posts
    558
    Mentioned
    2 Post(s)
    Quoted
    56 Post(s)

    Default findobjmulti help

    i am trying to use findobjmulti but i cant understand how to work it. the bit i dont get is the bold bit below:

    FindObjMulti(Text: String; color1, color2, color3, tolerance: Integer): Boolean;
    what do i put in the text bit?

    i tried putting in the text that comes up in the top left corner when the mouse it over it but i just got an error saying unknown identifier.

    can any one please help me

  2. #2
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    When you type text into a
    SCAR Code:
    Text : String
    You need to type the text in
    SCAR Code:
    'Type text in these so that its pink ^^'
    Or you can do a identifier
    SCAR Code:
    const
      MyText = 'PwNZorNooBs 1337 :)'
    And use it like
    SCAR Code:
    FindObjMulti(MyText, color1, color2, color3, tolerance: Integer): Boolean;

    And when using FindObj or FindObjMulti I think the text means the characters on the upper-left side of the RS window.

    And the color1, color2, color3
    here u put the colors u want to search for.
    And at the tolerance u put with what tolerance it looks for the color, u got it?

    Examples:
    SCAR Code:
    FindObjMulti(MyText, MyColor1, MyColor2, MyColor3, Tolerance): Boolean;
    or
    SCAR Code:
    FindObjMulti('hicken', 16346, 154456, 192, 7): Boolean;

    Hope that helps you!

  3. #3
    Join Date
    Jun 2006
    Location
    N Wales
    Posts
    558
    Mentioned
    2 Post(s)
    Quoted
    56 Post(s)

    Default

    thanx that helped a lot =] im just wondering though because im not sure about tolerences what shall i put for finding bones of the floor?

    Edit: i now have this
    SCAR Code:
    if findobjmulti('ones': string; bonecolor1, bonecolor2, bonecolor3, 5: integer): Booleen; then
      begin
        getpos(j, k);
        MMouse(j, k, 2, 2);

    this is meant to find the object then move the mosue over where the object is.

    but nfortunatly i get this error
    Line 83: [Error] (17418:23): comma (',') expected in script
    where am i to put this comma :S

  4. #4
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    take out the :boolean;

  5. #5
    Join Date
    Jun 2006
    Location
    N Wales
    Posts
    558
    Mentioned
    2 Post(s)
    Quoted
    56 Post(s)

    Default

    now i have
    SCAR Code:
    if findobjmulti('ones': string; bonecolor1, bonecolor2, bonecolor3, 5: integer):; then
      begin
        getpos(j, k);
        MMouse(j, k, 2, 2);
      end;

    but i still get the same error
    Line 83: [Error] (17419:23): comma (',') expected in script

  6. #6
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    if findobjmulti('ones', bonecolor1, bonecolor2, bonecolor3, 5) then
      begin
        GetMousePos(j, k);
        Mouse(j, k, 2, 2,True);
      end;
    Try that.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FindObjMulti + Little bit of Bitmaps
    By Tails111 in forum Outdated Tutorials
    Replies: 20
    Last Post: 04-06-2008, 07:10 AM
  2. FindObjMulti......... PROBLEM
    By CheetahNub in forum OSR Help
    Replies: 3
    Last Post: 11-09-2007, 11:17 PM
  3. findobjmulti
    By Stevee in forum OSR Help
    Replies: 1
    Last Post: 07-27-2007, 03:38 AM
  4. findobjmulti question
    By Junior in forum OSR Help
    Replies: 6
    Last Post: 10-15-2006, 06:45 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
  •