Wikia

WoWWiki

API DropItemOnUnit

Talk0
100,524pages on
this wiki
Revision as of 18:43, December 23, 2006 by Starlightblunder (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
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.

Advertisement | Your ad here

Around Wikia's network

Random Wiki