Results 1 to 7 of 7

Thread: Walk area

  1. #1
    Join Date
    Mar 2016
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Walk area

    Hi I was wondering what tutorials are there I could use to make my account only walk in a certain area and if it is outside this area by about 10 steps it will walk back in this specified area?

  2. #2
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    269
    Mentioned
    17 Post(s)
    Quoted
    161 Post(s)

    Default

    Maybe try something like RSWalker?

  3. #3
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    use distance checks with static images on the minimap (since this is for rsps)

  4. #4
    Join Date
    Jul 2015
    Posts
    80
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    You could use rswalker

    if not PointsInDist(RSW.getMyPos(), [xxxx, xxxx], 10) then
    where xxxx is your desired tile.

  5. #5
    Join Date
    Mar 2016
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Thanks I got the first part done loading static images/maps and being recognized in that area. What I'm trying to do is use RSwalker possibly RSW.walkToPath or RSW.WalkToPos to walk back to the assigned area(if the area is in range).

    The problem is I'm getting errors I have this as part of my code

    Code:
    ToArea := [Point(522, 589), Point(522, 588), Point(523, 588)];
    RSW.walkPath(ToArea);
      WriteLn('I am here: ', RSW.GetMyPos());
    I do have TpointArrary declared as a global variable

    The main error which I do get is this

    Code:
    Error: Not implemented yet at line 68
    This is focusing on this line out of the code below

    Code:
          RaiseException('Not implemented yet');
    Code:
    procedure w_clickMouse(box:TBox; btn:Int32);
    begin
      {$IFDEF SRL_MOUSE}
        mouse.click(box, btn);
      {$ELSE}
        {$IFDEF AEROLIB}
          MouseBox(box, btn);
        {$ELSE}
          RaiseException('Not implemented yet');
        {$ENDIF}
      {$ENDIF}
    end;
    Help is appreciated just would like the script to move to the area out of the map space by a few squares.

  6. #6
    Join Date
    Mar 2016
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Fixed had to change my includes because SRL-OSR isn't that great when working with rswalker

  7. #7
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Quote Originally Posted by Botmeplss2 View Post
    Fixed had to change my includes because SRL-OSR isn't that great when working with rswalker
    If you would just read the thread for RSWalker: https://villavu.com/forum/showthread.php?t=111914 it makes it clear how to setup RSWalker. It doesn't matter which include you use when you setup RSWalker correctly. At which point it should work with all current includes.
    Last edited by slacky; 04-01-2016 at 06:52 AM.
    !No priv. messages please

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
  •