SRL Archive - OSR Help

out of bounds


f1fanatic

2012-03-25 12:48:53

using smart and I get this error

Warning! You passed a wrong xs to a finder function: -16. 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: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.


my code is this

 FindColorTolerance(x,y,2255975,MSX1, MSY1, MSX2, MSY2,6)
Mouse(x, y, 4, 4, True);

it managed to find the colour I want but doesn't left click on it.

Gucci

2012-03-25 12:59:08

Don't worry about the warning it just means it was looking outside of the mainscreen for the color and shouldn't be a problem but for a left click does the mouse hover over the object?

f1fanatic

2012-03-25 12:59:52

yea it hovers over the npc but doesn't click it

NKN

2012-03-25 14:39:06

You could try turning up the tolerance, or down.
I had the same problem with it also, and adjusting the tolerance fixed it for me.

f1fanatic

2012-03-26 02:38:51

yes this fixed it for me I changed the tolerance to 6 thanks for all the help guys