From: i luffs yeww
Dude. :p This is exactly what I was talking about.
while not(GetColor(x, y) = 1245622) do
Wait(Random(100));
TypeSend(ToStr(27 + Random(72)));
Where x and y are a coordinate of a black pixel of the text when it asks you how many you want to cut (or deposit, etc.; it's all the same idea), and 1245622 is the actual color of that point.
This script is pretty hard for me xD Also when it puts my knife in as well as my bows. I only want it to put in bows? But for some reason it puts everything in my inventory in the bank? Here is the full script:
program foozyfletcher;
{$Define SMART}
{$i SRL/SRL.scar}
var LogDTM, LongBowDTM: Integer;
const
SMART_WORLD = 152; // World to load
SMART_MEMBERS_WORLD = True; // True = Members world
procedure DeclarePlayers;
begin
NumberOfPlayers(1);
with Players[0] do
begin
Name := '';
Pass := '';
Nick := '';
Active := True;
Players[0].BoxRewards := ['Xp', 'mote', 'ostume', 'oins', 'aphire', 'ssence'];
end;
end;
procedure LoadDTMs;
begin
LogDTM := DTMFromString('78DA63CC636660C8626440068E56220CFC401' +
'A26CA580B545382AA86818109220753930C549349404D3A504D0D' +
'0135E54035A9F8D5000038480519');
LongBowDTM := DTMFromString('78DA6394606160C861644006B326E833F0036' +
'990E87F20605406AAA94655C3C0C0042661A28C5C40358904D488' +
'01D5A4E157030024440790');
end;
procedure FreeDTMs;
begin
FreeDTM(LogDTM);
FreeDTM(LongBowDTM);
end;
function OutOfLogs: Boolean;
var x, y: Integer;
begin
if (not FindDtm(LogDTM, x, y, MIX1, MIY1, MIX2, MIY2)) then begin
Result := True;
end else begin
Result := False;
end;
end;
function OutOfLogs2: Boolean;
var x, y: Integer;
begin
if (not FindDtm(LongBowDTM, x, y, MIX1, MIY1, MIX2, MIY2))then begin
Result := True;
end else begin
Result := False;
end;
end;
procedure Banking;
begin
OpenBankFast('veb'); // Opens Bank
Wait(300+Random(300));
MouseBox(55, 103, 47, 115, 2); // Clicks Logs
Wait(300+Random(300));
ChooseOption('All');
Wait(300+Random(300));
CloseBank;
end;
procedure Cutting;
var x, y: Integer;
begin
InvMouse(1,1);
Wait(300+Random(100));
if (FindDTM(LogDTM, x, y, MIX1, MIY1, MIX2, MIY2)) then begin
Mouse(x, y, 3, 3, False);
Wait(300+Random(100));
ChooseOption('se Kni');
Wait(900+Random(900));
MouseBox(264, 408, 274, 419, 2);
Wait(800+Random(800));
ChooseOption('X');
Wait(300+Random(300));
TypeSend(IntToStr(RandomRange(27, 99)));
Wait(700+Random(700));
end;
repeat
Wait(300+Random(300));
FindNormalRandoms;
until(OutOfLogs);
end;
procedure PutInBank;
var x, y: Integer;
begin
OpenBankFast('veb');
Wait(300+Random(300));
if (FindDTM(LongBowDTM, x, y, MIX1, MIY1, MIX2, MIY2)) then
Mouse(x, y, 3, 3, False);
ChooseOption('All');
end;
begin
Smart_Server := SMART_WORLD;
Smart_Members := SMART_MEMBERS_WORLD;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
DeclarePlayers;
LogInPlayer;
LoadDTMs;
repeat
Banking;
Cutting;
PutInBank;
until(False);
FreeDTMs;
end.