Confirms replacing an existing enchantment. Usable in response to the REPLACE_ENCHANT event which fires when the player attempts to apply a temporary or permanent enchantment to an item which already has one.


See also Item functions.

Signature:

ReplaceEnchant()

This function does not prompt the user for confirmation before its results take effect -- that behavior is provided by the default UI, and this function is called from the confirmation dialog