Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

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 при неудаче.

Pascal

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.

Python

def Drop(item_id: int, count: int, x: int, y: int, z: int) -> bool: ...

Pascal Example

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.

Python Example

if Weight() > MaxWeight() - 50:
    FindType(ore_type, Backpack())
    if FindItem() != 0:
        Drop(FindItem(), 10, GetX(Self()), GetY(Self()), GetZ(Self()))
        Wait(1000)

See Also

DragItem, DropItem, MoveItem