SRL Archive - First Scripts

Runescape Private Server Auto Fighter


hogan

2012-01-01 18:17:58

The script isnt done, at the moment it just spam clicks everything. I need some help on these few things,

- Recognizing a monster is already in combat
- Waiting for the monster to be killed
- Maybe better looting but im not sure

Anyone who helps will be credited:
- CRU1Z1N

Also remember that it is a private server so Smart commands will not work:

program Yakkiller;
{$i SRL/SRL.scar}
var
x,y:Integer;

const
Monster = 2699326;
Monster1 = 2568773;
Monster2 = 3489360;
AttTime = 1500;
XpCounter = 65860;
BlueCharm = 9013070;

Procedure AttackYak;
begin
if(FindColorSpiralTolerance(x, y, Monster, MSX1, MSY1, MSX2, MSY2, 4)) then
begin Mouse(x, y, 3, 3, True);
wait(500)
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;

procedure main;
begin
repeat
AttackYak;
Pickupdrop;
until(false)
end;
begin
ClearDebug;
SetUpSrl;
ActivateClient;
main;
end.






MuffinMan

2012-01-01 18:47:19

Maybe should tell us the name of the Private Server?

Sebo

2012-01-01 19:29:44

It is a good attempt for a first script. I'm not sure it will work, but maybe you can make an 'IsUpText' check to make sure it is the right monster to attack? Also, make sure you never get into the habit of forming infinite loops, especially your main loop.

Side note, I'm actually working on a Near Reality Barrows Brothers Killer. Kind of excited to see how it comes out.

hogan

2012-01-01 21:58:33

I just need a better method of attacking… I cant figure out what to use because it seems all the other combat scripts i look at use commnads that i dont think i can use because this is a private server

and this is for soulsplit