SKIN.DOC
SKIN.DOC · 1.1 KB
From the archive skincode.zip
Download the archive « Back to the archive contents
:: Add the following to DB.C, inside "Globals : Other" ::
sh_int gsn_skin;
:: Add the following to MUD.H, inside "Well Known Object Virtual Numbers" ::
#define OBJ_VNUM_SKIN 23 (23 Being the vnum for the skin-object)
:: Same, only inside "Newer Attack Skills" ::
extern sh_int gsn_skin;
:: Use sset to create the new skill (You need this even if it's a command) ::
sset create skill skin
:: Then set-up the command using sset as you want it,
Add it into the .class files for use with players, and Voila ::
(If you want skin to be a skill, just add it to the .class files later)
:: Adding Skin as a command ::
:: Type the following to add it while online ::
cedit skin create do_skin
:: Then all you need to do is write the help-file for it, and restrict it
down to the appropriate level. Enjoy. ::
:::::: NOTE: This skill is PKILL and IMMORTAL ONLY!
If you wish to make it useable by all players, remove or comment out the
line at the beginning of the code that reads:
if ( !IS_PKILL(ch) && !IS_IMMORTAL(ch) )
{
send_to_char( "Leave the hideous defilings to the killers!\n", ch );
return;
}
- Mirk, 1997