Code: Select all
program pesok;
const
Shovel = $0F39;
procedure stack(ObjType, Color : word);
var PackItem, GroundItem : Cardinal;
begin
PackItem := 0;
GroundItem := 0;
Findtype(ObjType,backpack);
IF FindFullQuantity > 0 then PackItem := finditem;
Findtype(ObjType,ground);
IF FindFullQuantity > 0 then IgnoreReset;
repeat
FindtypeEx(ObjType,Color,ground,false);
IF FindCount > 0 then
if FindQuantity > 55000 then Ignore(finditem)
else GroundItem := finditem;
FindtypeEx(ObjType,Color,ground,false);
until (FindCount = 0) or (GroundItem <> 0);
if (PackItem <> 0) and (GroundItem <> 0) then MoveItems(backpack,ObjType,Color,GroundItem,1,1,0,1000)
else DropHere(PackItem);
end;
procedure Mine;
var sTime : TDateTime;
begin
UseType(Shovel,-1);
WaitForTarget(1000);
WaitTargetTile( 0,( GetX( Self )),( GetY( Self )),GetZ( Self ));
sTime := Now;
wait(1000);
WaitJournalLine( sTime, 'Вы добыли',30000);
wait(3790);
end;
Begin
repeat
Mine;
CheckLag(10000);
if Weight>=750 then
begin
stack($19B7,$00FA);
stack($19B8,$00F8);
end;
until Dead
End.
что нужно поменять чтобы скидывал не на пол а в сундук рядом???