SRL Archive - OSR Help

Is my finding objects procedure good or no?


wazzzup

2012-03-20 19:18:12

Procedure MineRune1;
begin
if FindObjCustom(x, y, ['une', 'e or'], [12564883, 15590304], 5) then
repeat
MMouse(x, y, 4, 4);
wait(200+random(300));
Mouse (x, y, 1, 1,true);
wait(7000+random(400));
until
FindBlackChatMessage('runite') or not FindObjCustom(x, y, ['une', 'e or'], [12564883, 15590304], 5);
end;

I dont know what work I need, this seems more stable than dtms, as I have tested both.

Nebula

2012-03-20 19:24:28

I'd put this before FindObjCustom to make the script search from the center of your screen out:

x := MSCX;
y := MSCY;

wazzzup

2012-03-20 19:27:49

Great idea thank you! If all goes well I should have a rune ore miner in the resource dun under fally

begginer

2012-03-20 19:29:21

Just use it before begin. Looks nice to me.

Nebula

2012-03-20 19:36:10

It wouldn't work if you put it before begin. It would be best if it looked like this:


Procedure MineRune1;
begin
x := MSCX;
y := MSCY;
if FindObjCustom(x, y, ['une', 'e or'], [12564883, 15590304], 5) then
repeat

Littellj

2012-03-22 21:32:05

I don't know if i'm reading your code right but it's set to repeat clicking on the ore every ~9 secs. Which might not be a problem, most people do click on the ore. But if it happens everytime, it might get a little suspicious.