DropItemOnUnit

From Wowpedia
Revision as of 18:43, 23 December 2006 by Foxlit (talk | contribs) ({{wowapi}}, format, can be used on party or target to initiate trading.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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);

Parameters

Arguments

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

Example

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

Result

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