Simba Code:
{
-------------------------------VALID MONSTERS---------------------------------
-skeleton,ghost,warewolf,dwarf,bat,druid
If you want more added ask me on thread. some are not reliable such as guards.
DO NOT WEAR A FIGHTER TORSO IF YOU ARE FIGHTING SKELETONS
}
Program autofight;
{$i srl/srl.simba}
const
time = 2; // in seconds
monsterkill = ('ghost');
breaking = ('Yes');
minbreaktime = 4;
maxbreaktime = 9;
breakrate = 200;
hpbarx = 213;
hpbary = 90;
hpbarx2 = 335;
hpbary2 = 201;
//status1 = ('waiting to get out of combat')
//status2 = ('Attacking ')
var
hpbar,skelet,ghost,dwarf,druid,bat,warewolf,kills,t,outcome,bitch: Integer;
resulte,qtab,invtab:Integer;
status:string;
procedure breakin;
var
X, Y: Integer;
begin
outcome := Random(breakrate);
bitch := (maxbreaktime*60000)-(minbreaktime*60000);
resulte := Random(bitch)
if outcome = 1 then
begin
TypeSend('brb afk');
Wait(1100 + Random(500));
if FindDTM(qtab, x, y, 536, 194, 755, 225) then
begin
mmouse(x, y,1,1);
Wait(1450 + Random(50));
ClickMouse(x, y, mouse_Left);
if FindColorTolerance(X,Y,3424328,563,247,639,257,15) then
begin
mmouse(x, y,1,1);
Wait(350 + Random(50));
ClickMouse(x, y, mouse_Left);
if FindDTM(qtab, x, y, 536, 194, 755, 225) then
begin
mmouse(x, y,1,1);
Wait(350 + Random(50));
ClickMouse(x, y, mouse_Left);
begin
wait(minbreaktime+resulte)
end;
end;
end;
end;
end;
end;
procedure CheckCombat;
var
X, Y: Integer;
begin
ClearDebug;
status := ('Waiting to get out of combat.');
writeln('Status:' + status + monsterkill + '.');
Writeln('Kills:' + Tostr(kills));
Writeln('Time running: ' + IntToStr(Round(t/3600))+ ':' + IntToStr(Round(t/60))+ ':' + IntToStr(Round(t)));
Wait((time * 500) + Random(1000));
begin
repeat
until (FindDTM(hpbar, x, y, hpbarx, hpbary, hpbarx2, hpbary2)=false);
end;
IncEx(kills, 1);
breakin;
end;
procedure ClickWarewolf;
var
X, Y: Integer;
begin
if FindDTM(warewolf, x, y, 4, 6, 512, 333) then
begin
ClearDebug;
status := ('Attacking ');
writeln('Status:' + status + monsterkill + '.');
Writeln('Kills:' + Tostr(kills));
Writeln('Time running: ' + IntToStr(Round(t/3600))+ ':' + IntToStr(Round(t/60))+ ':' + IntToStr(Round(t)));
MouseSpeed:=45;
mmouse(x, y,1,1);
Wait(20 + Random(50));
ClickMouse(X, Y, Mouse_Left);
Wait(1800 + Random(500));
CheckCombat;
end;
end;
procedure ClickBat;
var
X, Y: Integer;
begin
if FindDTM(bat, x, y, 4, 6, 512, 333) then
begin
ClearDebug;
status := ('Attacking ');
writeln('Status:' + status + monsterkill + '.');
Writeln('Kills:' + Tostr(kills));
Writeln('Time running: ' + IntToStr(Round(t/3600))+ ':' + IntToStr(Round(t/60))+ ':' + IntToStr(Round(t)));
MouseSpeed:=45;
mmouse(x, y,1,1);
Wait(20 + Random(50));
ClickMouse(X, Y, Mouse_Left);
Wait(1800 + Random(500));
CheckCombat;
end;
end;
procedure ClickDruid;
var
X, Y: Integer;
begin
if FindDTM(druid, x, y, 4, 6, 512, 333) then
begin
ClearDebug;
status := ('Attacking ');
writeln('Status:' + status + monsterkill + '.');
Writeln('Kills:' + Tostr(kills));
Writeln('Time running: ' + IntToStr(Round(t/3600))+ ':' + IntToStr(Round(t/60))+ ':' + IntToStr(Round(t)));
MouseSpeed:=45;
mmouse(x, y,1,1);
Wait(20 + Random(50));
ClickMouse(X, Y, Mouse_Left);
Wait(1800 + Random(500));
CheckCombat;
end;
end;
procedure ClickDwarf;
var
X, Y: Integer;
begin
if FindDTM(dwarf, x, y, 4, 6, 512, 333) then
begin
ClearDebug;
status := ('Attacking ');
writeln('Status:' + status + monsterkill + '.');
Writeln('Kills:' + Tostr(kills));
Writeln('Time running: ' + IntToStr(Round(t/3600))+ ':' + IntToStr(Round(t/60))+ ':' + IntToStr(Round(t)));
MouseSpeed:=45;
mmouse(x, y,1,1);
Wait(20 + Random(50));
ClickMouse(X, Y, Mouse_Left);
Wait(1800 + Random(500));
CheckCombat;
end;
end;
procedure ClickGhost;
var
X, Y: Integer;
begin
if FindDTM(ghost, x, y, 4, 6, 512, 333) then
begin
ClearDebug;
status := ('Attacking ');
writeln('Status:' + status + monsterkill + '.');
Writeln('Kills:' + Tostr(kills));
Writeln('Time running: ' + IntToStr(Round(t/3600))+ ':' + IntToStr(Round(t/60))+ ':' + IntToStr(Round(t)));
MouseSpeed:=45;
mmouse(x, y,1,1);
Wait(20 + Random(50));
ClickMouse(X, Y, Mouse_Left);
Wait(1800 + Random(500));
CheckCombat;
end;
end;
procedure ClickSkeleton;
var
X, Y: Integer;
begin
if FindDTM(skelet, x, y, 4, 6, 512, 333) then
begin
ClearDebug;
status := ('Attacking ');
writeln('Status:' + status + monsterkill + '.');
MouseSpeed:=25;
mmouse(x, y,1,1);
Wait(20 + Random(50));
ClickMouse(X, Y, Mouse_Left);
Wait(1800 + Random(500));
CheckCombat;
end;
end;
procedure Chooseproc;
begin
if monsterkill = ('ghost') then
begin
ClickGhost;
end;
if monsterkill = ('skeleton') then
begin
Clickskeleton;
end;
if monsterkill = ('bat') then
begin
ClickBat;
end;
if monsterkill = ('druid') then
begin
ClickDruid;
end;
if monsterkill = ('warewolf') then
begin
Clickwarewolf;
end;
if monsterkill = ('dwarf') then
begin
Clickskeleton;
end;
end;
var
X,Y,s: Integer;
begin
t := GetTimeRunning div 1000+1;
skelet := DTMFromString('mLgAAAHicY2JgYIhjZGCIBuK9QPZJIO7paWJoaqpk4ASyQZgRihkYAJb8BW8=');
ghost := DTMFromString('mLgAAAHicY2JgYLgKxDeAuB6Im4F43twlDDNnLmFgAbJBmBGKGRgAuZgGcQ==');
druid := DTMFromString('mLgAAAHicY2JgYChiZGAoAOIdQPZWIJ6R5s6wd/MMBhYgG4QZoZiBAQCdPQWr');
bat := DTMFromString('mLgAAAHicY2JgYEhhZGDIAOJlQPZSIC7ITGcozc1hYAGyQZgRihkYAIVaBLQ=');
dwarf := DTMFromString('mLgAAAHicY2JgYIhihOBgEBuIm6uqGFq0FBlYgWwQZoRiBgYAaUADuA==');
warewolf := DTMFromString('mLgAAAHicY2JgYFjEyMCwDIhNgdgIiA3UxBh83WwY2IFyIMwIxQwMAF3WAwE=');
hpbar := DTMFromString('mLgAAAHicY2JgYLBjZGAIAuIOIO4E4pZjQLEdDAzsDBDMCMUMDABvpgP4');
qtab := DTMFromString('mbQAAAHicY2VgYEhnYmDIBuI8IE4G4jQgPgMUvwTEp4H4AhAfA+KGyd8YUqv+MXz/ehiOuYDi6JgRCwYDAJvSEkI=');
invtab := DTMFromString('mbQAAAHicY2VgYOhiYmCYDMQTgLgNiFuA+CxQ/AQQXwLiy0B8HIhleFgZkoyFGdxUBMDYTIGTgQsojo4ZsWAwAADC7gkn');
repeat
ClearDebug;
Chooseproc;
until False;
Freedtm(skelet);
Freedtm(hpbar);
Freedtm(ghost);
Freedtm(druid);
Freedtm(bat);
Freedtm(dwarf);
Freedtm(warewolf);
Freedtm(qtab);
Freedtm(invtab);
end.