SRL Archive - Help and Support

Hmm any suggestions?


WhiteShadow

2006-12-01 23:41:12

Hi guys,

Well I'm doing a little chopping project and I can't seem to find a good way to wait till a tree gets wholly chopped.

Wait(10000 + random(5000)); 
Hate using just Wait. It's not accurate enough for me sometimes it waits to long sometimes it makes your chop last longer. I don't know, I like perfection.

  MarkTime(TMark);
repeat
if(TimeFromMark(TMark)> MaxMark)then Exit;
Status('Tree waiting..');
if(not(LoggedIn))then Exit;
Wait(100);
until(InChatMulti('get', 'log', 'adv')) or (not(LoggedIn))
Only works for normal trees, so that sucks too.

 repeat
Status('Tree waiting..');
for i:= 0 to 3 do
begin
if(not(FindColorTolerance(x, y, MsTree.Color[i], MsTree.Box[0], MsTree.Box[1], MsTree.Box[2], MsTree.Box[3], 0)))then
begin
Status('TreeColor not found');
Gone:= Gone + 1;
end else
MMouse(x, y, 0, 0);
end;
if(TimeFromMark(TMark)> MaxMark)then Exit;
Wait(100);
FindRandoms;
Wait(100);
FindWCRandoms(Texti, 'own');
Wait(100);
ClickToContinueFast;
Wait(100);
if(not(LoggedIn))then Exit;
Wait(100);
until(Gone >= 3) or (not(LoggedIn))

I made something like this, it checks for the tree color (0 tolerance) and if it doesn't find it in the box the tree is no longer there. The box is sometimes to big and sometimes to small. ;( Trees also have the same colors.

Out of ideas. Help pl0x?

_ChArMz

2006-12-02 00:10:33

I was trying to do something like this for my willow chopper, i have no idea, its like fishing spots :S, but anyway y are u starting a new project :eek:

:D