condition_repair.txt

Uploaded: 25 Apr, 2009
Previous uploads by this submitter: 0

Author: Theodryck

Downloads: 57

This snippet will allow you to add item conditions, item damages,
and a way for both players and mobs to repair damaged items. The
condition of an object will degrade with use and need to be repaired
or it will break and become unusable. The repair command is used to
allow players to both attempt to repair items themselves or have a
mob with ACT_REPAIR flag set to do it for them. If a player tries to
repair his/her own items they will need to have a repair hammer. The
repair skill is used to determine how effective they are. There are 4
levels of skill: Novice, Apprentice, Journeyman, and Master. There are
also 4 types of repair hammers (That you have to make yourself and
adjust the VNUMS in the code accordingly) that coincide with the 4
levels of the repair skill. The higher the skill and the better the
repair hammer used, the more effective the repair command is.

I've tried to make this as easy as I can for anyone to use this snippet
to add the code to your mud. Just follow the directions and it should
be a snap. This code should have no trouble compiling on any merc or
envy based mud.

This snippet contains the following:
Item Conditions
Item Combat Damage
Item Conditions that can be seen in the equipment and inventory
commands and in room descriptions.
Repair Commands
Repair Skill
ACT_REPAIR flag for mobs
Mprepair skill for mobs (Not used via mob_prog but is called through
the normal repair command )