Hello,
I've been developing Runescape scripts for quite a while, but I've always been using SPS facing north.
I remember seeing the option to make SPS work facing all directions, but I can't remember how.
How do I do it?
Thank you in advance.
Hello,
I've been developing Runescape scripts for quite a while, but I've always been using SPS facing north.
I remember seeing the option to make SPS work facing all directions, but I can't remember how.
How do I do it?
Thank you in advance.
Simba Code:SPSanyangle := true;
if my memory is true.
Formerly known as Undorak7
Great! I've made it 'work' with all directions, the only problem now is that it isn't doing what it was doing before.
Before SPSAnyAngle, it would walk to a point if we are not inside a box, now it doesn't do anything.
I'd guess it's returning true to being inside that box, even though i'm not(?).
I made the box while facing north, could that be the reason?
My code is:
Simba Code:if (not intToBox(150, 158, 174, 174).isPointInside(userMap.getPlayerPos())) then
begin
userMap.walkToPos(point(162, 170));
end;
Are there any alternatives, so I don't have to use a box? I remember seeing 'isInsidePolygon' before registering, would that work any better?
i havent used SPS in a long time now, but you should try using sps.debugmypos (or sth like that) sps.debug which will open a window and show you were SPS thinks you are, and there you will know if the map is being read correctly. I remember having trouble with SPSanyangle. From my knowledge, to use it at any angle you must have a BIG and Good quality map, maybe touch a little the Tol and accuracy in the SPS.Setup.
Your method for seeing if you are inside or not is ok, no need for polygon since its the same but instead of a circle its a polygon
Formerly known as Undorak7
There are currently 1 users browsing this thread. (0 members and 1 guests)