WoW:API CancelItemTempEnchantment: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Page created)
 
m (Move page script moved page API CancelItemTempEnchantment to API CancelItemTempEnchantment without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}
 
Removes temporary item buffs, such as Rogue poisons, Shaman weapon buffs, and sharpening stones from either the Main Hand or Off Hand equipment slots.
Removes temporary item buffs, such as Rogue poisons, Shaman weapon buffs, and sharpening stones from either the Main Hand or Off Hand equipment slots.
  CancelItemTempEnchantment(slot)
  CancelItemTempEnchantment(weaponHand);
 


== Arguments ==
== Arguments ==
:(slot)
; weaponHand : Number - '''1''' for Main Hand, '''2''' for Off Hand.
 
:;slot : Integer - '''1''' or '''2'''<br>'''1''' = Main Hand<br>'''2''' = Off Hand
 
== Returns ==
:'''nil''' - Returns '''nil''' regardless of whether or not a buff was dispelled.
 
== Details ==
: Only accepts the integers '''1''' or '''2'''. Slot identifiers returned by [[API_GetInventorySlotInfo|GetInventorySlotInfo]], and [[API_TYPE_InventorySlotName|InventorySlotName]] values do not work.

Latest revision as of 04:45, 15 August 2023

WoW API < CancelItemTempEnchantment

Removes temporary item buffs, such as Rogue poisons, Shaman weapon buffs, and sharpening stones from either the Main Hand or Off Hand equipment slots.

CancelItemTempEnchantment(weaponHand);

Arguments[edit]

weaponHand
Number - 1 for Main Hand, 2 for Off Hand.