WoW:API DropItemOnUnit

Revision as of 13:12, 17 December 2004 by WoWWiki>Goldark
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
DropItemOnUnit

Drops an item from the cursor onto the specified target. For trading with a player, use the Trade functions. This function is mainly of use for giving items to pets.

DropItemOnUnit("pet");

Arguments
String itemTarget
target
Who to give the item to. Typcially, you'll probably want to use "pet".

Not tested with other targets such as "party1" to see what this would do for giving items to group members, let alone mobs via "target". -- Goldark 08:12, 17 Dec 2004 (EST)


Returns
None

Example
if ( CursorHasItem() ) then
  DropItemOnUnit("pet");
end;
Result
Item is dropped from cursor and given to the specified target.

Description
Gives an item from the cursor to a specified target such as "pet".

Template:WoW API