Welcome to the Builder Academy

Question Creating a New Bulletin Board

More
20 Mar 2018 00:10 #7731 by Chime
Hello folks!

I have been building my heart out and came across a room I would like to add a bulletin board object in. I noticed there is no item type for boards, and starting poking around to see if I could figure it out. Suffice to say, no dice.

I looked at the bulletin boards that I know are working (the one in the immortal board room, for example) and tried to replicate the object exactly, but the new board doesn't work.

I'm positive it's something simple I'm missing, so! Figured I'd ask.

The object right now:
Code:
-- Item number : [308] 1) Keywords : boards notice bulletin gen_boards 2) S-Desc : a sprawling notice board 3) L-Desc :- A sprawling notice board covers the entire north wall. 4) A-Desc :- Not Set. 5) Type : TRASH 6) Extra flags : NOBITS 7) Wear flags : NOBITS 8) Weight : 0 9) Cost : 0 A) Cost/Day : 0 B) Timer : 0 C) Values : 0 0 0 0 D) Applies menu E) Extra descriptions menu: Set. M) Min Level : 0 P) Perm Affects: NOBITS S) Script : Not Set. W) Copy object X) Delete object Q) Quit Enter choice :

Please Log in or Create an account to join the conversation.

More
20 Mar 2018 06:02 #7733 by JTP
Replied by JTP on topic Creating a New Bulletin Board
/**************************************************************************
* File: boards.c Part of tbaMUD *
* Usage: Handling of multiple bulletin boards. *
* *
* All rights reserved. See license for complete information. *
* *
* Copyright (C) 1993, 94 by the Trustees of the Johns Hopkins University *
* CircleMUD is based on DikuMUD, Copyright (C) 1990, 1991. *
**************************************************************************/

/* FEATURES & INSTALLATION INSTRUCTIONS
* - Arbitrary number of boards handled by one set of generalized routines.
* Adding a new board is as easy as adding another entry to an array.
* - Safe removal of messages while other messages are being written.
*
* TO ADD A NEW BOARD, simply follow our easy 4-step program:
* 1 - Create a new board object in the object files.
* 2 - Increase the NUM_OF_BOARDS constant in boards.h.
* 3 - Add a new line to the board_info array below. The fields are:
* Board's virtual number.
* Min level one must be to look at this board or read messages on it.
* Min level one must be to post a message to the board.
* Min level one must be to remove other people's messages from this
* board (but you can always remove your own message).
* Filename of this board, in quotes.
* Last field must always be 0.
* 4 - In spec_assign.c, find the section which assigns the special procedure
* gen_board to the other bulletin boards, and add your new one in a
* similar fashion. */

#include "conf.h"
#include "sysdep.h"
#include "structs.h"
#include "utils.h"
#include "comm.h"
#include "db.h"
#include "boards.h"
#include "interpreter.h"
#include "handler.h"
#include "improved-edit.h"
#include "modify.h"

/* Board appearance order. */
#define NEWEST_AT_TOP FALSE

/* Format: vnum, read lvl, write lvl, remove lvl, filename, 0 at end. Be sure
* to also change NUM_OF_BOARDS in board.h*/
struct board_info_type board_info[NUM_OF_BOARDS] = {
{3099, 0, 0, LVL_GOD, LIB_ETC "board.mortal", 0},
{3098, LVL_IMMORT, LVL_IMMORT, LVL_GRGOD, LIB_ETC "board.immortal", 0},
{3097, LVL_IMMORT, LVL_GRGOD, LVL_IMPL, LIB_ETC "board.freeze", 0},
{3096, 0, 0, LVL_IMMORT, LIB_ETC "board.social", 0},
{1226, 0, 0, LVL_IMPL, LIB_ETC "board.builder", 0},
{1227, 0, 0, LVL_IMPL, LIB_ETC "board.staff", 0},
{1228, 0, 0, LVL_IMPL, LIB_ETC "board.advertising", 0},
};
The following user(s) said Thank You: Chime

Please Log in or Create an account to join the conversation.

More
20 Mar 2018 14:40 #7737 by Chime
Replied by Chime on topic Creating a New Bulletin Board
...Embarrassing. Of COURSE there's detailed documentation exactly where any sane person would have looked.

Thank you JTP!

Please Log in or Create an account to join the conversation.

More
20 Mar 2018 14:58 #7738 by JTP
Replied by JTP on topic Creating a New Bulletin Board
Just glad to help :)
The following user(s) said Thank You: Chime

Please Log in or Create an account to join the conversation.

More
20 Mar 2018 16:15 #7739 by Rumble
Also a help file I have to point many questions toward
HELP SPECIAL

SPECIALS SPEC-PROC SPECIAL-PROCEDURES SPECPROC SPEC_PROC

Special procedures are used to allow certain complex functions to rooms,
mobs, and objects. They are written by coders and are normally not created
by builders. If you have something you wish to assign a special procedure to
talk it over with a coder. The most common special procedures include:
Postmasters, banks, guildmasters, pet shops, and boards. If your zone requires
any of the above mudmail your coder after your zone is complete.
Most of the things possible through special procedures can now be done
through trigedit.

To create a postmaster make a mob, set one of the keywords as "postmaster," set
the NPC flag SPEC, and load it to the room via zedit. Then have your coder add
to spec_assign.c:110: ASSIGNMOB(#, postmaster); NOTE: # = the mob/obj vnum.

To create a guildmaster make a mob, set one of the keywords as "guildmaster,"
set the NPC flag SPEC, and load it to the room via zedit. Then have your coder
add to spec_assign.c:69: ASSIGNMOB(#, guild); A player can practice at any
guildmaster, it is the guildguards that usually limit who can access what
guildmaster. TSTAT 133

To create a bank make an object, set it to type OTHER, add keyword "bank" and
load it to the room via zedit. Then have your coder add to spec_assign.c:
138: ASSIGNOBJ(#, bank);

To create a board make an object, set it to type OTHER, add keyword "board" and
load it to the room via zedit. Then have your coder reference boards.c for the
remaining instructions.

To create a petshop see: HELP PETSHOP.

In all cases special procedures need to be added in by a coder. Once your zone
is complete mudmail your coder for the additions you want including type and
mob or object vnum.

See also: POSTMASTER, PETSHOPS, BANKS, GUILDMASTER, BOARDS

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com
The following user(s) said Thank You: Chime

Please Log in or Create an account to join the conversation.

Time to create page: 0.189 seconds