MoveMouse is called if you supply x y coords (they are not verified to be within the limits of your current resolution), or at the end of parsemouseloc ONLY IF you supplied a valid location. Otherwise it dumps an error message and does not try to move the mouse.
It would be better to compute the area you want to click in within your macro function and just call click with the computed x and y locations if you are trying to click everywhere within an area until you either complete the area finding nothing or something shows up on the cursor.
Doing this manually a few times you can readily establish what are of the screen to look for the item in and then code it into your macro.
If you manually position the mouse and then do
/echo Mouse is at $mouse(x) $mouse(y)
you can find use these returned values at the spots at 4 corners around the spawn and again in the middle of the spawn itsself. Do this a few times after having the above macro run up to the item and verify they always fall within a certain small bounding rectangle.
Once you establish the bounding rectangle just use a loop and click at intervals within that rectangle until you find the item or run out of rectangle. Ideally you should be in the overhead view so you are looking straight down and the item should be directly in front of you, only real issue is how far in front. This will vary by viewport size, location, resolution but will be consistant for a particular setup.


