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?
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?
Maybe try something like RSWalker?
use distance checks with static images on the minimap (since this is for rsps)
You could use rswalker
where xxxx is your desired tile.if not PointsInDist(RSW.getMyPos(), [xxxx, xxxx], 10) then
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
I do have TpointArrary declared as a global variableCode:ToArea := [Point(522, 589), Point(522, 588), Point(523, 588)]; RSW.walkPath(ToArea); WriteLn('I am here: ', RSW.GetMyPos());
The main error which I do get is this
This is focusing on this line out of the code belowCode:Error: Not implemented yet at line 68
Code:RaiseException('Not implemented yet');Help is appreciated just would like the script to move to the area out of the map space by a few squares.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;
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
There are currently 1 users browsing this thread. (0 members and 1 guests)