Results 1 to 11 of 11

Thread: Help With Symbols ;)

  1. #1
    Join Date
    Sep 2006
    Location
    In Finland
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help With Symbols ;)

    Hehe...yeah symbols...so my question is how i can search for 2 same symbols with different coords ??? ASAP

  2. #2
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    PHP Code:
    symbolname:= 'water';
    FindSymbol(x,y,Symbolname') //? 
    what ur loking for?

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

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

    Default

    SCAR Code:
    var a,b,c,d:integer;
    FindSymbol(a,b,'Bank');
    FindSymbol(c,d,'Store');
    a and b now hold coords of banksymbol, c and d hold storesymbol.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  4. #4
    Join Date
    Nov 2006
    Location
    California, USA
    Posts
    336
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I refer you to:

    SCAR Code:
    {*******************************************************************************
    function SymbolExists(Name: String): Boolean;
    By: TOB
    Description: Finds if minimap symbol exists by name.
    *******************************************************************************}

    function SymbolExists(Name: string): Boolean;
    var
      necessaryx, necessaryy: Integer;
    begin
      if (GetSymbolColor(necessaryx, necessaryy, Lowercase(Name)) > 0) then
        Result := True;
    end;

    SCAR Code:
    {*******************************************************************************
    function ClickSymbolIfExists(symbol: string): Boolean;
    By: TOB
    Description: Clicks if minimap symbol exists by name.
    *******************************************************************************}

    function ClickSymbolIfExists(symbol: string): Boolean;
    var
      necessaryx, necessaryy: Integer;
    begin
      if((GetSymbolColor(necessaryx, necessaryy, Lowercase(symbol)) > 0)) then
        Result:= True;
      if(Result) then
      begin
        Mouse(necessaryx, necessaryy, 10, 10, True);
        Flag;
        PerfectNorth;
      end;
    end;

  5. #5
    Join Date
    Sep 2006
    Location
    In Finland
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    SCAR Code:
    var a,b,c,d:integer;
    FindSymbol(a,b,'Bank');
    FindSymbol(c,d,'Store');
    a and b now hold coords of banksymbol, c and d hold storesymbol.
    Ty fakawi...does this work too ? :
    SCAR Code:
    var a,b,c,d:integer;
    FindSymbol(a,b,'Water');
    FindSymbol(c,d,'Water');

    Quote Originally Posted by JuKKa View Post
    PHP Code:
    symbolname:= 'water';
    FindSymbol(x,y,Symbolname') //? 
    what ur loking for?
    Moi...saa puhua ihan suomeakin

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

    Default

    No, Findsymbol will return the same coords twice...
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  7. #7
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mage of begu View Post
    how i can search for 2 same symbols with different coords ??? ASAP
    Fakawi, Note: 2 SAME symbols with different coords.
    Mage of Begu, Ill send you one procedure made by me, which finds for symbols at specified minimap coords if I find it.
    Toi neuvoo sua vääri mage of begu.

    I didnt find my old one, so I created new:
    SCAR Code:
    {.include srl/srl.scar}

    Function FindSymbolAt(var x,y:Integer; x1, y1, x2, y2 :Integer; Symbol:String):Boolean;
    var
      DaColor:Integer;
      XxX,YyY:Integer;
    begin
    DaColor:=GetSymbolColor(XxX,YyY,Symbol)
     if(DaColor=0)then
      begin
       Result:=False;
       Exit;
      end;
    if(FindColor(x,y,DaColor,x1,y1,x2,y2))then
     Result:=True;
    end;

    begin
    SetUpSRL;
    if(FindSymbolAt(x,y,MMX1,MMY1,MMX2-20,MMY2-20,'Water'))then
    MMouse(x,y,0,0)
    end.

    This is very useful(?), example for yew cutter at Edgeville.

  8. #8
    Join Date
    Sep 2006
    Location
    In Finland
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Pentti View Post
    Fakawi, Note: 2 SAME symbols with different coords.
    Mage of Begu, Ill send you one procedure made by me, which finds for symbols at specified minimap coords if I find it.
    Toi neuvoo sua vääri mage of begu.

    I didnt find my old one, so I created new:
    SCAR Code:
    {.include srl/srl.scar}

    Function FindSymbolAt(var x,y:Integer; x1, y1, x2, y2 :Integer; Symbol:String):Boolean;
    var
      DaColor:Integer;
      XxX,YyY:Integer;
    begin
    DaColor:=GetSymbolColor(XxX,YyY,Symbol)
     if(DaColor=0)then
      begin
       Result:=False;
       Exit;
      end;
    if(FindColor(x,y,DaColor,x1,y1,x2,y2))then
     Result:=True;
    end;

    begin
    SetUpSRL;
    if(FindSymbolAt(x,y,MMX1,MMY1,MMX2-20,MMY2-20,'Water'))then
    MMouse(x,y,0,0)
    end.

    This is very useful(?), example for yew cutter at Edgeville.
    SIIS MITEN IHMEESSÄ SÄ KERKEET.....???????

  9. #9
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mage of begu View Post
    SIIS MITEN IHMEESSÄ SÄ KERKEET.....???????
    toiha oli nopee tehä. Tuu mesee.

  10. #10
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    English plz?

    But FindSymbolAt doesn't find two of the same symbols at other coords?
    Hup Holland Hup!

  11. #11
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    English plz?

    But FindSymbolAt doesn't find two of the same symbols at other coords?
    You'll put two of them, like this:
    SCAR Code:
    if(FindSymbolAt(x,y,MMX1,MMY1,MMX2-20,MMY2-20,'Water'))and
    FindSymbolAt(x,y,MMX1+20,MMY1+20,MMX2-20,MMY2-20,'Water')
    And you'll set different coords where to search.

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