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?
2012-12-14 04:04:18
2012-12-14 04:13:08
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 not (Chopping) then
begin
**Find next tree procedure\function here***
**other sutff**
end;
2012-12-14 19:12:03
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; 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
2012-12-17 10:50:53
Procedure Chop;
begin
Findtree;
Choptree;
If (isChopping) then
repeat
Wait(5000);
until not (isChopping);
end;
2012-12-17 11:20:44
repeat until not isMoving;
2012-12-17 13:18:58
From: WT-Fakawi
or you might try this:repeat until not isMoving;
2012-12-17 15:06:42