SRL Archive - OSR Help

FindSymbol Help


MrWicked0

2010-02-17 13:30:10

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


if FindSymbol(MMx, MMy, 'fishing spot') then

and


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

silor

2010-02-17 13:39:27

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

Naum

2010-02-17 13:40:10

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 ;)

MrWicked0

2010-02-17 13:45:11

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….


silor

2010-02-17 13:54:06

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.

MrWicked0

2010-02-17 14:00:04

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

silor

2010-02-17 14:15:38

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

Bionicle

2010-02-17 18:00:02

I doubt it makes a difference, but try making it into a boolean, thats what I always do. Try running this:
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;

MrWicked0

2010-02-17 21:01:15

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

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

Wanted

2010-02-17 21:02:42

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

MrWicked0

2010-02-17 21:17:11

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

Rep++++