Wikia

WoWWiki

API DropItemOnUnit

Talk0
102,281pages on
this wiki
Revision as of 23:58, May 12, 2006 by J3parke (Talk | contribs)

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(food?) to pets.

DropItemOnUnit("unit");

Arguments
("unit")
unit 
String - The UnitId to which 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)

In spite of the comment above, the WoW base UI uses it with both party members and targets, so it's going to be worth trying! -- Flickering 15:27, 28 Dec 2004 (EST)

This appears to have been changed to only be triggered via a hardware event in v1.10. -- j3parke 12 MAY 2006


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

Around Wikia's network

Random Wiki