problem with tables.c

Posted by Gorock on Wed 05 Sep 2007 08:34 AM — 4 posts, 20,476 views.

#0
i have added a few snippets suck as reroll stats and what not and i am adding a donate command and i have everything done except when it tells me to add the appropiate entries in tables.c for do_donate i dont see anything in there that even looks like somewhere i would add an entry for do_donate here is some of the snippet

2. In mud.h, under the section for well known room vnums, add:

#define ROOM_VNUM_DONATION xxxx
#define ROOM_VNUM_DONATIONTWO xxxx

Where xxxx is the vnum of the room you wish to assign.

Add the following to the appropriate section:

DECLARE_DO_FUN( do_donate );

3. Make the appropriate entried in tables.c for do_donate.

4. Make clean, and recompile.
#1
In SMAUG, it's necessary to do a few paperwork things in tables.c for every do_function you add. Basically just enough paperwork so that the "cedit" command can know what the names of the functions are. But in SMAUGFUSS, they magic'd that paperwork away so you can just ignore that step in the snippet.
#2
thanks i just compiled and it works fine thanks guys
USA #3
Actually, just for reference, they magic'd that away in SmaugFUSS 1.7, if you're using SmaugFUSS 1.4 or 1.6 you still need to do the minor paperwork in tables.c.