Fandom

WoWWiki

API DropItemOnUnit

104,999pages on
this wiki
Add New Page
Talk0 Share
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.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.