Results 1 to 8 of 8

Thread: Sps dtm walking

  1. #1
    Join Date
    Dec 2011
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    26 Post(s)

    Default Sps dtm walking

    How Do I walk? Ive tried a lot of different things. SPS, DTMs etc.
    How can i fix this code?
    Debug is this: [code][/[Error] C:\Simba\Scripts\Testsps.simba(57:4): Unknown identifier 'SPS_Setup' at line 56
    Compiling failed.]
    Code:
    begin
       SPS_Setup(runescape_surface07,['3_10', '4_10']);//SPS Areas
       myPath := [Point(1589, 4369), Point(1590, 4341), Point(1625, 4336), Point(1653, 4316), Point(1648, 4280), Point(1648, 4273)];
       SPS_WalkPath(myPath);
    end.

    SPS is updated.
    And my path generator is in the same folder as 07map. Is it not calling the map correctly? how can i get it to call correctly?
    Last edited by mafia miles; 04-05-2013 at 05:17 AM.

  2. #2
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Where is the error? I can't see it. Also where is your DTM?
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  3. #3
    Join Date
    Dec 2011
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    26 Post(s)

    Default

    No dtm wrong title sorry.
    [Error] C:\Simba\Includes\sps/sps.simba(446:35): Invalid number of parameters at line 445
    Compiling failed.

    I get this in a seperate tab:
    function SPS_PosOnMM(Pt: TPoint): Boolean;
    var
    p: TPoint;
    begin
    p := SPS_PosToMM(Pt);
    //HIGHLIGHTED Result := rs_OnMinimap(p.x, p.y); //Highlighted
    end;

  4. #4
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Simba Code:
    procedure WalkToFurnace;
    var
      PointWalkTime:TPointArray; // not an integer;
    begin
    SPS_Setup(RUNESCAPE_SURFACE07,['12_9']); // call this once in your mainloop (unless u have multiple paths
    myPath := [Point(104, 424), Point(124, 407), Point(134, 387),
    Point(144, 375), Point(152, 357), Point(153, 348), Point(129, 349)];
    SPS_WalkPath(MyPath);
    end;

    As of your compiling error, update to the latest SPS or try Result := rs_OnMinimap(Point(x, y));

    Creds to DannyRS for this wonderful sig!

  5. #5
    Join Date
    Dec 2011
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    26 Post(s)

    Default

    forced upodate sps
    do i have to make a custom map?
    Result := rs_OnMinimap(Point(x, y));
    do i change the x y into points?

  6. #6
    Join Date
    Dec 2011
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    26 Post(s)

    Default

    Need help updated the original post to my current problem.

  7. #7
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by mafia miles View Post
    Need help updated the original post to my current problem.
    Include SPS (or SPS-osr, don't know what you're using) on top of the script.

    Creds to DannyRS for this wonderful sig!

  8. #8
    Join Date
    Dec 2011
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    26 Post(s)

    Default

    OMG it works! Thanks a million

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
  •