SRL Archive - OSR Help

Variable expected?


Mr. Doctor

2010-01-26 11:00:57

I need to use SymbolAccuracy for a symbol, obviously. I'm trying to use it, but it says variable expected.


procedure WTB;
var
x, y : integer;
SymbolAccuracy : extended;
begin
SymbolAccuracy := 0.6;
if(FindSymbol( 2, 2, 'bank'))then
begin
SymbolAccuracy := 0.8;
Mouse( x, y, 2, 2, true);
end;
end;

I'm getting better at this stoof.

mixster

2010-01-26 11:03:31

FindSymbol has 2 var parameters at the beginning that it stores where the symbol was found in (like with FindColor), but you are sending it constants (2, 2) so replace 2,2 with x,y and it should work

Mr. Doctor

2010-01-26 11:15:07

From: mixster
FindSymbol has 2 var parameters at the beginning that it stores where the symbol was found in (like with FindColor), but you are sending it constants (2, 2) so replace 2,2 with x,y and it should work


Oh, wow. I thought it was random x random y.

0wn 4 skill

2010-01-26 11:42:24

Just to clarify:

procedure WTB;
var
x, y : integer;
SymbolAccuracy : extended;
begin
SymbolAccuracy := 0.6;
if(FindSymbol( x, y, 'bank'))then
begin
SymbolAccuracy := 0.8;
Mouse( x, y, 2, 2, true);
end;
end;

Keep it up Junk! I'm sure your next application will be more successful.

Mr. Doctor

2010-01-26 11:54:21

From: 0wn 4 skill
Just to clarify:

procedure WTB;
var
x, y : integer;
SymbolAccuracy : extended;
begin
SymbolAccuracy := 0.6;
if(FindSymbol( x, y, 'bank'))then
begin
SymbolAccuracy := 0.8;
Mouse( x, y, 2, 2, true);
end;
end;

Keep it up Junk! I'm sure your next application will be more successful.


Yea, I kinda rushed PMOW, but there's nothing more I can do to a power script. This next one will definitely be more successful.

0wn 4 skill

2010-01-26 12:15:11

From: Junkj
Yea, I kinda rushed PMOW, but there's nothing more I can do to a power script. This next one will definitely be more successful.


Care to tell us all what it is? :)

Mr. Doctor

2010-01-26 12:27:07

From: 0wn 4 skill
Care to tell us all what it is? :)


Hmmm.

2 Degrees, 15 Minutes North
20 Degrees, 15 Minutes East

Blumblebee

2010-01-26 15:39:45

don't use FindSymbol() tbh it has a low success rate. There are much better ways to walk via the MM without symbols.

Mr. Doctor

2010-01-26 15:41:56

From: Blumblebee
don't use FindSymbol() tbh it has a low success rate. There are much better ways to walk via the MM without symbols.


I use SymbolAccuracy and it works, even when the dots are on it.

Bionicle

2010-01-26 15:51:18

Use FindSymbol, but have a backup, so if it fails make it use TPA walking or something. Use an accurate walking though, don't back it up with radial for example. DDTM or TPA walking would be ideal imo.