1: If the function finds the object, it will store the coordinates in the variables x,y.
Code:
If(FindObject(x,y,--
2: Now this part searchs for the Uptext the object produces upon mouseover(When you move the mouse over the object, text appears in the upper-left corner of rs = uptext fyi.) In this case: 'Rock'(It has the single quotes around it because its a string of course
)
Code:
If(FindObject(x,y, 'Rock'--
3: Now you are looking for color, and of course with the new Runescape engine made by JaGeX, You will not be able to use the same color every time, So you will definetly need a tolerance level of above 10. So now it should look like this:
Code:
if(FindObj(x,y, 'rock', 234965, 15)
4: Now what this complete function will do is: If it finds a object on the RS mainscreen, with the color of 234965 and a Tolerance of 15. Now you are stuck here, what do you need? First you need to close your round (Add another ) at the end). Secondly you need to do something if this actually happens(finding the rock) So now you are going to add a then after the close round. Now it should look like this:
Code:
if (FindObj(x,y, 'rock', 234965, 15)) then
After this you will need to execute some code, such as, if you want to click on the rock, then do this:
Code:
if (FindObj(x,y, 'rock', 234965, 15)) then
mouse(x,y,0,0,true);
If this code finds the object, then it will move the mouse and click where the coordinates were stored(X and Y variables) by the findobj function.
That should get you somewhere. Best of luck to your scripting. 
PS: I wrote this before bed, so if it still doesnt make sense or I messed up somewhere, just post that you dont understand, and Ill make a better post on the weekend
.