Wikia

WoWWiki

API DropItemOnUnit

Talk0
101,546pages on
this wiki
WoW API < DropItemOnUnit

Drops an item from the cursor onto the specified target. Can be used to initiate a trade session (though see Trade functions) or feeding pets.

DropItemOnUnit(unit);

ParametersEdit

ArgumentsEdit

unit 
UnitId - Unit to which you want to give the item on the cursor.

ExampleEdit

if ( CursorHasItem() ) then
  DropItemOnUnit("pet");
end;

ResultEdit

Item is dropped from cursor and given to the player's pet.

Around Wikia's network

Random Wiki