I'm having a couple problems here.
First off, walking. It walks, yet it always gets ahead of itself. It seems to jump right to other walk paths before finishing the first one.
Simba Code:
procedure falToDrag;
Var
x, y : Integer;
begin
MakeCompass('n');
falToShortP := [Point(3598, 3176), Point(3593, 3227)];
if SPS_WalkPath(falToShortP) then
begin
Writeln('Attempting to use shortcut');
if FindColorSpiralTolerance(x, y, shortColor, MSX1, MSY1, MSX2, MSY2, 2) then
begin
MMouse(x, y, 3, 3);
if(isUpText('rumbling')) then
begin
Mouse(x, y, 3, 3, True);
wait(500 + random(700));
shortToCaveP := [Point(3564, 3229), Point(3541, 3180), Point(3509, 3160), Point(3487, 3145), Point(3446, 3110), Point(3425, 3084), Point(3410, 3069), Point(3395, 3076), Point(3377, 3069)];
if SPS_WalkPath(shortToCaveP) then
begin
if FindColorSpiralTolerance(x, y, caveColor, MSX1, MSY1, MSX2, MSY2, 2) then
begin
MMouse(x, y, 3, 3);
if(isUpText('adder')) then
begin
Mouse(x, y, 3, 3, True);
wait(500 + random(700));
end;
end;
end;
end;
end;
end;
end;
It starts searching for the shortcut before it's even half way to the first point.
And now, teleporting. I've tried multiple DTMs, I just can't get it to find the Falador Teleport.
Simba Code:
procedure tele;
Var
teleDTM, x, y : Integer;
begin
teleDTM := DTMFromString('mbQAAAHicY2VgYPjCzMDwEIhPA7EwC1AAiFOZGBgqgDgGiKOAuAyIHeVjGWR4VRh0+PWB2ADMlmPABIxYMBgAADtYByw=');
GameTab(tab_Magic);
Writeln('Searching for teleport');
if FindDTM(teleDTM, x, y, MIX1, MIY1, MIX2, MIY2) then
Writeln('Found that shit');
MMouse(x, y, 3, 3);
if(isUpText('alador')) then
begin
Mouse(x, y, 0, 0, True);
wait(300 + random(200));
falToBank;
end;
FreeDTM(teleDTM);
end;
It'll end up just sitting at the Magic tab for quite awhile before RuneScape kicks me.