2 Attachment(s)
[resolved] Need some help with SPS
So i wanted to make a simple utility script to learn about the SPS-system. I wanted to make a script that walks automaticly to the GE. So first i go use the lodestone network to go to varrock, that works and isn't that hard. But then the actual walking part. I followed the mayors guide(https://villavu.com/forum/showthread.php?t=107757),it does the beginning but then it stops randomly in the middle of the path. I'll just post my code, my map and a screenshot of the path it should take. It also doesn't seem that precise, it sometimes clicks in buildings instead of clicking the actual path.
script:
Code:
program GEWalker;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}
{$I SPS/lib/SPS-RS3.Simba}
procedure TPLodestone();
begin
lodestoneScreen.teleportTo(LOCATION_VARROCK);
end;
procedure WalkToGE();
var
pathtoGE: TPointArray;
begin
pathtoGE:= [Point(336, 553), Point(322, 554), Point(327, 519), Point(328, 480), Point(326, 444), Point(324, 412), Point(325, 374), Point(302, 349), Point(254, 347), Point(226, 343), Point(223, 311), Point(226, 281), Point(226, 266), Point(194, 270), Point(166, 257), Point(149, 219), Point(149, 183), Point(177, 162)]
if SPS.walkPath(pathtoGE) then
minimap.waitPlayerMoving()
else
writeLn('We failed to walk to the GE');
end;
begin
clearDebug();
smartEnableDrawing := true;
setupSRL();
SPS.setup('Varrock', RUNESCAPE_OTHER);
SPSanyangle := false;
minimap.setAngle(MM_DIRECTION_NORTH);
mainScreen.setAngle(MS_ANGLE_HIGH);
TPLodestone();
wait(15000);
WalkToGE();
end.
Image i use as map: Attachment 26357
Screenshot of the SPS program: Attachment 26358