Hey guys ,
I was wandering if someone can help me with my problem;
I use FindObjCustom to find my rock that I want to mine and in this case its iron rocks..in varrock east mines. What the problem is that it keeps clicking things that are the close to the color but its not clicking rocks, its clicking the ground. And not only that, it's suprisingly also getting confused with the magic game tab and clicking that..How can I make my script ONLY click the rock with that color and not anything else with a similar color? I tried to reduce the tolerance MUCH as possible. Here is the part of the script that messes up...and can you guys also tell me if the Getblacktextmessage will actually work in this script?
Please be detailed as much as possible!
Thanks ALL help would be repped and aappreciated!!
Here is the part of the script that messes up (as mentioned above);
SCAR Code:
procedure ClickRock;
begin
Replylaugh;
if not FindObjCustom(x, y, ['ocks', 'ine'], [3030370], 3)then
wait(950 +random(200));
if FindObjCustom(x, y, ['ocks', 'ine'], [3030370], 3)then
Mouse(x, y, 1, 1, True);
Makesurepick;
FindGas;
Leveled;
Myrandom;
end;
procedure MinedaRock;
var MiningTime : integer;
begin
MakeCompass('N');
SetAngle(True);
repeat
if Not(LoggedIn) then exit;
ClickRock;
MarkTime(MiningTime);
repeat
Wait(250);
until FindBlackChatMessage('anage') or FindBlackChatMessage('vailable') or (timefrommark(MiningTime) > (WaitperRock +random(250)));
until InvFull;
if InvFull then
begin
writeln( 'Inventory Full walking to bank.' );
end;
end;