Method Item:SetEnchantment [-] [+]
Sets the specified enchantment of the Item to the specified slot
Synopsis
enchantmentSuccess = Item:SetEnchantment( enchantId, enchantSlot )
Arguments
number enchantIdThe ID of the enchant to be applied.
Valid numbers: integers from 0 to 4,294,967,295.
number enchantSlotThe slot for the enchant to be applied to.
Valid numbers: integers from 0 to 4,294,967,295.
Returns
boolean enchantmentSuccessIf enchantment is successfully set to specified slot, returns 'true', otherwise 'false'.