Results 1 to 10 of 10

Thread: Variable expected?

  1. #1
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Variable expected?

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

    SCAR Code:
    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.

  2. #2
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    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
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  3. #3
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mixster View Post
    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.

  4. #4
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just to clarify:

    SCAR Code:
    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.
    I don't play runescape. I auto it

  5. #5
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by 0wn 4 skill View Post
    Just to clarify:

    SCAR Code:
    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.

  6. #6
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Junkj View Post
    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?
    I don't play runescape. I auto it

  7. #7
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by 0wn 4 skill View Post
    Care to tell us all what it is?
    Hmmm.

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

  8. #8
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    don't use FindSymbol() tbh it has a low success rate. There are much better ways to walk via the MM without symbols.
    “Ignorance, the root and the stem of every evil.”

  9. #9
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Blumblebee View Post
    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.

  10. #10
    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

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

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
  •