TsterT
2011-12-22 17:33:19
At the moment, I have this:
And my loop is:
Yet it doesn't bury the bones, and if it does, it only does 1, then continues back to picking up.
Function Bury: Boolean;
Var
BoneDTM, x, y : Integer;
begin
BoneDTM := DTMFromString('78DA635CCEC2C0B08F890119CC9838114C334' +
'2F98C0B806AF6A0AAD9BE613DAA9AB540353B51D5549596A2AA590F5' +
'4730855CD9AA54B50D52C06AA398EAAA6AEB212450D00F10D0FC4');
If (Not LoggedIn) Then Exit;
If Not Players[currentplayer].Active Then Exit;
if InvFull then
//if FindColorSpiralTolerance(x, y, boneDropColor, MIX1, MIY1, MIX2, MIY2, 15) then
repeat
if FindDTM(BoneDTM, x, y, MSX1, MSY1, MSX2, MSY2) then
begin
MMouse(x, y, 0, 0);
if(isUpText(bones)) then
begin
wait(200 + random(100));
Mouse(x, y, 0, 0, true);
end;
end;
until not(FindDTM(BoneDTM, x, y, MSX1, MSY1, MSX2, MSY2));
begin;
FreeDTM(BoneDTM);
buryCount := buryCount + 1;
xpGained := xpGained + 5;
end;
end;
And my loop is:
begin
SetUpSrl;
startUp;
ClearDebug;
ActivateClient;
Wait(1000 + Random(500));
repeat
bury;
pickUp;
until(false);
end.
Yet it doesn't bury the bones, and if it does, it only does 1, then continues back to picking up.