Results 1 to 9 of 9

Thread: SRS Walking

  1. #1
    Join Date
    Apr 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default SRS Walking

    is there any trick to know how to use 2 walking Path's in 1 script? it wont let me use 2 of them... i tried both withouth the other and it worked :/

  2. #2
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by schnubbel15 View Post
    is there any trick to know how to use 2 walking Path's in 1 script? it wont let me use 2 of them... i tried both withouth the other and it worked :/
    sorry wut? what are you using? sps?

  3. #3
    Join Date
    Apr 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    im using SPS walk yes. and i have 1 path to walk to a certain point and 1 path to walk to the bank. nut only 1 is useable at a time

  4. #4
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by schnubbel15 View Post
    im using SPS walk yes. and i have 1 path to walk to a certain point and 1 path to walk to the bank. nut only 1 is useable at a time
    name one path
    Pathbank
    and the other
    PathWhateveryouwant

  5. #5
    Join Date
    Apr 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    i did heres the code

    Simba Code:
    function WalkToGate:Boolean;
    var
      PathToGate:TPointArray;
    begin
      WriteLn('Walking to Gate...');
      SPS_Setup(RUNESCAPE_SURFACE,['10_8','10_7','11_8']);
      PathToGate  :=[Point(4378, 3358), Point(4379, 3352), Point(4378, 3347), Point(4378, 3341), Point(4378, 3335), Point(4378, 3332), Point(4378, 3328), Point(4378, 3325), Point(4378, 3321), Point(4378, 3315), Point(4376, 3314), Point(4374, 3309), Point(4374, 3305), Point(4373, 3301), Point(4374, 3289), Point(4373, 3286), Point(4372, 3283), Point(4370, 3282), Point(4372, 3279), Point(4372, 3275), Point(4372, 3272)];
      SPS_WalkPath(PathToGate);
      Result:= True;
    end;

    function WalkToBank:Boolean;
    var
      PathToBank:TPointArray;
    begin
      WriteLn('Walking to Bank...');
      SPS_Setup(RUNESCAPE_SURFACE,['10_8','10_7','11_7','11_8']);
      PathToBank := [Point(4372, 3262), Point(4358, 3262), Point(4337, 3260), Point(4300, 3244)];
      SPS_WalkPath(PathToBank);
      Result:= True;
    end;

    begin
      SetupSRL;
      WalkToGate;
      WalkToBank;
    end.

  6. #6
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    You cant have it setup two different areas it should be like this

    Simba Code:
    function WalkToGate:Boolean;
    var  
    PathToGate:TPointArray;
    begin
    WriteLn('Walking to Gate...');
    SPS_Setup(RUNESCAPE_SURFACE,['10_8','10_7','11_8','11_7']); // Include all the SPS areas in only one SPS_Setup function, Simba was giving me this problem the other day.
     
    PathToGate  :=[Point(4378, 3358),
    Point(4379, 3352), Point(4378, 3347),
    Point(4378, 3341), Point(4378, 3335),
    Point(4378, 3332), Point(4378, 3328),
    Point(4378, 3325), Point(4378, 3321),
    Point(4378, 3315), Point(4376, 3314),
    Point(4374, 3309), Point(4374, 3305),
    Point(4373, 3301), Point(4374, 3289),
    Point(4373, 3286), Point(4372, 3283),
    Point(4370, 3282), Point(4372, 3279),
    Point(4372, 3275), Point(4372, 3272)];
    SPS_WalkPath(PathToGate);  
    Result:= True;
    end;

    function WalkToBank:Boolean;
    var  
    PathToBank:TPointArray;begin  
    WriteLn('Walking to Bank...');
    PathToBank := [Point(4372, 3262),
     Point(4358, 3262),
    Point(4337, 3260),
     Point(4300, 3244)];
      SPS_WalkPath(PathToBank);
      Result:= True;
    end;
    begin
      SetupSRL;
      WalkToGate;
      WalkToBank;
    end.

    Call all the area's in a single setup procedure, simba gave me this problem the other day.

  7. #7
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    ^ this


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  8. #8
    Join Date
    Apr 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    mh thanks for quick answer, ill test when im back from work Thanks

    EDIT: Yep, that worked, thanks =)
    Last edited by schnubbel15; 12-06-2012 at 12:04 PM.

  9. #9
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by schnubbel15 View Post
    mh thanks for quick answer, ill test when im back from work Thanks

    EDIT: Yep, that worked, thanks =)
    Np

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
  •