SRL Archive - Help

Need Script Help


Gucci

2012-02-09 20:55:21

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

2012-02-09 21:34:13

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

2012-02-09 21:41:52

mine color of the ore, not the color of the rock. look through my M1D1 power miner and see how i did it.

Gucci

2012-02-09 22:17:23

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

2012-02-09 22:52:37

I am using the color of the ore not the rock