Results 1 to 11 of 11

Thread: Where does the FindSymbol function starts to look for the symbol?

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

    Default Where does the FindSymbol function starts to look for the symbol?

    I'd like to know this because it would make my life easier on my walker:

    There's 2 symbols of fish on the screen. The other one is ½ map away and in the north. The second one is almost on the edge of the map, east.

    I'd want to find only the symbol that's in the east ALWAYS.
    If FindSymbol starts looking for the symbol in the middle of the specified area I'll just move the area a bit if not, where does it start looking for them?

  2. #2
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Maybe you should just use FindSymbolIn?

    You could even use compassangle and some math and you could make it go to the right symbol 100% of the time
    Interested in C# and Electrical Engineering? This might interest you.

  3. #3
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    You can also do FindSymbols and some TPA sorting..
    Hup Holland Hup!

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

  5. #5
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well,, when you dont want to use findsymbolIn

    you could also make something like:

    SCAR Code:
    function FindFish(ax, ay: integer): boolean;
    var
      tempcolor, x, y: integer;
    begin
      if FindSymbol(x, y, 'fish') then
      begin
        TempColor := GetSymbolColor(x, y, 'fish');
        if FindColorSpiral(ax, ay, TempColor, MMX1, MMY1, MMX2, MMY2) then
          Restul := True;
      end;
    end;

    That will search in a ''spiral''.

  6. #6
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Quote Originally Posted by rikjess View Post
    well,, when you dont want to use findsymbolIn

    you could also make something like:

    SCAR Code:
    function FindFish(ax, ay: integer): boolean;
    var
      tempcolor, x, y: integer;
    begin
      if FindSymbol(x, y, 'fish') then
      begin
        TempColor := GetSymbolColor(x, y, 'fish');
        if FindColorSpiral(ax, ay, TempColor, MMX1, MMY1, MMX2, MMY2) then
          Restul := True;
      end;
    end;

    That will search in a ''spiral''.



    SCAR Code:
    function FindFish(ax, ay: integer): boolean;
    var
      tempcolor, x, y: integer;
    begin
      TempColor := GetSymbolColor(x, y, 'fish');
      if (TempColor <> 0) then
        Result := FindColorSpiral(ax, ay, TempColor, MMX1, MMY1, MMX2, MMY2)  
    end;

    Else you have it search the symbol twice
    Hup Holland Hup!

  7. #7
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    SCAR Code:
    function FindFish(ax, ay: integer): boolean;
    var
      tempcolor, x, y: integer;
    begin
      TempColor := GetSymbolColor(x, y, 'fish');
      if (TempColor <> 0) then
        Result := FindColorSpiral(ax, ay, TempColor, MMX1, MMY1, MMX2, MMY2)  
    end;

    Else you have it search the symbol twice
    a f*ck it
    you always know how to make a code smaller, ty

  8. #8
    Join Date
    Jun 2007
    Location
    NSW, Australia.
    Posts
    541
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You could always do something like...
    SCAR Code:
    //WEST
      FindSymbolIn(X, Y, 'fish', MMX1, MMY1, MMCX, MMY2);

    That would search the left half of the minimap. Wait, thats west lol. Well just reverse it for the right side of the minimap. Or you could even search a quarter of the minimap if you wanted to.

    Edit:
    SCAR Code:
    //EAST
      FindSymbolIn(X, Y, 'fish', MMCX, MMY1, MMX2, MMY2);

    There, rofl.
    Quote Originally Posted by RAM View Post
    I sam sofa king wee todd did ! ~RAM
    My SRL Army Blog.


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

  10. #10
    Join Date
    Nov 2007
    Posts
    184
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i always get the problem when someone stand on top of the symbol...

    is there a way to counter that?

  11. #11
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Lower the SymbolAccuracy (default = 0.8).
    Hup Holland Hup!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. clicking the quest symbol then the bank symbol
    By RudeBoiAlex in forum OSR Help
    Replies: 7
    Last Post: 03-22-2007, 11:14 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
  •