From 7ab0918c9ce5ab822cf13b4af3e36eb941a6d5bf Mon Sep 17 00:00:00 2001 From: agroschim Date: Tue, 20 Jan 2026 09:59:58 +0100 Subject: [PATCH] Add the first rooms of the Grenzland Building in Midgaard --- lib/world/obj/49.obj | 17 +++++++++++++++ lib/world/obj/index | 1 + lib/world/wld/30.wld | 11 ++++++++-- lib/world/wld/49.wld | 49 ++++++++++++++++++++++++++++++++++++-------- lib/world/zon/49.zon | 4 +++- src/boards.c | 1 + src/boards.h | 2 +- src/spec_assign.c | 1 + 8 files changed, 74 insertions(+), 12 deletions(-) create mode 100644 lib/world/obj/49.obj diff --git a/lib/world/obj/49.obj b/lib/world/obj/49.obj new file mode 100644 index 0000000..bdd34b5 --- /dev/null +++ b/lib/world/obj/49.obj @@ -0,0 +1,17 @@ +#4900 +boards bulletin gen_boards~ +a bulletin board~ +A small bulletin board is mounted on a wall here.~ +~ +13 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 +0 0 0 0 0 +E +bulletin~ + Use 'look board' to read the board. +~ +E +board~ + If you can read this, the board is not working. +~ +$ \ No newline at end of file diff --git a/lib/world/obj/index b/lib/world/obj/index index 3363526..4b610c9 100644 --- a/lib/world/obj/index +++ b/lib/world/obj/index @@ -38,6 +38,7 @@ 44.obj 45.obj 46.obj +49.obj 50.obj 51.obj 52.obj diff --git a/lib/world/wld/30.wld b/lib/world/wld/30.wld index fb4b33b..bc94462 100644 --- a/lib/world/wld/30.wld +++ b/lib/world/wld/30.wld @@ -637,10 +637,17 @@ You see Poor Alley. S #3026 The Dark Alley~ - The dark alley, to the west is the common square and to the south is the -Guild of Thieves. The alley continues east. + The dark alley, to the west is the common square and to the south +is the Guild of Thieves. The alley continues east. You see a curious +building to the north you swear wasn't here the last time you have +been to this dark alley. ~ 30 0 0 0 0 1 +D0 +This building wasn't here last time, right? +~ +~ +0 -1 4901 D1 The alley continues east. ~ diff --git a/lib/world/wld/49.wld b/lib/world/wld/49.wld index 2c5bb56..a6d41d9 100644 --- a/lib/world/wld/49.wld +++ b/lib/world/wld/49.wld @@ -1,25 +1,58 @@ #4900 -The Reading Room~ - You are in a small, simple room which is mostly empty, save a few -wooden desks and benches. To the south you see the Great Library. +The Common Room~ + You are in the common room of the Grenzland Building. People are +talking quietly or reading in silence. There is a fire crackling in +the hearth to the North. To the East you see the Grenzland Shop. To +the South you see the Entry Hall. To the West you see a room that is +not yet finished. ~ 49 de 0 0 0 0 +D1 +You see the Grenzland Shop. +~ +~ +1 -1 4902 D2 -You see the Great Library. +You see the Entry Hall to the Grenzland Building. ~ ~ 1 -1 4901 S #4901 -The Great Library of Grenzland~ - You are in the magnificent Great Library of Grenzland. To the - north you see a small reading room. +The Entry Hall to the Grenzland Building~ + You are in the Entry Hall to the Grenzland Building. To the North +you see the Common Room. To the South is a Dark Alley. ~ 49 de 0 0 0 0 D0 -You see a small reading room. +You see the Common Room. ~ ~ 1 -1 4900 +D2 +You see a Dark Alley. +~ +~ +1 -1 3026 +S +#4902 +The Grenzland Shop~ + You are in the Grenzland Shop. It looks deserted (for now). To +the West you see the Common Room. +There is a small note pinned to the counter. +~ +49 de 0 0 0 0 +D3 +You see the Common Room. +~ +~ +1 -1 4900 +E +note~ + The note reads: + + The store is closed until I can figure out the format of .shp files. + - a. +~ S $ \ No newline at end of file diff --git a/lib/world/zon/49.zon b/lib/world/zon/49.zon index c4c6240..6016018 100644 --- a/lib/world/zon/49.zon +++ b/lib/world/zon/49.zon @@ -1,6 +1,8 @@ -#30 +#49 GrenzlandMUD~ Grenzland~ 4900 4999 15 2 d 0 0 0 1 33 +R 0 4901 4900 -1 (a bulletin board) +O 0 4900 99 4901 (a bulletin board) S $ diff --git a/src/boards.c b/src/boards.c index 3739d65..bf47ec6 100644 --- a/src/boards.c +++ b/src/boards.c @@ -53,6 +53,7 @@ struct board_info_type board_info[NUM_OF_BOARDS] = { {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}, + {4900, 0, 0, LVL_IMMORT, LIB_ETC "board.grenzland", 0}, }; /* local (file scope) global variables */ diff --git a/src/boards.h b/src/boards.h index 46c7b40..30bc04c 100644 --- a/src/boards.h +++ b/src/boards.h @@ -13,7 +13,7 @@ #ifndef _BOARDS_H_ #define _BOARDS_H_ -#define NUM_OF_BOARDS 7 /* change if needed! */ +#define NUM_OF_BOARDS 8 /* change if needed! */ #define MAX_BOARD_MESSAGES 60 /* arbitrary -- change if needed */ #define MAX_MESSAGE_LENGTH 4096 /* arbitrary -- change if needed */ diff --git a/src/spec_assign.c b/src/spec_assign.c index 3ba42eb..0b4e72b 100644 --- a/src/spec_assign.c +++ b/src/spec_assign.c @@ -136,6 +136,7 @@ void assign_objects(void) ASSIGNOBJ(3097, gen_board); /* freeze board */ ASSIGNOBJ(3098, gen_board); /* immortal board */ ASSIGNOBJ(3099, gen_board); /* mortal board */ + ASSIGNOBJ(4900, gen_board); /* mortal board */ ASSIGNOBJ(115, bank); ASSIGNOBJ(334, bank); /* atm */