SRL Archive - Help

Help me : fast fighter


amini

2011-11-24 14:55:20

Well I made the set up the bot so it kills cows with these colors 6580596,9413306,4151136 and in the thing it says this:

Warning! You passed a wrong ys to a finder function: -19. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -14. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -24. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -13. That is below 0, thus out of bounds. Setting the value to 0 for now.

And it doesn't click on the cows but instead right clicks and doesn't attack them

Why does it do that and how do i fix it?:fiery:
No trolls please im new

matviy

2011-11-24 15:00:25

Did you drag the crosshair over the runescape window?

There should not be any negative coordinates. You're getting negatives for some reason.

i luffs yeww

2011-11-24 15:24:02

Show us the script, please.

Gu3st...

2011-11-24 15:43:58

If you're using a script that you found and downloaded on this website, then please post in that thread instead.

Narcle

2011-11-24 18:57:06

From: Zyt3x
If you're using a script that you found and downloaded on this website, then please post in that thread instead.


^ this

Also I've looked and looked this is from a function in SRL that I (or someone) needs to fix. Pretty sure its IsFightAt(x,y) that does it. Plus that error will not do anything, its more of a hint then an error.

i luffs yeww

2011-11-25 05:23:56

From: Narcle
^ this

Also I've looked and looked this is from a function in SRL that I (or someone) needs to fix. Pretty sure its IsFightAt(x,y) that does it. Plus that error will not do anything, its more of a hint then an error.



function IsFightAt(var X, Y: Integer): Boolean;
var
HPBarCorner, w, h: Integer;
begin
HPBarCorner := DTMFromString('78DA6364646060606540051A108A11CA6504315888' +
'50C34C841A26026A988854C348400D33116A588850C34A841A36C26A0046A001D4');
GetClientDimensions(w, h);
if ((x - 30) < 0) then x := 0;
if ((y - 30) < 0) then y := 0;
if ((x + 30) > w) then x := w;
if ((y + 30) > h) then y := h;
Result := FindDTM(HPBarCorner, X, Y, X - 30, Y - 30, X + 30, Y + 30);
FreeDTM(HPBarCorner);
end;

Would fix it, I think. Not that it really matters, but meh.