Results 1 to 8 of 8

Thread: Walking Problem

  1. #1
    Join Date
    Mar 2013
    Posts
    59
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default Walking Problem

    I have tried to make DTMs, SPS and some others but I get errors.
    I want to make SPS because it looks like the best one.
    Here's my code:
    Simba Code:
    program IronMiner;
    {$i sps/sps-osr.simba}
    {$i srl-osr/srl.simba}

    Procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
      Players[0].Name := '';  //Type in your login-name
      Players[0].Pass := '';  //Password
      Players[0].Nick := '';  //Your player name shown in-game. Not the first characters of words! eg. 'Bob' = 'ob'
      Players[0].Pin := '';   //Bank PIN
      Players[0].Active:=True; //Ignore this
    end;



    procedure WalkTo;
    var
      PointWalkTime:TPointArray;
    begin
      SPS_Setup(RUNESCAPE_SURFACE,['12_7']);
      myPath := [Point(4990, 3187), Point(5002, 3161), Point(4994, 3129),
      Point(4992, 3091), Point(4995, 3067), Point(4985, 3035), Point(4975, 3003),  Point(4965, 2983), Point(4937, 2965), Point(4907, 2971), Point(4882, 2971),
      Point(4858, 2966), Point(4842, 2972), Point(4841, 2998)];
    end;


    begin
      SetupSRL;
      ActivateClient;
      DeclarePlayers;
      LoginPlayer;
      SPS_Setup;
      WalkTo;
    end.
    and I get this error:
    [Error] C:\Simba\Includes\sps/sps-osr.simba(55:35): Unknown identifier 'MMCX' at line 54
    Compiling failed.
    and
    [Error] (25:3): Unknown identifier 'myPath' at line 24
    Compiling failed.
    I have SPS latest
    oh and I'm trying to make it for old school rs.

  2. #2
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    For the first one.
    You're running sps-osr.simba, not your script.

    For the second, rename myPath to PointWalkTime

  3. #3
    Join Date
    Mar 2013
    Posts
    59
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Thanks for the help, but
    When I run the script, it opens sps-osr.simba in a new tab and I get the error
    [Error] C:\Simba\Includes\sps/sps-osr.simba(55:35): Unknown identifier 'MMCX' at line 54
    Compiling failed.
    and script doesn't load.

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

    Default

    Simba Code:
    program IronMiner;
    {$i sps/sps-osr.simba}
    {$i srl-osr/srl.simba}


    call srl include first
    Simba Code:
    program IronMiner;
    {$i srl-osr/srl.simba}
    {$i sps/sps-osr.simba}

    Creds to DannyRS for this wonderful sig!

  5. #5
    Join Date
    Mar 2013
    Posts
    59
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Thanks.
    Now it says:
    [Hint] C:\Simba\Includes\sps/sps-osr.simba(480:3): Variable 'Z' never used at line 479
    [Hint] C:\Simba\Includes\sps/sps-osr.simba(482:3): Variable 'DEGREEFIX' never used at line 481
    [Hint] C:\Simba\Includes\sps/sps-osr.simba(483:3): Variable 'FINDPOINT' never used at line 482
    Compiled successfully in 312 ms.
    SRL Compiled in 0 msec
    Successfully executed.
    So I will try to add smart and run it.

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

    Default

    Quote Originally Posted by Mikkoz99 View Post
    Thanks.
    Now it says:

    So I will try to add smart and run it.
    Those are just hints, ignore it.
    U gotta call the walking function though.

    Simba Code:
    procedure WalkTo;
    var
      PointWalkTime:TPointArray;
    begin
      SPS_Setup(RUNESCAPE_SURFACE,['12_7']);
      PointWalkTime := [Point(4990, 3187), Point(5002, 3161), Point(4994, 3129),
      Point(4992, 3091), Point(4995, 3067), Point(4985, 3035), Point(4975, 3003),  Point(4965, 2983), Point(4937, 2965), Point(4907, 2971), Point(4882, 2971),
      Point(4858, 2966), Point(4842, 2972), Point(4841, 2998)];

     SPS_WalkPath(PointWalkTime); // this will make it walk.
    end;

    Creds to DannyRS for this wonderful sig!

  7. #7
    Join Date
    Mar 2013
    Posts
    59
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Hmm it still doesn't do anything
    The script is running but it does nothing.?
    Simba Code:
    procedure WalkTo;
    var
      PointWalkTime:TPointArray;
    begin
      SPS_Setup(RUNESCAPE_SURFACE,['12_7']);
      PointWalkTime := [Point(4990, 3187), Point(5002, 3161), Point(4994, 3129),
      Point(4992, 3091), Point(4995, 3067), Point(4985, 3035), Point(4975, 3003),  Point(4965, 2983), Point(4937, 2965), Point(4907, 2971), Point(4882, 2971),
      Point(4858, 2966), Point(4842, 2972), Point(4841, 2998)];

     SPS_WalkPath(PointWalkTime); // this will make it walk.
    end;

  8. #8
    Join Date
    Mar 2013
    Posts
    59
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    GOT IT TO WALK. Don't know how, but
    Simba Code:
    procedure WalkTo;
    var
      PointWalkTime:TPointArray; // not an integer;
    begin
      MakeCompass('N');
      SPS_Setup(RUNESCAPE_SURFACE,['12_7']); // call this once in your mainloop (unless u have multiple paths
      PointWalkTime := [Point(4975, 3196), Point(4994, 3181), Point(5006, 3164), Point(4999, 3142), Point(4995, 3117), Point(4993, 3089), Point(4990, 3056), Point(4976, 3016), Point(4964, 2973), Point(4920, 2967), Point(4880, 2969), Point(4848, 2971), Point(4843, 2997)];
      SPS_WalkPath(PointWalkTime);
    end;
    Thanks very much for helping!!! Soon I can release this

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
  •