Results 1 to 11 of 11

Thread: Problem with symbols..

  1. #1
    Join Date
    Jan 2007
    Location
    Toronto.
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Problem with symbols..

    Well this a simple function i made to check if your at the bank or not:

    SCAR Code:
    {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
    {-›› AtBank;                                                                   }
    {    Checks for the bank MM symbol.                                            }
    {~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}

    function AtBank: Boolean;
      begin
        if(FindSymbol(x, y, 'Bank'))then
          begin
            Result := True;
          end
        else
          begin
            Result := False;
          end;
      end;

    Yet i get this when i know i shouldnt:

    SCAR Code:
    Please enter a valid symbol name

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    setupsrl;

    SCAR Code:
    program new;
    {.include srl/srl.scar}
    function AtBank: Boolean;
    var tmpx,tmpy:integer;
    begin
      Result := FindSymbol(tmpx, tmpy, 'Bank');
    end;

      begin
      setupsrl;
      if (AtBank) then writeln('i am near bank');
      end.

    works for me


    Look at my faq(link in sig), in the common errors part, click the link for access violation error, follow freddys tut

  3. #3
    Join Date
    Jan 2007
    Location
    Toronto.
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Boreas View Post
    setupsrl;

    SCAR Code:
    program new;
    {.include srl/srl.scar}
    function AtBank: Boolean;
    var tmpx,tmpy:integer;
    begin
      Result := FindSymbol(tmpx, tmpy, 'Bank');
    end;

      begin
      setupsrl;
      if (AtBank) then writeln('i am near bank');
      end.

    works for me


    Look at my faq(link in sig), in the common errors part, click the link for access violation error, follow freddys tut
    Opps forgot to put SetupSRL; but is there a better way of checking for the symbol if it covered by all the white dots?

  4. #4
    Join Date
    Oct 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  5. #5
    Join Date
    Jan 2007
    Location
    Toronto.
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well i tryed Deformed bitmaps and it worked, just that it causes extreme lag.

  6. #6
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I made a DTM of a bank symbol. It worked everytime that I have tried it so far, in different worlds, and with it being covered also.

  7. #7
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    program New;
    {.include srl\srl.scar}
    function SymbolFinder(var gx,gy:integer; symbol:string):boolean;
    var bankfindtries,logouttries:integer;
    begin
      if (FindSymbol(gx,gy,symbol)) then result:=true;
      logouttries:=0;
      if not (FindSymbol(gx,gy,symbol)) then
      begin
        repeat
          bankfindtries:=0;
          repeat
            if ( not(FindSymbol(gx,gy,symbol)) ) then
            begin
              SendArrowSilentWait(3, 100 + Random(50));
              bankfindtries:=bankfindtries+1;
              wait(10);
            end;
          until (( FindSymbol(gx,gy,symbol) ) or (bankfindtries>10) );
          if bankfindtries>10 then
          begin
            logout;
            wait(1000+random(1000));
            loginplayer;
            logouttries:=logouttries+1;
            repeat
              wait(10);
            until (loggedin);
            mouse(519+random(31),214+random(40),0,0,true);
          end;
          FindSymbol(gx,gy,symbol);
          if logouttries>3 then
          begin
            LogOut;
            ActivateClient;
            NextPlayer ( False );
            LoginPlayer;
            break
          end;
        until  ( FindSymbol(gx,gy,symbol));
        if (FindSymbol(gx,gy,symbol)) then result:=true;
      end;
    end;

    begin
      setupsrl;
      activateclient;

      SymbolFinder(x,y,'bank');
      mouse(x,y,2,2,true);

    //if findSymbol(x,y,'hair dresser') then mouse(x+25,y,5,5,true);


    end.

  8. #8
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can I ask what this procedure does
    SendArrowSilentWait
    ?

  9. #9
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Rotates compass (helps when symbol is covered by player dots)

    I thought I got it from makecompass, but now I don't know.

  10. #10
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    SRL uses a Global SymbolAccuracy:extended;. You can reduce this Global from the default 0.8 to say 0.4 by setting inside your Setup: SymbolAccuracy:=0.4;
    It will dramatically increase the change of a given symbol on the map being found (even when partly obscured!), but less picky on the kind of symbol.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  11. #11
    Join Date
    Jan 2007
    Location
    Toronto.
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    SRL uses a Global SymbolAccuracy:extended;. You can reduce this Global from the default 0.8 to say 0.4 by setting inside your Setup: SymbolAccuracy:=0.4;
    It will dramatically increase the change of a given symbol on the map being found (even when partly obscured!), but less picky on the kind of symbol.
    Thanks Fakawi, that worked.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Symbols
    By Jackrawl in forum OSR Help
    Replies: 6
    Last Post: 11-01-2007, 07:45 PM
  2. Help With Symbols ;)
    By mage of begu in forum OSR Help
    Replies: 10
    Last Post: 03-13-2007, 02:46 PM
  3. The Symbols Hit RS
    By Ejjman in forum RS has been updated.
    Replies: 3
    Last Post: 05-22-2006, 07:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •