WoW:API GetWeaponEnchantInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(Removed thrown weapon return values -- ranged weapon slot no longer exists.)
Line 5: Line 5:


;Returns
;Returns
hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges, hasThrownEnchant, thrownExpiration, thrownCharges
hasMainHandEnchant, mainHandExpiration, mainHandCharges, mainHandEnchantID, hasOffHandEnchant, offHandExpiration, offHandCharges, offHandEnchantId = GetWeaponEnchantInfo();


  hasMainHandEnchant = 1 (true) or nil
  hasMainHandEnchant = 1 (true) or nil
  mainHandExpiration = time remaining as thousandths of seconds
  mainHandExpiration = time remaining as thousandths of seconds
  mainHandCharges = charges remaining
  mainHandCharges = charges remaining
mainHandEnchantID = the spell ID of the main hand enchantment (new in 6.0)
  hasOffHandEnchant = 1 (true) or nil
  hasOffHandEnchant = 1 (true) or nil
  offHandExpiration = time remaining as thousandths of seconds
  offHandExpiration = time remaining as thousandths of seconds
  offHandCharges = charges remaining
  offHandCharges = charges remaining
  hasThrownEnchant = 1 (true) or nil (new in 4.0.1)
  offHandEnchantID = the spell ID of the off hand enchantment (new in 6.0)
  thrownExpiration = time remaining as thousandths of seconds (new in 4.0.1)
  <br>
  thrownCharges = charges remaining (new in 4.0.1)
   
 
Reference the default interface BuffFrame.Lua for its usage.
 
Reference the default interface BuffFrame.Lua for its usage.

Revision as of 15:06, 14 October 2014

WoW API < GetWeaponEnchantInfo

GetWeaponEnchantInfo();

This appears to be used for handling TEMPORARY enchants to weapons - like POISONS. Also appears to be self-only.

Returns

hasMainHandEnchant, mainHandExpiration, mainHandCharges, mainHandEnchantID, hasOffHandEnchant, offHandExpiration, offHandCharges, offHandEnchantId = GetWeaponEnchantInfo();

hasMainHandEnchant = 1 (true) or nil
mainHandExpiration = time remaining as thousandths of seconds
mainHandCharges = charges remaining
mainHandEnchantID = the spell ID of the main hand enchantment (new in 6.0)
hasOffHandEnchant = 1 (true) or nil
offHandExpiration = time remaining as thousandths of seconds
offHandCharges = charges remaining
offHandEnchantID = the spell ID of the off hand enchantment (new in 6.0)

Reference the default interface BuffFrame.Lua for its usage.