Log in

View Full Version : Help me : fast fighter



amini
11-24-2011, 07:55 PM
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
11-24-2011, 08:00 PM
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
11-24-2011, 08:24 PM
Show us the script, please.

Zyt3x
11-24-2011, 08:43 PM
If you're using a script that you found and downloaded on this website, then please post in that thread instead.

Narcle
11-24-2011, 11:57 PM
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
11-25-2011, 10:23 AM
^ 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('78DA6364646060606540051A108A11CA650 4315888' +
'50C34C841A26026A988854C348400D33116A588850C34A841 A36C26A0046A001D4');
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.