Results 1 to 11 of 11

Thread: Need Help Walking and Banking

  1. #1
    Join Date
    Aug 2007
    Location
    In Your Front Door!
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need Help Walking and Banking

    Can somebody help me by making me an example of how to dectect something on the minimap, like a color, or how to use radial walking properly. I tried using radial walking but it never works out.

    I Also Need help on how to detect something like the bank on the minimap, and of course how to open the bank!!!

    I Know Im asking for alot, but im trying to learn how to script. I Want To become a SRL Member but I still need to learn alot!!!!!!!!!!!!!!

  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Remember that MMX1, MMY1, MMX2, MMY2 are the coordinates for the minimap.

    So if you want to find a color do
    SCAR Code:
    FindColor(x, y, color, MMX1, MMY1, MMX2, MMY2);
    and it will find the specified color on the minimap.

    Using symbols can also be helpful
    SCAR Code:
    FindSymbol(x, y, 'Symbol Name');
    (search the 'symbol' include for more info)

    Just
    SCAR Code:
    OpenBank;  //or
    OpenBank3;
    should open your bank if you are in the bank
    (search the 'bank' include for more functions on banking)

    and yes radial walking can be difficult
    not much advise I can give you on that =[
    Just make sure to try out the 'Radial Walking Aid' if you aren't using it already

  3. #3
    Join Date
    Aug 2007
    Location
    In Your Front Door!
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks, you really gave me well needed informantion!!


    FindColor(x, y, color, MMX1, MMY1, MMX2, MMY2);
    When I put this Function it still looks for it in the main screen!
    Can you tell me how to correct this and make it look in the MiniMap.

  4. #4
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Um make sure to do FindRS; as one of the first parts of your script
    idk

  5. #5
    Join Date
    Aug 2007
    Location
    In Your Front Door!
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Which is a Valid Function

    FindColor(x, y, rockolor, 678, 115, 699, 143) or

    FindColor(x, y, rockcolor, MMX1, MMY2, MMX1, MMX2)

    Which one should be the one should I enter????

    Or Can u make me an example already filled in???

    I Tried Both and still it doesn't look for the color in the Mini Map
    it looks for it in the runescape screen.

  6. #6
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Should be FindColor(x, y, rockcolor, MMX1, MMY1, MMX2, MMY2)

    and still, make sure to do FindRS; to fix the coords to the RS screen cuz still, 678, 115, 699, 143 are not very close to being minimap coords 549, 0,711, 160 is closer but MMX1, MMY1, MMX2, MMY2 should always work

  7. #7
    Join Date
    Aug 2007
    Location
    In Your Front Door!
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Here is my Script Can You Tell Me What Im doing Wrong?
    SCAR Code:
    program VarrockOakChopper;

    {.include srl/srl.scar}

    const
    LoadsPerPlayer=(10);
    rockcolor=(7561323);
    Oakcolor=(2567728);
    WallColor=(7764863);
    TreeColor=(2973782);
    Procedure DeclarePlayers;
    begin
      SetupPlayers;

      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Nick := '';
      Players[0].Active := True;

      Players[1].Name := '';
      Players[1].Pass := '';
      Players[1].Nick := '';
      Players[1].Active := True;

      Players[2].Name := '';
      Players[2].Pass := '';
      Players[2].Nick := '';
      Players[2].Active := True;

      Players[3].Name := '';
      Players[3].Pass := '';
      Players[3].Nick := '';
      Players[3].Active := True;

      Players[4].Name := '';
      Players[4].Pass := '';
      Players[4].Nick := '';
      Players[4].Active := True;

      LoadPlayerArray;
    end;

    Procedure Walktorock;

    var

    x,y:integer ;

    begin

    if FindColor(x, y, rockcolor, MMX1, MMY2, MMX1, MMX2) then
    ClickMouse(x,y,True);
    if true then;

    if FindColor(x, y, OakColor, MMX1, MMY2, MMX1, MMX2); then
    ClickMouse(x,y, True);

    end;

    Procedure Cutoak;

    var
    x,y, MyMark: integer;

    begin
    repeat

    if Findobj(x,y,'oak', TreeColor,20) then
    begin
    Mouse(x,y, 3, 3, True);

    Exit;

    if timefrommark(mymark) > (2*60*100) then

    logout;
    exit;
    end;
    until(False)
    end;

    Procedure WalkToBank;

    var
    x,y:integer;
    begin

    FindColor(x, y, Wallcolor, MMX1, MMY1, MMX2, MMY2);
    ClickMouse(x,y,True);

    FindColor(x, y, rockcolor, MMX1, MMY1, MMX2, MMY2);
    ClickMouse(x,y,True);

    FindSymbol(x,y,'BankSymbol');
    ClickMouse(x,y,True);

    end;

    Procedure Dposit;
     Var
     x,y:integer;

    begin

    OpenBank;
    InvBox(1);
    Clickmouse(x,y, False)
    if Chooseoption('all') then

    end;

    Procedure FindLoc;
    var
    x,y:integer;

    begin
    FindColor(x, y, RoadColor, MMX1, MMY1, MMX2, MMY2);
    ClickMouse(x,y,True);
    end;

    begin

    SetupSRL;
    DeclarePlayers;
    if Loggedin then Logout;
      LoginPlayer;
    SetRun(True);
    HighestAngle;
    Repeat
    Walktorock;
    Cutoak;
    if invFull then
    WalkToBank;
    Dposit;
    until(Players[CurrentPlayer].Banked mod LoadsPerPlayer = 0)
    end.

  8. #8
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Got the order mixed up

    SCAR Code:
    if FindColor(x, y, rockcolor, MMX1, MMY2, MMX1, MMX2) then
    ClickMouse(x,y,True);
    if true then;
     
    if FindColor(x, y, OakColor, MMX1, MMY2, MMX1, MMX2); then
    ClickMouse(x,y, True);

    SHOULD BE:

    SCAR Code:
    if FindColor(x, y, rockcolor, MMX1, MMY1, MMX2, MMY2) then
    ClickMouse(x,y,True);
    if true then;
     
    if FindColor(x, y, OakColor, MMX1, MMY1, MMX2, MMY2); then
    ClickMouse(x,y, True);

    And make this your main loop:

    SCAR Code:
    begin
      SetupSRL;
      DeclarePlayers;
      FindRS;
      if Loggedin then Logout;
      LoginPlayer;
      SetRun(True);
      HighestAngle;
      Repeat
        Walktorock;
        Cutoak;
        if invFull then WalkToBank;
        Dposit;
      until(Players[CurrentPlayer].Banked mod LoadsPerPlayer = 0)
    end.

  9. #9
    Join Date
    Jun 2007
    Posts
    140
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Why are you letting him use CLICKMOUSE !? Use Mouse for clickmouse.

  10. #10
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Lol didn't even notice

    Yeah replace
    SCAR Code:
    ClickMouse(x,y,True); //with
    Mouse(x, y, 0, 0, True); //replace '0, 0' with the randomness you want of course
    because ClickMouse is very detectable as the mouse doesn't move to the location just clicks there

  11. #11
    Join Date
    Aug 2007
    Location
    In Your Front Door!
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh, okay thanks for the help guys very well need!!!!


    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need Banking Help
    By Dgby714 in forum OSR Help
    Replies: 2
    Last Post: 08-02-2008, 06:11 AM
  2. Hermpie's banking proc's and Func's makes banking a piece of a cake!
    By ShowerThoughts in forum Research & Development Lounge
    Replies: 13
    Last Post: 06-11-2008, 03:16 PM
  3. Banking
    By Prince in forum OSR Help
    Replies: 15
    Last Post: 02-12-2008, 07:44 PM
  4. Banking
    By TheGodfather in forum OSR Help
    Replies: 15
    Last Post: 02-19-2007, 11:09 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
  •