Also, instead of writing:
Simba Code:
if not FindColorSpiralTolerance( x, y, GoUpSkeletonDungeonLadderColor, 210, 145, 338, 230, 5) then
if not FindColorSpiralTolerance( x, y, SkeletonColor, 6, 5, 513, 336, 5) then
You can just use an else statement, like so:
Simba Code:
procedure FailedRopeSwing;
var
x, y : integer;
begin
Wait(4000);
if FindColorSpiralTolerance(x, y, SkeletonColor, 6, 5, 513, 336, 5) then
begin
WriteLn('Failed Rope Swing... Attempting to leave Dungeon');
WriteLn('Found Skeleton in Dungeon');
MakeCompass('W');
SetAngle(SRL_ANGLE_LOW);
if FindColorSpiralTolerance(x, y, GoUpSkeletonDungeonLadderColor, 210, 145, 338, 230, 5) then
begin
WriteLn('Found ladder color');
MoveMouse(x, y);
if WaitUptextMulti(['Clim', 'limb', 'Lad', 'der'], 600) then
begin
WriteLn('Found Ladder Uptext');
Mouse( x, y, 0, 0, False);
if WaitOptionMulti(['Clim', 'limb', 'b-u'], 600) then
begin
Wait(3000);
{You can call your procedure here}
end;
end;
end else
begin
WriteLn('Failed to find Ladder');
Wait(10000);
end;
end else
WriteLn('Successfully passed Rope Swing');
end;