thanks buddy but i tried that and i get a syntax error after the first one… i dont understand why
here is the script: its for a private server so dont worry that its shitty
program Yakkiller;
{$i SRL/SRL.scar}
{$i SRL/SRL/skill/fighting.scar}
var
x,y:Integer;
const
Monster = 5670586;
Monster1 = 2568773;
Monster2 = 3489360;
AttTime = 1500;
XpCounter = 65860;
BlueCharm = 6381337;
Tolerance = 3;
Charm = 1413553;
Charm1= 2567019;
Charm2 = 936301;
Charm3 = 3885893;
Charm4 = 7576747;
Charm5 = 1101698;
Procedure AttackYak;
begin
if(FindColorSpiralTolerance(x, y, Monster, MSX1, MSY1, MSX2, MSY2, 5))then
begin
Mouse(x, y, 3, 3, True);
wait(5000)
end;
end;
Procedure WaitWhileFighting;
var FightTimer:integer;
begin
MarkTime(FightTimer);
if srl_InFight then
begin
repeat
wait(0);// This loop keeps checking if your in a fight for a maximum of 1 minute then quits
until(srl_InFight = False)or (TimeFromMark(FightTimer) > 1 * 60000)
end;
end;
Procedure Pickupdrop;
begin
if(FindColorSpiralTolerance(x, y, Charm, MSX1, MSY1, MSX2, MSY2, 5) or
if(FindColorSpiralTolerance(x, y, Charm1, MSX1, MSY1, MSX2, MSY2, 5) or
if(FindColorSpiralTolerance(x, y, Charm2, MSX1, MSY1, MSX2, MSY2, 5) or
if(FindColorSpiralTolerance(x, y, Charm3, MSX1, MSY1, MSX2, MSY2, 5) or
if(FindColorSpiralTolerance(x, y, Charm4, MSX1, MSY1, MSX2, MSY2, 5) or
if(FindColorSpiralTolerance(x, y, Charm5, MSX1, MSY1, MSX2, MSY2, 5) then
begin
Mouse(x, y, 0, 0, true); //If found will Left-Click on the x, y coordinates with a randomness between 5 pixelend
end;
end;
procedure main;
begin
repeat
AttackYak;
WaitWhileFighting;
Pickupdrop;
until(false)
end;
begin
ClearDebug;
SetUpSrl;
ActivateClient;
main;
end.