WoW:API ReplaceEnchant: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
Line 6: Line 6:
==Details==
==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.
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 confrmation. 

Revision as of 03:35, 13 October 2013

WoW API < ReplaceEnchant

Confirms the "Replace Enchant" dialog.

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.

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 confrmation.