Simba Code:
Procedure AlchingTheHerbs;
Begin
//Removed line
wait(randomrange(400,500));
if FindDTM(CleanHerbDTM, x, y, MIX1, MIY1, MIX2, MIY2) then
Begin
wait(randomrange(100,150));
MMouse(X, Y + 3, 0, 0);
Writeln ('Found Clean herb, Clicking.'); //added ;
wait(randomrange(100,150));
ClickMouse2(true);
wait(randomrange(400,500));
//removed line
end;
end;
The loop:
Simba Code:
CleanHerbDTM := DTMFromString('mLgAAAHicY2JgYAhiYmAIBeJERgaGOCDWN9Fg0NCTZ2AGyoEwIxQzMAAASwgCdw=='); //added line
repeat
HighAlchItem;
wait(randomrange(400,500));
AlchingTheHerbs;
until (not FindDTM(CleanHerbDTM, x, y, MIX1, MIY1, MIX2, MIY2)); //added )
FreeDTM(CleanHerbDTM); //added line
I'm sure it was needed. The DTM wasn't loaded when you called it in the until loop cause you freed them earlier. An identifier expected error mostly occurs when you forgot a ; the previous line.
Edit:
Try it again.