Method Item:SetEnchantment [-] [+]

Sets the specified enchantment of the Item to the specified slot

Synopsis

enchantmentSuccess = Item:SetEnchantment( enchantId, enchantSlot )

Arguments

number enchantId

The ID of the enchant to be applied.

Valid numbers: integers from 0 to 4,294,967,295.

number enchantSlot

The slot for the enchant to be applied to.

Valid numbers: integers from 0 to 4,294,967,295.

Returns

boolean enchantmentSuccess

If enchantment is successfully set to specified slot, returns 'true', otherwise 'false'.

Generated on
©2016 - Eluna Lua Engine