SRL Archive - SRL Archives

My very useful fighting function --- MonsterBusy


n3ss3s

2007-04-28 15:27:46

Isnt if annoying if your autofighter clicks on busy monsters,
dont worry, heres the medicine for your pain - MonsterBusy(if it works correct)


function MonsterBusy(MonsterName:string,MonsterColor,
x1,y1,x2,y2,tol:integer):boolean;
begin
if(FindMonsterTol(x,y,MonsterName,MonsterColor,x1,y1,x2,y2,tol))then
begin
MouseSpeed:=8;
MMouse(x,y,0,0);
if(FindColor(x, y, 65280, x-200, y-200, x+200, y+200))
or FindColor(x, y, 255,x-200, y-200, x+200, y+200)) then
begin
result:=true;
end;
end;
end;
if people like this i will update.

Bobarkinator

2007-04-28 16:58:26

I like it. I hate when a fighting script goes and clicks on an already fighting monster.

But where you have x and y adding 200 and subtracting 200 that seems to big. I might catch something else in that.

n3ss3s

2007-04-29 03:51:15

Oops, my bad :D I'll update it a bit and release again