m
Fixed category links.
No edit summary |
m (Fixed category links.) |
||
| Line 2: | Line 2: | ||
Drops an item from the cursor onto the specified target. | Drops an item from the cursor onto the specified target. | ||
For trading with a player, use the [[World_of_Warcraft_API#Trading_Functions|Trade functions]]. This function is mainly of use for giving items to pets. | For trading with a player, use the [[World_of_Warcraft_API#Trading_Functions|Trade functions]]. This function is mainly of use for giving items(food?) to pets. | ||
DropItemOnUnit(" | DropItemOnUnit("unit"); | ||
---- | ---- | ||
;''Arguments'' | ;''Arguments'' | ||
:String | :("unit") | ||
:;unit : String - The [[API TYPE UnitId|UnitId]] to which to give the item to. Typcially, you'll probably want to use <tt>"pet"</tt>. | |||
''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". -- [[User:Goldark|Goldark]] 08:12, 17 Dec 2004 (EST)'' | ''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". -- [[User:Goldark|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! -- [[User:Flickering|Flickering]] 15:27, 28 Dec 2004 (EST)'' | |||
---- | ---- | ||
| Line 35: | Line 37: | ||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Pet Functions|DropItemOnUnit]] | |||
[[Category:API Unit Functions|DropItemOnUnit]] | |||