Hello people,
I am trying to reboot some old javascripts of mine and translate it into simba.
I have a problem with walking to a certain point, it is inaccurate.
Attachment 26816
Simba Code:
program scriptTemplate;
{$DEFINE SMART} // Always have this to load smart
{$I SRL-6/SRL.simba} // To load the SRL include files
{$I SPS/lib/SPS-RS3.Simba} // To load the SPS include files
var
can0: TSPSArea;
procedure runToGate(); //its directed to the gate but it walks past it.
var
pathToGate: TpointArray;
begin
if not isLoggedIn() then
exit;
pathToGate := [Point(332, 198), Point(285, 185), Point(242, 188), Point(208, 205), Point(170, 214), Point(136, 223), Point(87, 241), Point(57, 265), Point(46, 285)]; //I think the problem might be living here, but I am not sure.
can0.walkPath(pathToGate);
wait(randomRange(333, 444));
minimap.waitPlayerMoving();
wait(randomRange(333, 444));
end;
begin
clearDebug();
setupSRL();
can0.setup('CANIFIS_FUNGI', RUNESCAPE_SURFACE);
runToGate();
end;
Thanks in advance.