SRL Archive - Help

Error: Exception: You passed a wrong xs to a finder function: -10. That is below 0, t


rj

2012-12-17 18:53:15

Attempted to add a failsafe, it is suposed to detect the color in a box around the mouse and not continue until the value is returned false.

(FindColorTolerance(X, Y, 3881792, x-10, y-10, x+10, y+10, 15)=false)

Ian

2012-12-17 18:57:31

You're trying to find the color of an area that is not on the client. Use different coords.

Google

2012-12-17 19:21:56

This error always occurs because the coordinates are off where its searching it has to be almost exact(when using findcolortolerance).

riwu

2012-12-17 19:28:50

From: rjj95
Attempted to add a failsafe, it is suposed to detect the color in a box around the mouse and not continue until the value is returned false.

(FindColorTolerance(X, Y, 3881792, x-10, y-10, x+10, y+10, 15)=false)

The x,y value of the search argument should be from GetMousePos(), and your X, Y should be a different variable name to differentiate b/w the 2 (remember that Pascal is not case sensitive–other than strings).

Why do you have a ')=false' at the end?

rj

2012-12-17 19:49:47

I'm just going to use pixel shift to detect when player is done mining :s

Ian

2012-12-17 19:52:57

From: rjj95
I'm just going to use pixel shift to detect when player is done mining :s


Use InvCount as well, it's more accurate (when you get the ore that is).

rj

2012-12-17 19:55:27

From: BMWxi
Use InvCount as well, it's more accurate (when you get the ore that is).


Can it be used for a pserver?

Ian

2012-12-17 20:10:54

From: rjj95
Can it be used for a pserver?


I just looked in the includes and yeah it should work as long as
srl_outline_black
works, which it should if the items in the rsps have a black outline. Note all my assumptions, it would probably be worth a shot to try it :)

Rezozo

2012-12-17 20:40:05

From: BMWxi
I just looked in the includes and yeah it should work as long as
srl_outline_black
works, which it should if the items in the rsps have a black outline. Note all my assumptions, it would probably be worth a shot to try it :)


This^^^.
Give it a try and re-post.
~Rez