Naum
2008-09-28 06:20:11
Simple yet un-failable bone burrying procedure.
Works with
Bones, BigBones, Dragon Bones, Monkey Bones, Bat Bones and Jogre Bones.
Thanks for looking.
Works with
Bones, BigBones, Dragon Bones, Monkey Bones, Bat Bones and Jogre Bones.
{*******************************************************************************
Procedure BuryBones(HowMany : Integer; WhatType : String);
by: NaumanAkhlaQ
Description: Burries The amount of bones specified.
WhatType - enter in part of the uptext
*******************************************************************************}
Procedure BuryBones(HowMany : Integer; WhatType : String);
Var III, C0l, IMark : Integer;
Begin
If HowMany > CountColorTolerance(14013914, MIX1, MIY1, MIX2, MIY2, 10) Then
srl_Warn('BuryBones', 'Not Enough Bones Found', warn_AllVersions)
else
GameTab(4);
Repeat
If FindColorTolerance(x, y, 14013914, MIX1, MIY1, MIX2, MIY2, 5) Then
Begin
MMouse(x, y, 5, 5);
C0l := GetColor(x, y);
Wait(20 + Random(80));
end;
If IsUpText(WhatType) Then
Begin
Case Random(5) Of
0 : Begin
Mouse(x, y, 0, 0, False);
Wait(200 + Random(200));
ChooseOption('ury');
MMouse(x, y, 0, 0);
end
else Mouse(x, y, 0, 0, True);
end;
Inc(III);
end;
MarkTime(Imark);
Repeat
Wait(400 + Random(200));
Until(Not(SimilarColors(c0l, GetColor(x, y), 3))) or
(TimeFromMark(IMark) > 2000 + Random(800));
Until(III >= HowMany) or (Not(FindColorTolerance(x, y, 14013914, MIX1, MIY1, MIX2, MIY2, 10)));
WriteLn('Bones Burried!');
end;Thanks for looking.