I was following some instructions on how to set up a familiar spell. The directions are straight foward enough except for one part. Step 5 has me a little confused. If you want the whole code goto http://www.kyndig.com/codes/diku/merc/smaug/snippets/more9.html.
Install:
Step 1:
Include this file (familiar.c) in your make file or project
Step 2:
Add to tables.c around line 793:
if ( spell == spell_familiar ) return "spell_familiar"; // familiar
Step 3:
Add to tables.c around line 101, under case 'f':
if ( !str_cmp( name, "spell_familiar" )) return spell_familiar; // familiar
Step 4:
Add to mud.h around line 3896:
DECLARE_SPELL_FUN( spell_familiar ); // familiar
Add to mud.h around line 1409:
#define MOB_VNUM_FAMILIAR 6 // familiar snippet
The above line should be changed to a generic mob that you need to
create in one of your areas (preferably limbo.are).
Step 5:
Add summon familiar to your skills.dat and .class files as appropriate.
(Suggested: code: spell_familiar, mana: 40, beats: 14)
And please don't burn me I tried to word this the best I could and have included as much info as I have been asked.
Install:
Step 1:
Include this file (familiar.c) in your make file or project
Step 2:
Add to tables.c around line 793:
if ( spell == spell_familiar ) return "spell_familiar"; // familiar
Step 3:
Add to tables.c around line 101, under case 'f':
if ( !str_cmp( name, "spell_familiar" )) return spell_familiar; // familiar
Step 4:
Add to mud.h around line 3896:
DECLARE_SPELL_FUN( spell_familiar ); // familiar
Add to mud.h around line 1409:
#define MOB_VNUM_FAMILIAR 6 // familiar snippet
The above line should be changed to a generic mob that you need to
create in one of your areas (preferably limbo.are).
Step 5:
Add summon familiar to your skills.dat and .class files as appropriate.
(Suggested: code: spell_familiar, mana: 40, beats: 14)
And please don't burn me I tried to word this the best I could and have included as much info as I have been asked.