[Package Index | Mudlib Index | Effect Index]
Enchanting an object will add to its value, and, if the object is an item of armour, will improve its armour class.
Written by Pinkfish
.
int add_enchant(int number)This method changes the current enchanment level.
string enchant_string()This method returns the current enchantment string for the object. The string is created from the percentage of the max enchantment that it is enchanted to. If the object is also a talisman, an identifying string is appended to the enchantment message.
These messages are only visible to creators and players who can see octarine.
If the property "octarine_mess" is set, then this will be printed instead of the automatically generated enchantment message.
If the property "talisman_mess" is set, then this will be printed instead
of the automatically generated talisman message if appropriate.
int query_degrade_enchant()This method returns the maximum enchantment before the enchantment starts to degrade.
int query_enchant()This method queries the current enchantment level.
int query_enchant_set_time()This method returns the time the time the enchantment was set.
int query_max_enchant()This method returns the maximum possible enchantment for the object. This is based on its weight.
int query_real_enchant()This method returns the actual enchant of the object.
void set_degrade_enchant(int enchant)This method sets the enchantment at which things start to degrade.
void set_enchant(int number)This method sets the current enchantment level. If it is greator than the max enchantment level then it will be set to the maximum enchantment level.
void set_enchant_set_time(int tim)This method sets the time at which the enchant level was set.