Results 1 to 7 of 7

Thread: Why doesnt this walk?

  1. #1
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default Why doesnt this walk?

    SCAR Code:
    program KarajamaFisherAndBanker;
    {.include SRL/SRL/misc/SMART.scar}
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Reflection/Reflection.Scar}
    {.include SRL/SRL/Skill/Fishing.scar}

    var Path: TPointArray;

    Procedure DeclarePlayers;
    Begin

      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

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

    end;


    function BankToBoat: TPointArray;
    begin
      SetLength(Result, 12);
      Result[0] := Point(3085, 3248);
      Result[1] := Point(3077, 3254);
      Result[2] := Point(3070, 3263);
      Result[3] := Point(3070, 3270);
      Result[4] := Point(3067, 3277);
      Result[5] := Point(3060, 3268);
      Result[6] := Point(3054, 3257);
      Result[7] := Point(3053, 3247);
      Result[8] := Point(3041, 3248);
      Result[9] := Point(3040, 3236);
      Result[10] := Point(3028, 3236);
      Result[11] := Point(3026, 3222);
    end;

    function BoatToLobbies: TPointArray;
    begin
      SetLength(Result, 9);
      Result[0] := Point(2954, 3147);
      Result[1] := Point(2946, 3147);
      Result[2] := Point(2936, 3147);
      Result[3] := Point(2930, 3150);
      Result[4] := Point(2915, 3153);
      Result[5] := Point(2916, 3159);
      Result[6] := Point(2922, 3168);
      Result[7] := Point(2924, 3173);
      Result[8] := Point(2923, 3179);
    end;

    function LobbiesToBoat: TPointArray;
    begin
      SetLength(Result, 10);
      Result[0] := Point(2924, 3178);
      Result[1] := Point(2922, 3170);
      Result[2] := Point(2920, 3166);
      Result[3] := Point(2916, 3162);
      Result[4] := Point(2914, 3155);
      Result[5] := Point(2921, 3152);
      Result[6] := Point(2931, 3149);
      Result[7] := Point(2938, 3148);
      Result[8] := Point(2949, 3148);
      Result[9] := Point(2954, 3147);
    end;

    function BoatToBank: TPointArray;
    begin
      SetLength(Result, 13);
      Result[0] := Point(3027, 3220);
      Result[1] := Point(3027, 3233);
      Result[2] := Point(3040, 3237);
      Result[3] := Point(3043, 3248);
      Result[4] := Point(3057, 3254);
      Result[5] := Point(3061, 3262);
      Result[6] := Point(3064, 3274);
      Result[7] := Point(3069, 3276);
      Result[8] := Point(3075, 3265);
      Result[9] := Point(3078, 3253);
      Result[10] := Point(3082, 3247);
      Result[11] := Point(3091, 3248);
      Result[12] := Point(3093, 3243);
    end;

    procedure WalkToBoat;
    var i: integer;
    begin
      Path := BankToBoat;
      for i := 0 to High(Path) do
      begin
        WalkToTile(Path[i], 3, 0);
      end;
      Wait(500+Random(300));
    end;

    procedure WalkToLobbies;
    var i: integer;
    begin
      Path := BoatToLobbies;
      for i := 0 to High(Path) do
      begin
        WalkToTile(Path[i], 3, 0);
      end;
      Wait(500+Random(300));
    end;

    procedure ReturnToBoat;
    var i: integer;
    begin
      Path := LobbiesToBoat;
      for i := 0 to High(Path) do
      begin
        WalkToTile(Path[i], 3, 0);
      end;
      Wait(500+Random(300));
    end;

    procedure ReturnToBank;
    var i: integer;
    begin
      Path := BankToBoat;
      for i := 0 to High(Path) do
      begin
        WalkToTile(Path[i], 3, 0);
      end;
      Wait(500+Random(300));
    end;

    procedure SetupSmart;
    begin
      SmartSetupEx(105, False, True, False);
      WriteLn('Setting up Smart... Please Hold...');
      Wait(3000);
      SetTargetDC(SmartGetDC);
    end;

    begin
      SetupSRL;
      DeclarePlayers;
      SetupSmart;
      LoginPlayer;
      WalkToBoat;
      WalkToLobbies;
      Logout;
    end.


    It just stands about in bank.. Used Sumilions Path Maker to get the points.
    Jus' Lurkin'

  2. #2
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Is reflection outdated?
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  3. #3
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Suggestion:

    Make it two paths, then do this:

    SCAR Code:
    For I := High(Path) - 1 DownTo 0 Do

    So you only have two paths. Don't know why it isn't walking for you though :/.

    ~Sandstorm

  4. #4
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sumilion's Pathmaker's map is incorrect.

    Use SMART to get the correct points.

    I found that out the hard way =/

  5. #5
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    No it works now. I had outdated Ref. The walking points work fine for me.
    Jus' Lurkin'

  6. #6
    Join Date
    Oct 2008
    Posts
    500
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Sumilions pathmaker works perfectly for me, you probably did it when reflection was outdated as when its goes outdated, all walking doesnt work. I just finished my karamja fisher the other day so :P.

    Its private though so... keeps yours that way too. Save the price of lobbys

    Also, if you need help let me know, we can help each other, mine will fish, bank and if you lose or dont have your lobby pot, it will go buy another .

  7. #7
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    kitchenrage, I want to release it to members or jr members? I dont know. I wont use it privately so..
    Jus' Lurkin'

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. doesnt compile
    By ShowerThoughts in forum OSR Help
    Replies: 3
    Last Post: 09-09-2007, 09:30 PM
  2. Why doesnt this work?
    By Tim0suprem0 in forum OSR Help
    Replies: 38
    Last Post: 07-03-2007, 09:40 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
  •