Simba Code:
program RoflmeFletcher;
{$DEFINE SMART}
{$i SRL\SRL.simba}
{$i SRL\SRL\Misc\Debug.simba}
// Thank you for using my script.
// Read thread for instructions and details.
// Also post any issues on the thread.
// THIS SCRIPT IS STILL BEING TESTED
// NOT ALL LOGS WORK
// ALL LOGS WILL WORK SHORTLY
const
BowType = 'Longbow'; // 'Longbow' or 'Shortbow' for now, will
// be adding others shortly
var
x, y, Knife, Logs, LogsCut: Integer;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
With Players[0] do
begin
Name := '';
Pass := '';
Pin := '';
Active := true;
end;
end;
Procedure AntiBan;
begin
Case Random(800) of
1: RandomRClick;
2: RandomMovement;
3..10: BoredHuman;
11..20: PickUpMouse;
21..800: Wait(500);
end;
SetAngle(SRL_ANGLE_HIGH);
Wait(350+Random(200));
end;
Procedure setDTMs;
begin
Logs := DTMFromString('mlwAAAHicY2dgYOAHYjEgFgdiaSDmZIAAJiDmhbK5gFgYiCWhalmB2NeIG6oKE/8HkrgwIx4MBQD5PQhe');
Knife := DTMFromString('mWAAAAHicY2GAAGYg5gRiISCWB2JpIBaGyvl4eDC463GBcWt9PQM/UAwZM6JhEAAAuQcEDQ==');
end;
procedure FreeDTMZ;
begin
FreeDTM(Knife);
FreeDTM(Logs);
end;
Procedure Bank;
begin
begin
repeat
SetAngle(SRL_ANGLE_HIGH);
OpenBankChest(SRL_BANK_SW);
until BankSCreen or PinScreen;
end;
if PinScreen then
begin
repeat
InPin(Players[0].Pin);
until BankScreen
end;
if BankScreen then
begin
Wait(520+random(209));
DepositAll;
Wait(305+random(107));
Withdraw(0, 0, 28);
Wait(503+random(212));
Closebank;
end;
end;
Function Options: Boolean;
begin
Result := CountColorTolerance(2070783, MCX1, MCY1, MCX2, MCY2, 10) > 200;
end;
Function NoLogs: Boolean;
begin
Result := not FindDTM(Logs, x, y, MIX1, MIY1, MIX2, MIY2);
end;
Procedure CutLog;
var
t: Integer;
begin
MarkTime(t)
repeat
if FindDTM(Logs, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
MouseItem(RandomRange(1,28), mouse_left);
WaitFunc(@Options, 10, 2000);
end;
until (Options) or (TimeFromMark(t) > 30000);
end;
Procedure FletchBow;
begin
case BowType of
'longbow':
begin
if FindText(x, y, 'ongbo', StatChars, MCX1, MCY1, MCX2, MCY2) then
Mouse(x, y, 5, 5, mouse_left)
else
begin
writeln('Can''t find option, terminating');
terminatescript;
end;
end;
'shortbow':
begin
if FindText(x, y, 'ortbo', StatChars, MCX1, MCY1, MCX2, MCY2) then
Mouse(x, y, 5, 5, mouse_left)
else
begin
writeln('Can''t find option, terminating');
terminatescript;
end;
end;
end;
while FindDTM(Logs, x, y, MIX1, MIY1, MIX2, MIY2) do
begin
AntiBan;
waitfunc(@NoLogs, 10, 2000);
end;
end;
procedure Report;
begin
ClearDebug;
Writeln('Roflme''s Fletcher');
Writeln('Logs Cut:' + IntToStr(LogsCut));
Writeln('Script has run for ' + TimeRunning);
end;
procedure MainLoop;
begin
Bank;
CutLog;
FletchBow;
end;
begin
Cleardebug;
DeclarePlayers;
Smart_Server := 1;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
SmartSetRefresh(70);
LoginPlayer;
SetAngle(SRL_ANGLE_HIGH);
SetDTMs;
repeat
MainLoop;
until(false);
FreeDTMZ;
end.