SRL Archive - OSR Help

Click it if im not moving


IsoMorphic

2012-12-14 04:04:18

How can I use pixel shift or something to make sure I clikc the tree if im not moving?

IsoMorphic

2012-12-14 04:13:08

would this work?

or (Chopping = false);

Function Chopping: Boolean;
var
PBox: TBox;
begin
PBox := IntToBox(245, 130, 285, 195);
Result := (AveragePixelShift(PBox, 250, 500) > 400);
end;

Justin

2012-12-14 04:49:06

From: fisherblue23
would this work?

or (Chopping = false);

Function Chopping: Boolean;
var
PBox: TBox;
begin
PBox := IntToBox(245, 130, 285, 195);
Result := (AveragePixelShift(PBox, 250, 500) > 400);
end;


If the Chopping boolean has the correct box and pixelshift limit, this should work.

if not (Chopping) then
begin
**Find next tree procedure\function here***
**other sutff**
end;

IsoMorphic

2012-12-14 19:12:03

Does anyone know how to make the box and stuff its so confuusing

xtrapsp

2012-12-17 08:24:16

Function Woodcut: Boolean;
var
PBox: TBox;
begin
PBox := IntToBox(245, 130, 285, 195);
Result := (AveragePixelShift(PBox, 500, 650) > 400);
Writeln(IntToStr(AveragePixelShift(PBox, 500, 650)));
end;

If you look at where it says Pbox, that is the dimensions around the character, I believe it goes

Top left, Top right, Bottom left, Bottom right

DannyRS

2012-12-17 08:42:02

From: xtrapsp
Function Woodcut: Boolean;
var
PBox: TBox;
begin
PBox := IntToBox(245, 130, 285, 195);
Result := (AveragePixelShift(PBox, 500, 650) > 400);
Writeln(IntToStr(AveragePixelShift(PBox, 500, 650)));
end;

If you look at where it says Pbox, that is the dimensions around the character, I believe it goes

Top left, Top right, Bottom left, Bottom right


think its just the top left x and y, then bottom right x and y :)

___

2012-12-17 10:50:53


Procedure Chop;
begin
Findtree;
Choptree;
If (isChopping) then
repeat
Wait(5000);
until not (isChopping);
end;

Made this away from Simba so haven't tested, but something like that is basic and may work for you.

WT-Fakawi

2012-12-17 11:20:44

or you might try this:
repeat until not isMoving;

___

2012-12-17 13:18:58

From: WT-Fakawi
or you might try this:
repeat until not isMoving;


Sort of what I had. But isn't isMoving more of a generalized pixelshift that would be better replaced by isChopping?

WT-Fakawi

2012-12-17 15:06:42

afaik: ismoving returns true if the minimap is not moving.