Results 1 to 4 of 4

Thread: Walking with Path Creator

  1. #1
    Join Date
    Apr 2012
    Location
    Land of the Rising Sun
    Posts
    207
    Mentioned
    0 Post(s)
    Quoted
    77 Post(s)

    Default Walking with Path Creator

    I'm having some difficulty walking from Taverly. My character teleports to Taverley, and then just stands there. I've used the path creator in several other places in my script (in different locations than Taverley) and it works fine. Not sure whether it's just Taverley area being difficult, or if I've messed something up... Here's my code.



    Code:
    Procedure RunFromTaverley;
    begin
      StatsGuise('Running from Taverley.');
      myPath := [Point(3306, 2832), Point(3330, 2865), Point(3328, 2891), Point(3326, 2915), Point(3347, 2931), Point(3382, 2939), Point(3410, 2957), Point(3410, 2982), Point(3410, 3013), Point(3419, 3047), Point(3446, 3068), Point(3480, 3085), Point(3512, 3105), Point(3523, 3143), Point(3522, 3179), Point(3518, 3213), Point(3508, 3243)];
      SPS_Setup(RUNESCAPE_SURFACE,['8_7', '8_8']);
      SPS_WalkPath(mypath);
      FFlag(1);
    end;
    
    Procedure CheckStartLocation;
    var
    x, y, MiningIconDTM: Integer;
    
    begin
      MiningIconDTM := DTMFromString('mwQAAAHic42RgYKhnYmCoBuJGIK4B4joouxWKW4B4BlDdNCCeB8RzgXgSFIPEZgLxHCCOM+ZjOHDgAF4sCVRHCDMSgeEAAGM/HYE=');
    
      begin
        wait(RandomRange(300, 600));
        if(findDTM(MiningIconDTM, x, y, MMX1, MMY1, MMX2, MMY2)) then
        begin
          StatsGuise('We''re in the right place.');
        end else
    
        begin
          StatsGuise('Teleporting to Taverley.');
          WriteLn('Teleing to Taverley, will walk to mines from there.');
          OpenLodestoneScreen;
          LodestoneTeleport('Taverley');
          Wait(RandomRange(14000, 15000));
          RunFromTaverley;
        end;
          FreeDTM(MiningIconDtm);
      end;
    end;
    My Scripts: DWT Iron Miner

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

    Default

    EDIT: nevermind, thought you called SPS_Setup at the wrong procedure
    Last edited by Sjoe; 05-21-2013 at 10:43 AM.

    Creds to DannyRS for this wonderful sig!

  3. #3
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by pure_thief View Post
    I'm having some difficulty walking from Taverly. My character teleports to Taverley, and then just stands there. I've used the path creator in several other places in my script (in different locations than Taverley) and it works fine. Not sure whether it's just Taverley area being difficult, or if I've messed something up... Here's my code
    .

    If you call SPS_Setup within the procedure it should still work. I would suggest using a custom SPS map as they are typically more reliable. I have one for Taverley in my G.A.O script, it has never failed me once:



    Feel free to try it

  4. #4
    Join Date
    Apr 2012
    Location
    Land of the Rising Sun
    Posts
    207
    Mentioned
    0 Post(s)
    Quoted
    77 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    .

    If you call SPS_Setup within the procedure it should still work. I would suggest using a custom SPS map as they are typically more reliable. I have one for Taverley in my G.A.O script, it has never failed me once:




    Feel free to try it
    Awesome, thanks for this. I'll try it out
    My Scripts: DWT Iron Miner

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
  •