WoW:API ReplaceEnchant: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Move page script moved page API ReplaceEnchant to API ReplaceEnchant without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{protectedapi|2.4.0}}
 
{{wowapi}}  


Confirms the "Replace Enchant" dialog.
Confirms the "Replace Enchant" dialog.


  ReplaceEnchant();
  ReplaceEnchant()
 
 
==Details==
 
: When the player attempts to apply an enchant or weapon buff to an item which already has one, the game presents the "Replace Enchant" dialog. This method confirms that dialog allowing the application of the enchant/buff to continue.


== Details ==
When the player attempts to apply an enchant or weapon buff to an item which already has one, the game presents the "Replace Enchant" dialog. This method confirms that dialog allowing the application of the enchant/buff to continue.


''***Appears to be non-functional in macros as of 2.4.07, considered an action only available to Blizzard UI. Unknown if functional in addon scripts.''
If this function is called before you decide which item you want to enchant (before "REPLACE_ENCHANT" event), it tries to enchant your equipped main hand weapon without confirmation. 

Latest revision as of 04:47, 15 August 2023

WoW API < ReplaceEnchant

Confirms the "Replace Enchant" dialog.

ReplaceEnchant()

Details[edit]

When the player attempts to apply an enchant or weapon buff to an item which already has one, the game presents the "Replace Enchant" dialog. This method confirms that dialog allowing the application of the enchant/buff to continue.

If this function is called before you decide which item you want to enchant (before "REPLACE_ENCHANT" event), it tries to enchant your equipped main hand weapon without confirmation.