DropHere
Drops an item to the ground at the character’s current position. This is a convenience method that internally calls DragItem followed by DropItem with the character’s coordinates.
If the item is part of a stack with more than one item, the entire stack is dropped.
Returns True on success, False on failure.
Сбрасывает предмет на землю под ногами персонажа. Удобный метод, который внутри вызывает DragItem, а затем DropItem с координатами персонажа.
Если предмет является частью стека из более чем одного предмета, сбрасывается весь стек.
Возвращает True при успехе, False при неудаче.
function DropHere(ItemID: Cardinal): Boolean;
Parameters:
- ItemID — ID of the item to drop at the character’s feet.
def DropHere(item_id: int) -> bool: ...
begin
if Weight > MaxWeight - 50 then
begin
FindType(ore_type, Backpack);
if FindItem <> 0 then
begin
DropHere(FindItem);
Wait(1000);
end;
end;
end.
if Weight() > MaxWeight() - 50:
FindType(ore_type, Backpack())
if FindItem() != 0:
DropHere(FindItem())
Wait(1000)