Log in

View Full Version : Need Script Help



Gucci
02-10-2012, 01:55 AM
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. ;)

Nebula
02-10-2012, 02:34 AM
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.

x[Warrior]x3500
02-10-2012, 02:41 AM
mine color of the ore, not the color of the rock. look through my M1D1 power miner and see how i did it.

Gucci
02-10-2012, 03:17 AM
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;

Gucci
02-10-2012, 03:52 AM
I am using the color of the ore not the rock