I am working on a power miner script and it runs well but it keeps clicking the rock even when it isn't there. How do I fix this?
I would prefer not to post the code publicly here so request for it through PM if you are going to help.
I am working on a power miner script and it runs well but it keeps clicking the rock even when it isn't there. How do I fix this?
I would prefer not to post the code publicly here so request for it through PM if you are going to help.
If the uptext changes when you hover over it, you could use that. If not try looking for the color of the ore, not the actual rock itself (ex: the blue of the mithril rock, not the surrounding brownish area)
Or, post the code and we could help you further. You don't have to post the entire script, just the segment that finds the rock.
mine color of the ore, not the color of the rock. look through my M1D1 power miner and see how i did it.
This is my mining procedure
Simba Code:
procedure RockMining;
begin
if not LoggedIn then
Exit;
if (not (FindObjCustom(x, y, ['ine', 'ock'], [RockColor1, RockColor2], 5))) then
Wait(100+random(100));
Tries := Tries + 1;
if(Tries = 35)then
begin
Logout;
Exit;
end else
if FindObjCustom(x, y, ['ine', 'ron', 're', 'ock'], [RockColor1, RockColor2], 5) then
repeat
case (Random(2)) of
0: Mouse(x, y, 4, 4,false);
1: ChooseOption('ine');
2: Mouse(x, y, 4, 4, True);
end;
until (InvFull)
end;
I am using the color of the ore not the rock
There are currently 1 users browsing this thread. (0 members and 1 guests)