WoW:API CancelItemTempEnchantment: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Page created)
 
mNo edit summary
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.

Revision as of 09:10, 9 March 2010

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

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