hogan
2012-01-01 12:12:58
I am trying to make a private server fighter but am completely lost;
All i want it to do is Attack something wait until it is dead and then pick up its 100% drop…
Edit:
Current script;
Problem;
doesnt do anything, only slowly moves mouse in a direction across the screen
All i want it to do is Attack something wait until it is dead and then pick up its 100% drop…
Edit:
Current script;
Problem;
doesnt do anything, only slowly moves mouse in a direction across the screen
program Yakkiller;
{$i SRL/SRL.scar}
var
x,y:Integer;
const
Monster = 2699326;
Monster1 = 2568773;
Monster2 = 3489360;
AttTime = 1500;
XpCounter = 65860;
BlueCharm = 344244;
Procedure AttackYak;
begin
if FindObjCustom(x, y, ['Yak', 'ak'], [monster, monster1, monster2], 7) then
begin
Mouse(x, y, 3, 3, True);
repeat
wait(500)
until
(FindColorSpiralTolerance(x, y, XpCounter, msx1, msy1, msx2, msy2, 25)) = false
end;
end;
Procedure Pickupdrop;
begin
if(FindColorSpiralTolerance(x, y, BlueCharm, MSX1, MSY1, MSX2, MSY2, 5))then
begin
Mouse(x, y, 5, 5, true); //If found will Left-Click on the x, y coordinates with a randomness between 5 pixelend
end;
end;
Begin
Repeat
AttackYak;
Pickupdrop;
until(false)
end.