nice script, working fine
the only problem that sometimes it walks to third rock and if it gets full inventory there then the dungeon entrance might be out of view so it just stands there looping, my suggestion is to change EnterResource function a little bit making it walk back toward the entrance, I have not fully tested it, it does left clicks fine, but in case there is a lvl 32 scorpion it should use right click
Simba Code:
function EnterResource: boolean;
var
CompasAng3: Extended;
begin
if (ClickObject(2175656, 4079680, 25, 25, 5, 'yster', 'nter', false)) then
begin
result := true;
end else
begin
Writeln('failed to find entrance');
CompasAng3 := rs_GetCompassAngleDegrees;
if ((CompasAng3 > 20) and (CompasAng3 < 340)) then
ClickNorth(0);
MMouse(200, 224, 20, 20);
if (not IsUpText('alk')) then
begin
Writeln('right clicking walk');
ClickMouse2(mouse_right);
ChooseOption('alk');
end else
ClickMouse2(mouse_left);
end;
end;