Results 1 to 11 of 11

Thread: FindSymbol Help

  1. #1
    Join Date
    Feb 2010
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default FindSymbol Help

    Alright so basically I'm trying to find a symbol on the mini-map... The Fish Symbol to be more specific...

    Now I am using the 'FindSymbol' function to do this

    I have tried

    Code:
    if FindSymbol(MMx, MMy, 'fishing spot') then
    and

    Code:
    if FindSymbol(MMx, MMy, 'fish') then
    and then i just try to do a 'writeln' to let me know it found the icon...

    I have messed with the symbol accuracy from like 0.9 to 0.1

    And at 0.1 I got a symbol found message ONCE!


    Anyone know what the deal is? I have the latest SCAR and Latest DEV SRL installed and updated as of yesterday.

    Has anyone else noticed this? or can show me a better way of finding a map icon symbol....

    I have tried using findbitmap as well... which works great! (if no one walks near the icon!! )

    I am not fully knowledgeable about the DTM... but from what I have read it seems to be quicker....

    Can anyone show me an if statement as to how I could find the map icon accurately and reliably!!

    Thanks

  2. #2
    Join Date
    Jan 2010
    Location
    Finland
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use FindSymbolIn?

    if FindSymbolIn(x, y, 'fishing spot', MMX1, MMY1, MMX2, MMY2) then

    edit: x, y = variables where the fish spot is on the minimap if result is true, so if you wanted to click on the symbol

    if FindSymbolIn(x, y, 'fishing spot', MMX1, MMY1, MMX2, MMY2) then
    Mouse(x, y, 4, 4, true);

    for example
    Last edited by silor; 02-17-2010 at 06:43 PM.

  3. #3
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Hmm make sure MMx and MMy are variables. Also, try moving the mouse there if found, as low symbol accuracy usually gives a false symbol

  4. #4
    Join Date
    Feb 2010
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the tip. I tried that function and still nothing...

    it should write saying found fish icon... but nothing... loops over and over and still never finds it....


  5. #5
    Join Date
    Jan 2010
    Location
    Finland
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try using a lower symbol accuracy like 0.5, if that doesn't help there could be something else wrong.

    You probably won't need FindSymbolIn unless using specified areas on the minimap, FindSymbol should work fine, make sure you are using safe mode and got latest SRL and whatnot, if nothing else then radialwalk/blindy clicking it could work depending on what you do with the fishes.
    Last edited by silor; 02-17-2010 at 06:55 PM. Reason: i should read op properly :|

  6. #6
    Join Date
    Feb 2010
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I tried symbol accuracy right down to 0.1....

    I dont understand why its not working its driving me insane!! all I wanna do for now. is for my character to find the fish icon on the mini-map so if he wanders slightly he can come back to the fish spot... or I get tele'd to some random... and i cant find the icon. I can have him log out..

    I have my client set up on safe mode. I have SCAR 3.23 and I just SVN'ed the Open Dev SRL folder yesterday.... plugins folder moved correctly... etc...

    This is so confusing lol

  7. #7
    Join Date
    Jan 2010
    Location
    Finland
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't know why it doesn't work but FindNormalRandoms should log you out if it can't solve the random.

    However in al'kharid today my script kept clicking on the clothes shop instead of cooking/kebab even though i specified to search below the center of the minimap (while at furnace), might be related. :P

  8. #8
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I doubt it makes a difference, but try making it into a boolean, thats what I always do. Try running this:
    SCAR Code:
    Procedure FindTheSymbol;

    Var
      FishFound: Boolean;

    Begin
      SymbolAccuracy := 0.5;
      FishFound := FindSymbol(X, Y, 'fish');

      If FishFound Then
      Begin
        Mouse(X, Y, 3, 3, True);
        Flag;
      End Else
        Writeln('Couldnt find the fish symbol.');

      SymbolAccuracy := 0.8;
    End;
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  9. #9
    Join Date
    Feb 2010
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No luck.... but I do like the procedure bionicle1800 thanks.

    Hopefully I can figure this out... maybe ill try DTM or sumthin

  10. #10
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    A small change to findsymbols was just made in SRL Rev388, update your SRL and see if it doesn't work now.

  11. #11
    Join Date
    Feb 2010
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OMG IceFire908 Thank you!! I have been pulling my frigging hair out over this..

    Rep++++

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
  •