Page 5 of 6 FirstFirst ... 3456 LastLast
Results 101 to 125 of 142

Thread: SPS Walking Guide (The Basics) By Aligndude

  1. #101
    Join Date
    May 2012
    Location
    Draynor Willows
    Posts
    498
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Sweet, got my script to walk. Admittedly only to just outside the bank but that's all I need anyway.

    Is there any randomness in this? Say I say walk to this point, will it always go to the same tile?

  2. #102
    Join Date
    May 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by 14578 View Post
    Still doesn't seem to work.

    I was having the same issue until I read that I was using the wrong .png file. Make sure that runescape_surface.png is in the same folder as your Path Creator v0.9.exe. Right now you are opening the .png file for the area you are working on.

  3. #103
    Join Date
    May 2012
    Location
    Doncaster, UK
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks, this helped me loads! With this, I'll hopefully have my first script finished quickly
    Current goal: Make my first script

    Clay miner: 70% Completed

  4. #104
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by bishknight View Post
    Thanks, this helped me loads! With this, I'll hopefully have my first script finished quickly
    Glad it helped
    Good Luck, I hope to see it soon
    Mat



    ^^

  5. #105
    Join Date
    Nov 2011
    Posts
    335
    Mentioned
    0 Post(s)
    Quoted
    68 Post(s)

    Default

    Got the same question as theneonfishy, how can I randomise it (if at all)?

    E: just made a simple path from varrock center to GE! It Works! Woot! , but misses a bit too much to use for sth that is entirely based on walking (like RC).
    Last edited by l6bustank; 11-09-2012 at 09:48 PM.

  6. #106
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by l6bustank View Post
    Got the same question as theneonfishy, how can I randomise it (if at all)?

    E: just made a simple path from varrock center to GE! It Works! Woot! , but misses a bit too much to use for sth that is entirely based on walking (like RC).
    I've noticed SPS in Varrock can be in-accurate, I suggest you look into (D)DTM walking

    Forum account issues? Please send me a PM

  7. #107
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by [J]ustin View Post
    I've noticed SPS in Varrock can be in-accurate, I suggest you look into (D)DTM walking
    Or the use of custom maps That should help it
    Mat



    ^^

  8. #108
    Join Date
    Nov 2008
    Location
    UK
    Posts
    153
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Great tutorial. Helped a lot. Didn't know it was so easy to do. The name always made it sound more complex.

    Thanks

  9. #109
    Join Date
    Nov 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Does this script work for runescape classic private servers as well? such as project rsc?

  10. #110
    Join Date
    Dec 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm trying to use this code to walk on a private server but it isn't working. I get the error:

    Simba Code:
    Error: Exception: The bitmap[0] does not exist at line 579

    My full code is:

    Simba Code:
    program Flax;
    {$i srl/srl.simba}
    {$i sps/sps.simba}
    Var
      myPath:TPointArray;
      i:Integer;

    procedure Click;
    begin
      movemouse(648,245)
      wait(200)
      ClickMouse(648, 245, 1)
    end;

    function FlaxColor: Integer;
    var
      arP: TPointArray;
      arC: TIntegerArray;
      tmpCTS, i, arL: Integer;
    begin
      tmpCTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.06, 0.16);

      if not (FindColorsTolerance(arP, 12301909, MSX1, MSY1, MSX2, MSY2, 3)) then
      begin
        Writeln('Failed to find the color, no result.');
        ColorToleranceSpeed(tmpCTS);
        SetColorSpeed2Modifiers(0.2, 0.2);
        Exit;
      end;

      arC := GetColors(arP);
      ClearSameIntegers(arC);
      arL := High(arC);

      for i := 0 to arL do
      begin
        Result := arC[i];
       // Writeln('AutoColor = ' + IntToStr(arC[i]));
        Break;
      end;

      ColorToleranceSpeed(tmpCTS);
      SetColorSpeed2Modifiers(0.2, 0.2);
    end;

    procedure PickFlax;
    var x, y, w, h: integer;
    begin
        GetClientDimensions(w,h);
        repeat
          if FindColor(x,y,FlaxColor,0,0,w-1,h-1) then
          begin
            MoveMouse(x,y)
            wait(200)
            ClickMouse(x,y,1)
            wait(3000)
          end;
        until(isKeyDown(116))
    end;

    begin
      SPS_SETUP(RUNESCAPE_SURFACE, ['6_7','6_6','7_6','7_7']);
      myPath := [Point(2780, 2875), Point(2777, 2872), Point(2775, 2868),
      Point(2775, 2862), Point(2773, 2856), Point(2769, 2851),
      Point(2762, 2847), Point(2757, 2841), Point(2754, 2834),
      Point(2752, 2829), Point(2749, 2820), Point(2743, 2814),
      Point(2743, 2807), Point(2745, 2800), Point(2747, 2792),
      Point(2750, 2787), Point(2750, 2780), Point(2748, 2771),
      Point(2744, 2762), Point(2744, 2754), Point(2744, 2745),
      Point(2743, 2736), Point(2740, 2727), Point(2742, 2719),
      Point(2747, 2710), Point(2741, 2705), Point(2739, 2688),
      Point(2738, 2678), Point(2738, 2674)];
      Click;
      wait(1000);
      SPS_WalkPath(myPath);
    end.

    Can anyone help? I'm thinking maybe I simply can't use SPS to walk on a private server.
    Last edited by ewan; 12-03-2012 at 10:44 PM. Reason: I need to learn to click 'preview' rather than 'post'

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

    Default

    First of all, nice tutorial^^
    but i got a prbolem. everything is working fine but when i only use my function WalkToBank it works great but when i try to use it IN my script it wont do anything. so heres my script, i hope u can help me :P


    Edit: Still not fixed >_>
    Last edited by schnubbel15; 12-05-2012 at 08:37 PM.

  12. #112
    Join Date
    Dec 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Would if put this at the bottom of my script after it gets full inv then would I need to add a code to bank and walk back to willows?

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

    Default

    Not sure if i didnt saw, but i think you missed SetupSRL;



    Quote Originally Posted by ewan View Post
    I'm trying to use this code to walk on a private server but it isn't working. I get the error:

    Simba Code:
    Error: Exception: The bitmap[0] does not exist at line 579

    My full code is:

    Simba Code:
    program Flax;
    {$i srl/srl.simba}
    {$i sps/sps.simba}
    Var
      myPath:TPointArray;
      i:Integer;

    procedure Click;
    begin
      movemouse(648,245)
      wait(200)
      ClickMouse(648, 245, 1)
    end;

    function FlaxColor: Integer;
    var
      arP: TPointArray;
      arC: TIntegerArray;
      tmpCTS, i, arL: Integer;
    begin
      tmpCTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.06, 0.16);

      if not (FindColorsTolerance(arP, 12301909, MSX1, MSY1, MSX2, MSY2, 3)) then
      begin
        Writeln('Failed to find the color, no result.');
        ColorToleranceSpeed(tmpCTS);
        SetColorSpeed2Modifiers(0.2, 0.2);
        Exit;
      end;

      arC := GetColors(arP);
      ClearSameIntegers(arC);
      arL := High(arC);

      for i := 0 to arL do
      begin
        Result := arC[i];
       // Writeln('AutoColor = ' + IntToStr(arC[i]));
        Break;
      end;

      ColorToleranceSpeed(tmpCTS);
      SetColorSpeed2Modifiers(0.2, 0.2);
    end;

    procedure PickFlax;
    var x, y, w, h: integer;
    begin
        GetClientDimensions(w,h);
        repeat
          if FindColor(x,y,FlaxColor,0,0,w-1,h-1) then
          begin
            MoveMouse(x,y)
            wait(200)
            ClickMouse(x,y,1)
            wait(3000)
          end;
        until(isKeyDown(116))
    end;

    begin
      SPS_SETUP(RUNESCAPE_SURFACE, ['6_7','6_6','7_6','7_7']);
      myPath := [Point(2780, 2875), Point(2777, 2872), Point(2775, 2868),
      Point(2775, 2862), Point(2773, 2856), Point(2769, 2851),
      Point(2762, 2847), Point(2757, 2841), Point(2754, 2834),
      Point(2752, 2829), Point(2749, 2820), Point(2743, 2814),
      Point(2743, 2807), Point(2745, 2800), Point(2747, 2792),
      Point(2750, 2787), Point(2750, 2780), Point(2748, 2771),
      Point(2744, 2762), Point(2744, 2754), Point(2744, 2745),
      Point(2743, 2736), Point(2740, 2727), Point(2742, 2719),
      Point(2747, 2710), Point(2741, 2705), Point(2739, 2688),
      Point(2738, 2678), Point(2738, 2674)];
      Click;
      wait(1000);
      SPS_WalkPath(myPath);
    end.

    Can anyone help? I'm thinking maybe I simply can't use SPS to walk on a private server.

  14. #114
    Join Date
    Dec 2012
    Posts
    191
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank's for the time put into this tutorial. Really helped me!

  15. #115
    Join Date
    Oct 2006
    Location
    Where the military sends me
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    30 Post(s)

    Default

    Awesome guide. Just made my 1st walking script. I was going to use all DTMs but got discouraged.

    Your guide saved my script.
    Listen and Silent are spelled with the same letters for a reason.

  16. #116
    Join Date
    Sep 2008
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    will this work in private servers like prox? im wondering because somet hing like uptext dont

  17. #117
    Join Date
    Nov 2011
    Posts
    335
    Mentioned
    0 Post(s)
    Quoted
    68 Post(s)

    Default

    I have a problem with SPS: when trying to walk from edgeville telespot to SW portal, it seems to amplify the points i get from the path generator by x times so instead it tries to walk to somewhere in barbarian village. How can i fix this?

    E: got it working again but the odd thing is that so far, I have been using this path flawlessly:

    Simba Code:
    RoadToPortal := [Point(4114, 2650), Point(4118, 2670),
      Point(4129, 2683), Point(4150, 2706), Point(4149, 2723),
      Point(4156, 2740), Point(4155, 2751)];

    After the current one failed, i made a new one that makes me end up in the SAME LOCATION but with completely different coordinates:

    Simba Code:
    RoadToPortal := [Point(4109, 2633), Point(4109+(1/5), 2646), Point(4109, 2702)];

    fuck logic 0_o
    Last edited by l6bustank; 01-28-2013 at 01:27 PM.

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

    Default

    Quote Originally Posted by l6bustank View Post
    I have a problem with SPS: when trying to walk from edgeville telespot to SW portal, it seems to amplify the points i get from the path generator by x times so instead it tries to walk to somewhere in barbarian village. How can i fix this?

    E: got it working again but the odd thing is that so far, I have been using this path flawlessly:

    Simba Code:
    RoadToPortal := [Point(4114, 2650), Point(4118, 2670),
      Point(4129, 2683), Point(4150, 2706), Point(4149, 2723),
      Point(4156, 2740), Point(4155, 2751)];

    After the current one failed, i made a new one that makes me end up in the SAME LOCATION but with completely different coordinates:

    Simba Code:
    RoadToPortal := [Point(4109, 2633), Point(4109+(1/5), 2646), Point(4109, 2702)];
    Edgeville has been a tad off with the shading on the minimap now, remember SPS is a math algorithm that tries to calculate your position via small boxes, it can have deadspots/false positives, if you make a perfect (near inpossible) custom map, it should work alot better, my SPS map i made for my Edge furnace script seems to be working almost flawlessly, try that if you want, think you would have to increase the size a little tho

    What do you mean amplify the points?

    Its most likely calculating your position and thinks you are lower/higher than you actually are on the map, so it clicks further away, then can find itself again mid path, also if it can't find your position, it is returned as -1, -1, meaning if your point is positive, many sps functions will just click down because they are trying to move from -1-1 to the x,y, you are giving them,

    It sounds like the map you are using is not accurate enough for edge now, if you make a map, anything that is on your minimap all the time, bankers or other non moving NPC dots, should be included, the closer you can get it to the way the minimap will look, the better the walking functions will work in sps
    Last edited by DannyRS; 01-28-2013 at 02:05 PM.


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

  19. #119
    Join Date
    Nov 2011
    Posts
    335
    Mentioned
    0 Post(s)
    Quoted
    68 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    Edgeville has been a tad off with the shading on the minimap now, remember SPS is a math algorithm that tries to calculate your position via small boxes, it can have deadspots/false positives, if you make a perfect (near inpossible) custom map, it should work alot better, my SPS map i made for my Edge furnace script seems to be working almost flawlessly, try that if you want, think you would have to increase the size a little tho

    What do you mean amplify the points?

    Its most likely calculating your position and thinks you are lower/higher than you actually are on the map, so it clicks further away, then can find itself again mid path, also if it can't find your position, it is returned as -1, -1, meaning if your point is positive, many sps functions will just click down because they are trying to move from -1-1 to the x,y, you are giving them,

    It sounds like the map you are using is not accurate enough for edge now, if you make a map, anything that is on your minimap all the time, bankers or other non moving NPC dots, should be included, the closer you can get it to the way the minimap will look, the better the walking functions will work in sps
    ok, thx for explaining. How do I make my own map btw?

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

    Default

    Quote Originally Posted by l6bustank View Post
    ok, thx for explaining. How do I make my own map btw?
    Check this out, by @Google

    http://villavu.com/forum/showthread.php?t=84360


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

  21. #121
    Join Date
    Nov 2011
    Posts
    335
    Mentioned
    0 Post(s)
    Quoted
    68 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    ok, thanks again

  22. #122
    Join Date
    Feb 2013
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    48 Post(s)

    Default

    I'm trying to run around in the flax field at catherby but my char doesnt move:

    Code:
    program SPSTut;
    {$i srl/srl.simba}
    {$i sps/sps.simba}
    Var
      myPath:TPointArray;
    begin
      SetupSRL;
      SPS_Setup(RUNESCAPE_SURFACE,['6_7','7_6','6_6','];//SPS Areas
      myPath := [Point(2764, 2814), Point(2750, 2803), Point(2744, 2809),
                 Point(2744, 2817), Point(2746, 2821), Point(2755, 2825),
                 Point(2815, 2744), Point(2740, 2738), Point(2691, 2777),
                 Point(2697, 2823), Point(2769, 2870)];
      SPS_WalkPath(myPath);
    end.

  23. #123
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by Sh4d0wf0x View Post
    I'm trying to run around in the flax field at catherby but my char doesnt move:

    Code:
    program SPSTut;
    {$i srl/srl.simba}
    {$i sps/sps.simba}
    Var
      myPath:TPointArray;
    begin
      SetupSRL;
      SPS_Setup(RUNESCAPE_SURFACE,['6_7','7_6','6_6','];//SPS Areas
      myPath := [Point(2764, 2814), Point(2750, 2803), Point(2744, 2809),
                 Point(2744, 2817), Point(2746, 2821), Point(2755, 2825),
                 Point(2815, 2744), Point(2740, 2738), Point(2691, 2777),
                 Point(2697, 2823), Point(2769, 2870)];
      SPS_WalkPath(myPath);
    end.
    Hey.
    Long time since I posted here :P Before I carry on I'd like to thanks all the people for helping everyone
    Right, I'm not to sure why its not walking but for a start you have syntax problems on the SPS_Setup.
    you've got
    Simba Code:
    SPS_Setup(RUNESCAPE_SURFACE,['6_7','7_6','6_6','];//SPS Areas
    It should be:
    Simba Code:
    SPS_Setup(RUNESCAPE_SURFACE,['6_7','7_6','6_6']);//SPS Areas
    Your Path seems to be okay, for that area.
    I'm not to sure maybe the maps need updating.
    Try the SPS_Setup Fix first.
    Mat
    Attached Images Attached Images



    ^^

  24. #124
    Join Date
    Oct 2012
    Location
    Ontario, Canada
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thank you for the guide, very helpful.

  25. #125
    Join Date
    May 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Code:
    program SpsWalktest;
    
    {$i srl-osr/srl.simba}
    {$i sps/sps.simba}
    
    Var
      OrePath:TPointArray;
    
    begin
      SetupSRL;
      SPS_Setup (RUNESCAPE SURFACE, ['5_10','4_9','4_10','6_10','6_9' ]);
      OrePath := [Point(2239, 4233), Point(2223, 4229), Point(2223, 4225), Point(2223, 4211),
      Point(2238, 4197), Point(2253, 4188), Point(2262, 4175), Point(2278, 4154), Point(2279, 4145),
      Point(2285, 4119), Point(2290, 4105), Point(2294, 4087), Point(2294, 4081), Point(2297, 4067),
      Point(2302, 4058), Point(2302, 4052), Point(2303, 4042), Point(1762, 3948), Point(1755, 4362),
      Point(2512, 4286), Point(2414, 3967)];
      SPS_WalkPath(OrePath);
    end.

    Exception in Script: Plugin(sps32) has not been found
    Makes the walk path not work, any ideas? - I realize its for 07scape, since i cant find another tut showing how to sps on 07.. using a browser to test it, thats why theres no smart or anything.

Page 5 of 6 FirstFirst ... 3456 LastLast

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •