Results 1 to 3 of 3

Thread: FindAllObjsRecord help please

  1. #1
    Join Date
    Dec 2011
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default FindAllObjsRecord help please

    Can anyone please explain how to use FindAllObjsRecord,

    Simba Code:
    procedure find;
    var
    x, y:integer;
    begin

    if findobjcustom(x, y, ['Exp', 'Att'], [10085848, 2309200, 7303540, 1847103], 10) then
    begin
    FindAllObjsRecord(x, y, [COLOR="Red"]<----??????[/COLOR]

    mouse(x, y, 3, 3, true);
    end;
    end;

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Code:
    {*******************************************************************************
    function FindAllObjsRecord(var Objects: TPointArray; AutoInfo: TAutoColorInfo; x1, y1, x2, y2: Integer; QuickSorting, RGBXYZCheck: Boolean): Boolean;
    By: Sumilion
    Description: Finds an Object using a TAutoColorInfo record, returns the center of the found objects.
    *******************************************************************************}
    To setup this function correctly, you'll need to setup a TPointArray, and TAutoColorInfo vars.

    Code:
    var
      TPAs : TPointArray;
    Code:
    var
      acInf : TAutoColorInfo;
    
    acInfo.Color := 5724517;
    acInfo.LumTol := 12;
    acInfo.HueMod := 0.10;
    acInfo.SatMod := 0.07;
    acInfo.MinCount := 130;
    acInfo.MaxCount := 148;
    That way, you can do this:
    Code:
    FindAllObjsRecord(TPAs, acInfo, MSX1, MSY1, MSX2, MSY2, True, True);
    Now, I've never actually used this, this is just what I understand from looking at the code.

    Hope this helps.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,193
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    Moved into Scripting Help section

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

Thread Information

Users Browsing this Thread

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

Posting Permissions

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