Stop mouse from searching in a specified area?
Im writing a bone collector + burier for the chicken pens, but when it is looking for the bones on the ground...
SCAR Code:
Procedure FindBones;
begin
repeat
repeat
FindMSColorTol(x,y,boneColor,2)
MMouse(x,y,0,0)
wait(10+random(10));
until(isUpText('ake'))
Mouse(x, y, 2, 2, False);
Wait(150 + Random(100));
ChooseOption(x,y,'ones')
Flag;
Wait(100+Random(150));
until(InvFull)
end;
It is constantly searching the chickens and peoples hair, generally ignoring the bones. My question is:
Is it possible for scar not to move the mouse to a location to see what the up text is for something similar to the following?
SCAR Code:
repeat
FindMSColorTol(x,y,boneColor,2)
if (an area 10 by 10 around x,y is in the array dont bother moving the mouse to check for up text and try and find the color again, but with the uptext.)
MMouse(x,y,0,0)
wait(10+random(10));
if (not(isUpText('ake'))) then
add the x,y coords to an array
until(isUpText('ake'))
unless someone has a better way to differentiate items on the ground to monsters. I have seen others use bmp's, but i don't know how that would work, if the item is obscured.