Simba Code:
if FindDTMRotated(PathToAltarDTMs[0], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
Mouse(x, y, 3, 3, True);
FFlag(8);
MarkTime(T1);
repeat
Wait(50 + Random(25));
until FindDTMRotated(PathToAltarDTMs[1], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) or (TimeFromMark(T1) > 10000);
end else
begin
if not FindDTMRotated(PathToAltarDTMs[1], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
RadialWalkTolerance(4482162, 114, 130, 40, 1, 1, 23)
Writeln('Failsafe radial walking 0');
MarkTime(T1);
FFlag(8);
repeat
Wait(50 + Random(25));
until FindDTMRotated(PathToAltarDTMs[1], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) or (TimeFromMark(T1) > 10000);
end else
end;
if (Not FindDTMRotated(PathToAltarDTMs[1], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound)) then
begin
Writeln('Couldnt find path to altar');
Players[CurrentPlayer].Loc := 'Logout';
end;