m (ClearCursor is more reliable since it won't move the item to the backpack and won't fail if the backpack is full.) |
No edit summary Tag: WoW API docs |
||
(25 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{wowapi}} {{restrictedapi|hwevent,noscript|note=* Limited to deleting a single item per hardware event. |
||
− | {{wowapi}} |
||
+ | * ''As of 2022-09-17 Classic (Vanilla and Wrath) can delete multiple items per hardware event and has no NOSCRIPT protection''.}} |
||
− | Destroys the item |
+ | <!--desc-->Destroys the item held by the cursor. |
+ | DeleteCursorItem() |
||
+ | ==Details== |
||
− | '''This does not deselect the item, this destroys it.''' |
+ | * '''This does not deselect the item, this destroys it.''' Use {{api|t=a|ClearCursor}}() to drop an item from the cursor without destroying it. |
+ | ==Patch changes== |
||
− | No return value. |
||
+ | {{Patch 9.1.5|note=Protected when called from a (macro) script. Limited to deleting a single item per hardware event.}} |
||
+ | {{Patch 9.0.2|note=Requires a hardware event. A single hw event is sufficient for destroying multiple items.}} |
Latest revision as of 07:41, 24 August 2023
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
This function is restricted.
|
Destroys the item held by the cursor.
DeleteCursorItem()
Details
- This does not deselect the item, this destroys it. Use ClearCursor() to drop an item from the cursor without destroying it.
Patch changes
Patch 9.1.5 (2021-11-02): Protected when called from a (macro) script. Limited to deleting a single item per hardware event.
Patch 9.0.2 (2020-11-17): Requires a hardware event. A single hw event is sufficient for destroying multiple items.