Results 1 to 8 of 8

Thread: SetRun

  1. #1
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default SetRun

    So I'm writing a new script and had a custom SPS map made for it.
    Below is my current walking procedure, but for some reason it toggles my run option, usually to false.

    I'm just trying to work out where in this piece of code there is something that would make it toggle the run to whatever it feels like?

    Simba Code:
    procedure Walk2Bank;
    var
      myPath: Array of TPoint;
    begin
      Status('Walk2Bank - SPS');
      if not LoggedIn then
      begin
        {$IFDEF DEBUG}
          WriteLn('Not logged in @Walk2Bank.');
        {$ENDIF}
        NextPlayer(False);
      end;
      if FindNormalRandoms then
        Exit;
      MakeCompass('n');
      SetAngle(SRL_ANGLE_HIGH);
      myPath := [Point(261, 172), Point(253, 176), Point(243, 178), Point(233, 178), Point(224, 179), Point(220, 182), Point(213, 182)];
      if not SPS_WalkPath(myPath) then
        Walk2Bank2;  //TPA failsafe walking method
    end;

  2. #2
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Part of SPS_WalkPath is

    RunEnergy(20);

  3. #3
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SPS_WalkPath sets to run whenever your energy reached 20. Make something like SPS_WalkPath2 and edit to your likings

    EDIT: Sorry, didn't saw that post ^^

  4. #4
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    But my energy is almost always above 90 because I don't have a long distance to travel?

  5. #5
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If it has 20 or more than 20 energy, it will toggle run. 90 is more than 20.

    Btw, you only wanted to walk?

  6. #6
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    Nah, I wanted to run. made a SPS_WalkPathEx without the RunEnergy and it's working perfectly now Thanks guys!

  7. #7
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Quote Originally Posted by P1ng View Post
    Nah, I wanted to run. made a SPS_WalkPathEx without the RunEnergy and it's working perfectly now Thanks guys!
    I had this problem in my GOP script aswell, but only at the mind & body altar. I guess I know how to fix it now

    Script source code available here: Github

  8. #8
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by P1ng View Post
    But my energy is almost always above 90 because I don't have a long distance to travel?
    This is due to the way the run 'meter' glows when activated, as it sometimes causes the function to misread the actual value.

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
  •