Log in

View Full Version : Symbol Trouble



me_ntal
04-13-2007, 11:41 AM
Im having a bit trouble using symbols to move about. How exactly would i implent a procedure to click the waterbmp to walk than the store? Also what would be the best to use to click on a normal tree on the minimap?


WaterBMP := BitmapFromString(15, 5, 'z78DAA5CF410A80300C44' +
'D12B25B6A964E9907AFF2329CC42A5448A12F874111EA9A89 C830' +
'A438C6DB646B7A51BF6C27A75F3C8F659D16BE665F68F7C37 B121' +
'3AF8162D2DE2FDF21999E628B3DFE4C7DF1339BB9CE601EA0 F684' +
'0');

StoreBMP := BitmapFromString(15, 5, 'z78DA95D0410AC4300805D02B' +
'99A889596AECFDAF3461FE26A52D9DD97C41E1A1D251A2E8C CF46' +
'4A41D2306776FC415A929B39E3AD7E92ED0D7A4ABDC8C3466 9849' +
'73EBCC03D95269F9A15AFBA86A4591E87886C78B8C4D209F5 27B6' +
'389D2A5E42E236D55F327197FB8317F90D738449E64E72037 DCFE' +
'F7CEF8E1267F0053466502');

Pentti
04-13-2007, 11:55 AM
You should just use SRL's FindSymbol function.
if(FindSymbol(x,y,'Water'))then

me_ntal
04-13-2007, 12:09 PM
Somthing like this?


Procedure Walkfrom;
Begin
WaterBMP := BitmapFromString(15, 5, 'z78DAA5CF410A80300C44' +
'D12B25B6A964E9907AFF2329CC42A5448A12F874111EA9A89 C830' +
'A438C6DB646B7A51BF6C27A75F3C8F659D16BE665F68F7C37 B121' +
'3AF8162D2DE2FDF21999E628B3DFE4C7DF1339BB9CE601EA0 F684' +
'0');
StoreBMP := BitmapFromString(15, 5, 'z78DA95D0410AC4300805D02B' +
'99A889596AECFDAF3461FE26A52D9DD97C41E1A1D251A2E8C CF46' +
'4A41D2306776FC415A929B39E3AD7E92ED0D7A4ABDC8C3466 9849' +
'73EBCC03D95269F9A15AFBA86A4591E87886C78B8C4D209F5 27B6' +
'389D2A5E42E236D55F327197FB8317F90D738449E64E72037 DCFE' +
'F7CEF8E1267F0053466502');
if(FindSymbol(x,y,'water'))then
Mouse(x,y,2,2,true);
Flag;
If(FindSymbol(x,y,'store'))then
Mouse(x,y,2,2,true);
Flag;
end;

~alex~
04-13-2007, 12:12 PM
You should just use SRL's FindSymbol function.
if(FindSymbol(x,y,'Water'))then

No you shouldn't, if a player is covering that it wont work...
if findbitmaptolerancein(water) then
clicksymbol
flag;
if findbitmaptolerancein (shop) then
click2ndsymbol
flag;

Pentti
04-13-2007, 12:20 PM
No no no no!!!
Just like this:
Procedure Walkfrom;
Begin
if(FindSymbol(x,y,'water'))then
begin
Mouse(x,y,2,2,true);
Flag;
end;
If(FindSymbol(x,y,'store'))then
begin
Mouse(x,y,2,2,true);
Flag;
end;
end;
And add {.include srl/srl.scar} at the beginning of your script.

me_ntal
04-13-2007, 12:24 PM
Thanks do i have to declare any vars or constants in the script? With the one below will it find the water walk to the water than find the store and walk to the store?


Procedure Walkfrom;
Begin
if(FindSymbol(x,y,'water'))then
Begin
Mouse(x,y,2,2,true);
Flag;
If(FindSymbol(x,y,'store'))then
Begin
Mouse(x,y,2,2,true);
Flag;
end;
end;
end;

Pentti
04-13-2007, 12:29 PM
Ye that should work.
But sometimes script can't find symbols because there are a lot of people standing on minimap symbols.

me_ntal
04-13-2007, 01:09 PM
its going to be done down in rimmington i dont think people are going to be a problem.

nielsie95
04-13-2007, 01:47 PM
If there are a lot of people covering the symbol and there aren't many the same looking symbols around, you could set your SymbolAccuracy very low (0.3) and it should find it.

rkroxpunk
04-13-2007, 02:56 PM
I've actually had troubly lately with that it's been clicking on the wrong symbol for example i told it to click on the training dummy but it also found the ! symbol for going down a hole and it clicked on that instead :s

Edit: How do you change the symbol accuracy?

nielsie95
04-13-2007, 03:00 PM
Just call this:


SymbolAccuracy := 0.9 //Change 0.9 to your number

rkroxpunk
04-14-2007, 04:35 AM
thx nielsie..........also are you a male or female? lol

nielsie95
04-14-2007, 07:03 AM
Male ;)

rkroxpunk
04-18-2007, 01:57 PM
lol okey dokey...>.< u still got no helper bear....anyone know what the default for symbol acc is?

nielsie95
04-18-2007, 02:06 PM
0.9 :)