Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ problem with tables.c
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Gorock
(149 posts) Bio
|
Date
| Wed 05 Sep 2007 08:34 AM (UTC) |
Message
| 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. | Top |
|
Posted by
| Valcados
(15 posts) Bio
|
Date
| Reply #1 on Wed 05 Sep 2007 09:26 AM (UTC) |
Message
| 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. | Top |
|
Posted by
| Gorock
(149 posts) Bio
|
Date
| Reply #2 on Wed 05 Sep 2007 11:21 AM (UTC) |
Message
| thanks i just compiled and it works fine thanks guys | Top |
|
Posted by
| Conner
USA (381 posts) Bio
|
Date
| Reply #3 on Wed 05 Sep 2007 11:15 PM (UTC) |
Message
| 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. |
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
15,479 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top