Drop
Drops an item to the ground at the specified coordinates. This is a convenience method that internally calls DragItem followed by DropItem.
Returns True on success, False on failure.
Сбрасывает предмет на землю по указанным координатам. Удобный метод, который внутри вызывает DragItem, а затем DropItem.
Возвращает True при успехе, False при неудаче.
function Drop(ObjID: Cardinal; Count: Integer; X: Integer; Y: Integer; Z: ShortInt): Boolean;
Parameters:
- ObjID — ID of the item to drop.
- Count — quantity to drop.
0= all. - X, Y, Z — ground coordinates where the item will be placed.
def Drop(item_id: int, count: int, x: int, y: int, z: int) -> bool: ...
begin
if Weight > MaxWeight - 50 then
begin
FindType(ore_type, Backpack);
if FindItem <> 0 then
begin
Drop(FindItem, 10, GetX(Self), GetY(Self), GetZ(Self));
Wait(1000);
end;
end;
end.
if Weight() > MaxWeight() - 50:
FindType(ore_type, Backpack())
if FindItem() != 0:
Drop(FindItem(), 10, GetX(Self()), GetY(Self()), GetZ(Self()))
Wait(1000)