ok i removed but when i use the code it just spam clicks and i get this error when i stop the
script:
The following DTMs were not freed: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58]
and this is my simba code:
program GhostKilling;
{$i srl/srl.simba}
procedure AttackMonster;
var HealthBar, X, Y: Integer;
begin
repeat
HealthBar := DTMFromString('mwQAAAHic42RgYJBhgABzKBuEGaHYDIqZkTAIsCHRcPYEBgYhISG8mBjASASGAwCmnANt');
If FindDtm(HealthBar, X, Y, MSX1, MSY1, MSX2, MSY2)
Then Wait(300)
else
begin
if findcolortolerance(x, y, 10786969, MSX1, MSY1, MSX2, MSY2, 10) then
MMouse(x, y, 5, 5);
wait(randomrange(200, 500));
ClickMouse2(mouse_Left)
end;
until False;
end;
begin
setupsrl;
AttackMonster;
end.