Leyser
2012-05-31 12:32:00
I have tried banking willow logs in the deposit box in Port Sarim, but it doesent seem to even hover over the log when I use DTM's I have even tried BMP's but still no luck heres part of my code:
procedure WalkToDepositBox;
var
x, y:Integer;
x2, y2:Integer;
begin
MakeCompass('N');
wait(100+random(133)); //Walking
Wait(50+random(200));
SPS_Areas := ['9_5'];
MyPath :=[Point(3870, 2089), Point(3862, 2096), Point(3844, 2105), Point(3823, 2108), Point(3809, 2111), Point(3792, 2118), Point(3783, 2140), Point(3793, 2155), Point(3805, 2159), Point(3811, 2159)];
if SPS_WalkPath(MyPath) then //Walking
begin
wait(10000+random(1575));
if FindObjCustom(x, y, ['deposit', 'ox'], [3818317, 3357506], 8) then
begin
if IsUpText('ox') then
wait(1500+Random(560));
Mouse(x, y, 5, 5, 1);
wait(3000+random(1212));
if FindBitmap(WillowLog, x2, y2) then
begin
MMouse(x2, y2, 5, 5);
ChooseOption('eposit-All');
end;
end;
end;
end;