Thread: SSET in SMAUG
View Single Post
Old 08-05-2002, 04:23 PM   #6
Thathalum
New Member
 
Join Date: Jul 2002
Home MUD: Unicorn Valley
Posts: 4
Thathalum is on a distinguished road
If you are trying to use a different code then spell_smaug to effect your spell, you need to declare the code (i.e. spell_quantum_spike). But, before you do that, you have to actually define it in the code. I believe it's in tables.c, mud.h, and magic.c

The code you need to add looks something like this: (for the bloom example)

In Mud.h - do a search for spell_quantum_spike and then add: DECLARE_SPELL_FUN( spell_your_spell );

In Tables.c - do the same search, then add:
if ( !str_cmp( name, "spell_your_spell" )) return spell_your_spell;
then search again and add:
if ( spell == spell_your_spell ) return "spell_your_spell";

Then make clean, recompile...reboot your mud. sset 'your spell' code spell_your_spell, then sset save skill table. Then reboot again. That *should* fix it.
Thathalum is offline   Reply With Quote