DragItem

Method takes item “on finger”. Returns True on success, False if:

if item in Stack, and Amount > items in Stack, method will drag Amount of items, else will drag all items in stack.

NB: this method drag item “on finger”, not to some container or ground. Use DropItem to drop item from “finger”.

Pascal

function DragItem(ItemID : Cardinal; Amount : Integer) : Boolean;

Python

def DragItem(ItemID, Amount) -> bool

Example Pascal

procedure LootGold;
begin
  if FindType($0EED, Corpse) <> 0 then
  begin
    DragItem(finditem, 0);
    Wait(300);
    DropItem(backpack,0,0,0);
    Wait(600);
  end;
end;