Difference between revisions of "Manual:Zone Manual/The Reset Section/The complete dragon station"

From DikuMUD Wiki
Jump to navigation Jump to search
(checked against the current code (wiki review 2026-11-15))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
=== The complete dragon station ===
 
=== The complete dragon station ===
−
<nowiki>
 
−
#include &lt;composed.h&gt;
 
−
%zone dragonst
 
−
lifespan 20
 
−
reset RESET_ANYHOW
 
−
creators {"whistler"}
 
  
−
notes
+
This is the whole dragon station: the rooms, NPCs and objects of the earlier chapters, with the reset section from [[Manual:Zone Manual/The Reset Section/Reset walk through|Reset walk through]]. It compiles as it is with the current vmc.
−
"This is the dragon station I shortened it to dragonst for ease in
 
−
loading.  If you have  any questions email me at whistler@valhalla.com"
 
  
−
help
+
To try it, save it as <code>dragonst.zon</code> in <code>vme/zone/</code>. A zone file must have the same name as its zone (<code>%zone dragonst</code>), or the server stops at boot. Compile it from that directory:
−
"Not sure what could help you now. You are stuck on one of the
 
−
weirdest space stations you have ever seen and you smell burning
 
−
sulfur."
 
  
−
%rooms
+
<pre>
 +
../bin/vmc -m -d ../etc/ -I../include/ dragonst.zon
 +
</pre>
  
−
chamber
+
which prints
−
title "The middle chamber of the station"
 
−
descr
 
−
"This chamber seems to have the entire station rotating around it.  It is
 
−
unbelievably large the ceiling seems to be a good 200 meeters high and
 
−
the room is perfectly cubic. Small human size ornate chairs with dragon
 
−
designs scrawled on the arms and back are arranged in a triangle like
 
−
setting with one large chair at the front.  This must be where all
 
−
station meetings are held. large pictures cover the walls depicting
 
−
dragons in all kinds of situations.  large passages lead of to the west
 
−
and the east.."
 
  
−
extra {"chair","chairs"}
+
<pre>
−
"The chairs are made of some metal you don't recognize and every inch is covered
+
VMC 2.0 Copyright (C) 2001 by Valhalla [Nov 14 2026]
−
with some kind of dragon."
+
VMC Compiled with [-DDMSERVER -DPOSIX -DVMC -DVMC_SRC -DLINUX -DMUD_DEBUG]
 +
Compiling 'dragonst.zon'
 +
VMC Done.
 +
</pre>
  
−
extra  {"dragon picture","picture"}
+
(the date is the day your vmc was built). Then add a line for <code>dragonst</code> to <code>vme/etc/zonelist</code>, copying the line of another zone, and restart the server: it reads zones only at boot. Log in as an administrator and <code>goto chamber@dragonst</code>. If something doesn't show up, look in the server log and in <code>wstat zone dragonst errors</code>: vmc doesn't check the names used in exits, keys, <code>dilcopy</code> lines and resets, so a misspelt one only shows up there.
−
"Thousands of dragons dot the skies of this rather life like picture. In the
 
−
center you see something move.  It looks to be a little green dragon."
 
  
−
extra{"green dragon","dragon","green"}
+
A few things in it that the earlier chapters only touched on:
−
"An intellegence looking dragon is sitting perched on a large chair watching you."
+
* The green and red fields are rooms inside rooms (<code>in portal_room</code>, <code>in ship</code>, <code>in disposal_room</code>). Players get into them with <code>enter field</code>, and <code>force_move@function</code> then moves them on after a few seconds.
 +
* <code>deathspace</code> uses <code>death_room@function</code>, which takes 400 hit points every three seconds from players in the room: anyone who walks into the red field dies.
 +
* The janitor's <code>janitors@midgaard</code> makes him pick up what lies around; <code>wander_zones@function</code> keeps him walking about the station, opening doors but not unlocking them.
 +
* Bob is a banker through <code>special SFUN_BANK</code>. He also carries the key to the weapons locker.
  
−
movement SECT_INSIDE
+
<pre>
−
ALWAYS_LIGHT
+
#include <macros.h>
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
 
  
−
west to disposal_room descr
+
%zone dragonst
−
"You see a small room.";
+
lifespan 20
 +
reset RESET_ANYHOW
 +
creators {"whistler"}
  
−
east to hallway descr
+
notes
−
"You see what looks to be a hallway.";
+
"This is the dragon station. I shortened it to dragonst for ease in
 +
loading."
  
−
end
+
help
 +
"Not sure what could help you now. You are stuck on one of the
 +
weirdest space stations you have ever seen and you smell burning
 +
sulphur."
  
−
hallway
+
%rooms
−
title "Module tunnel"
 
−
descr "The hallway is about 50 meters long and around 100 meters from
 
−
side to side and top to bottom.  The hallway seems to be dust free.  The
 
−
walls and the floors seem to be made out of the same sterile
 
−
metal-plastic that all space agencies uses.  There are large plate glass
 
−
windows that open up into space.  The hallway is filled with a dim light
 
−
that seems to come from everywhere yet no where all at once.  You notice
 
−
a glimmer of bright light coming from the windows.  To the east you see
 
−
an air lock and to the west the hallway opens up into a larger room."
 
  
−
extra {"windows","window"}
+
chamber
−
"Your eyes are drawn to a large ship lit up with running lights sitting
+
title "The middle chamber of the station"
−
about 1 kilometer from the station."
+
descr
 +
"This chamber seems to have the entire station rotating around it. It
 +
is unbelievably large: the ceiling is a good 200 metres high and the
 +
room is perfectly cubic. Small human-size ornate chairs with dragon
 +
designs on the arms and backs are arranged in a triangle, with one
 +
large chair at the front. This must be where all station meetings are
 +
held. Large pictures cover the walls, showing dragons in all kinds of
 +
situations. Large passages lead off to the west and the east."
  
−
extra{"floor","walls","wall"}
+
extra {"chairs", "chair"}
−
"Well what can be said it looks to be in perfect condition. What else would
+
"The chairs are made of some metal you don't recognise and every inch
−
you want to know?"
+
is covered with some kind of dragon."
  
−
extra {"large ship" ,"ship"}
+
extra {"dragon picture", "picture"}
−
"The ship looks really big and is shaped like a dragon. The scales
+
"Thousands of dragons dot the skies of this rather lifelike picture. In
−
sparkle and seem to be multiple colors."
+
the centre you see something move. It looks to be a little green
 +
dragon."
  
−
movement SECT_INSIDE
+
extra {"green dragon", "dragon", "green"}
−
ALWAYS_LIGHT
+
"An intelligent-looking dragon is sitting perched on a large chair,
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
watching you."
  
−
west to chamber descr
+
movement SECT_INSIDE
−
"The hallway opens up into a chamber.";
+
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
east to office descr
+
west to disposal_room descr
−
"You see what looks to be an office."
+
"You see a small room.";
−
keyword {"air lock door","air lock","door"}
 
−
open {EX_OPEN_CLOSE, EX_CLOSED};
 
  
−
end
+
east to hallway descr
 +
"You see what looks to be a hallway.";
 +
end
  
−
office
 
−
title "The station office"
 
−
descr
 
−
"Large paintings fill the walls of this part of the station.  The room
 
−
is as large as the other rooms big enough for Dragons to lounge while
 
−
still having a desk in one corner small enough for a humanoid.  The
 
−
floor along the north wall is lined with some kind of fabric and seems
 
−
very soft to walk on, it may be some kind of dragon lounge judging by
 
−
how large an area it covers.  There is a passage to the west."
 
  
−
movement SECT_INSIDE
+
hallway
−
ALWAYS_LIGHT
+
title "Module tunnel"
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
descr
 +
"The hallway is about 50 metres long and around 100 metres from side to
 +
side and top to bottom. It seems to be dust free. The walls and the
 +
floor are made of the same sterile metal-plastic that all space
 +
agencies use. Large plate glass windows open up into space. The
 +
hallway is filled with a dim light that seems to come from everywhere
 +
and nowhere at once. You notice a glimmer of bright light coming from
 +
the windows. To the east you see an air lock and to the west the
 +
hallway opens up into a larger room."
  
−
extra {"paintings","painting"}
+
extra {"windows", "window"}
−
"The paintings are of many dragons and riders in all kinds of tasks from
+
"Your eyes are drawn to a large ship lit up with running lights,
−
combat to look out.  All the figures seem to be staring at a staff
+
sitting about a kilometre from the station."
−
being held by a depiction of a wizard on the south wall."
 
  
−
extra {"wizard","staff"}
+
extra {"floor", "walls", "wall"}
−
"The wizard has his hand stretched out and it seems there is a place
+
"Well, what can be said? It looks to be in perfect condition."
−
you can almost grab the staff. Maybe if you searched the staff you would
 
−
find it."
 
  
−
extra {"desk"}
+
extra {"large ship", "ship"}
−
"Its a desk alright but there doesn't seem to be any drawers and it
+
"The ship looks really big and is shaped like a dragon. The scales
−
seems totally empty."
+
sparkle and seem to be many colours."
  
−
extra{"fabric"}
+
movement SECT_INSIDE
−
"Wussshhhhh you bound across the comfortable floor wasn't that fun."
+
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
west to hallway descr
+
west to chamber descr
−
"You see what looks to be a hallway."
+
"The hallway opens up into a chamber.";
−
keyword {"air lock door","air lock","door"}
 
−
open {EX_OPEN_CLOSE, EX_CLOSED};
 
  
−
SECRET_DOOR_DIFFICULTY(SOUTH, 50)
+
east to office descr
−
south to portal_room descr
+
"You see what looks to be an office."
−
"You see what looks to be a portal room."
+
keyword {"air lock door", "air lock", "door"}
−
keyword {"air lock door","air lock","staff","door"}
+
open {EX_OPEN_CLOSE, EX_CLOSED};
−
key nokey
+
end
−
open {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED,EX_HIDDEN};
 
  
−
end
 
  
−
portal_room
+
office
−
title "Green field room"
+
title "The station office"
−
descr
+
descr
−
"Like the other rooms on the station this one is large enough for
+
"Large paintings fill the walls of this part of the station. The room
−
dragons to comfortably fit in. The strange thing about this room though
+
is as large as the other rooms, big enough for dragons to lounge in,
−
is it is totally empty except for a green field right in the center.
+
while a desk in one corner is small enough for a humanoid. The floor
−
there is a door that leads to another room to the north."
+
along the north wall is lined with some kind of fabric and seems very
 +
soft to walk on; judging by how large an area it covers, it may be a
 +
dragon lounge. There is a passage to the west."
  
−
movement SECT_INSIDE
+
extra {"paintings", "painting"}
−
ALWAYS_LIGHT
+
"The paintings show many dragons and riders at all kinds of tasks, from
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
combat to lookout. All the figures seem to be staring at a staff held
 +
by a wizard painted on the south wall."
  
−
extra {"green field","field"}
+
extra {"wizard", "staff"}
−
"The field looks to be a green fog shifting and churning as you watch.
+
"The wizard has his hand stretched out, and it seems there is a place
−
if you are nuts you could probably enter it."
+
where you could almost grab the staff. Maybe if you searched the staff
 +
you would find something."
  
−
north  to office descr
+
extra {"desk"}
−
"You see what looks to be an office."
+
"It's a desk all right, but it has no drawers and it is totally empty."
−
keyword {"air lock door","air lock","door"}
 
−
key nokey
 
−
open {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED};
 
  
−
//A link to the portal is also here from room_port
+
extra {"fabric"}
−
end
+
"Wussshhhhh! You bound across the comfortable floor. Wasn't that fun?"
  
−
ship_port
+
movement SECT_INSIDE
−
names{"green field", "field"}
+
ALWAYS_LIGHT
−
title "Green field"
+
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
−
descr
 
−
"Green Mist swirls about you."
 
  
−
movement SECT_INSIDE
+
west to hallway descr
−
ALWAYS_LIGHT
+
"You see what looks to be a hallway."
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
keyword {"air lock door", "air lock", "door"}
 +
open {EX_OPEN_CLOSE, EX_CLOSED};
  
−
in ship
+
south to portal_room descr
 +
"You see what looks to be a portal room."
 +
keyword {"air lock door", "air lock", "staff", "door"}
 +
key nokey
 +
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED, EX_HIDDEN}
 +
difficulty 10;
 +
end
  
−
dilcopy force_move@function(
 
−
//Time to activation
 
−
4,
 
−
//room and act
 
−
"portal_room@dragonst!You feel your body dissolving for lack of a better
 
−
description.&amp;You appear on the deck of a ship.",
 
−
//True or False for randomizing or not
 
−
FALSE);
 
  
−
end
+
portal_room
 +
title "Green field room"
 +
descr
 +
"Like the other rooms on the station this one is large enough for
 +
dragons to fit in comfortably. The strange thing about this room is
 +
that it is totally empty except for a green field right in the centre.
 +
A door leads to another room to the north."
  
−
room_port
+
extra {"green field", "field"}
−
names{"green field", "field"}
+
"The field looks to be a green fog, shifting and churning as you watch.
−
title "Green field"
+
If you are nuts you could probably enter it."
−
descr
 
−
"Green Mist swirls about you."
 
−
movement SECT_INSIDE
 
−
ALWAYS_LIGHT
 
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
 
  
−
in portal_room
+
movement SECT_INSIDE
 +
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
dilcopy force_move@function(
+
north to office descr
−
//Time to activation
+
"You see what looks to be an office."
−
4,
+
keyword {"air lock door", "air lock", "door"}
−
//room and act
+
key nokey
−
"ship@dragonst!You feel your body dissolving for lack of a better
+
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED}
−
description.&amp;You appear on the deck of a ship.",
+
difficulty 10;
−
//True or False for randomizing or not
 
−
FALSE);
 
  
−
end
+
// room_port is inside this room: the green field
 +
end
  
−
disposal_room
 
−
title "Red field room"
 
−
descr
 
−
"Like the other rooms on the station this one is large enough for
 
−
dragons to comfortably fit in.  The strange thing about this room though
 
−
is it is totally empty except for a red field right in the center.
 
−
there is a door that leads to another room to the east."
 
  
−
movement SECT_INSIDE
+
room_port
−
ALWAYS_LIGHT
+
names {"green field", "field"}
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
title "Green field"
 +
descr
 +
"Green mist swirls about you."
  
−
extra {"red field","field"}
+
movement SECT_INSIDE
−
"The field looks to be a red fog shifting and churning as you watch.
+
ALWAYS_LIGHT
−
if you are nuts you could probably enter it."
+
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
east to chamber descr
+
in portal_room
−
"You see the main chamber.";
 
  
−
//A link to the portal is also here from dis_port
+
dilcopy force_move@function(
−
end
+
  // ticks between moves: 12 is 3 seconds
 +
  12,
 +
  // the room to move to, then '!' and the message
 +
  "ship@dragonst!You feel your body dissolving.<br/>You appear on the deck of a ship.",
 +
  // FALSE: move at a steady rate
 +
  FALSE);
 +
end
  
−
dis_port
 
−
names {"red field","field"}
 
−
title "Red field"
 
−
descr
 
−
"Red Mist swirls about you."
 
  
−
movement SECT_INSIDE
+
ship
−
ALWAYS_LIGHT
+
title "War dragon"
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
descr
−
dilcopy force_move@function(
+
"Blue light softly glows from conduits that line the walls of this
−
//how fast to force move in seconds
+
ship. The floors beside the east and west walls have what looks to be
−
4,
+
soft fabric covering. Small controls along the south wall seem to be
−
//room to force move to and act
+
made for humanoids, with two small chairs that look to be pilot seats.
−
"deathspace@dragonst!You feel your body dissolving for lack of a better description.",
+
View ports are about 50 metres up the sides of the ship on the west
−
//true or false random move or not
+
and east walls, and some kind of electronic screen covers the south
−
0);
+
wall. The ship seems to be a one-room ship, but there is a green field
−
in disposal_room
+
by the north wall."
  
−
end
+
extra {"view ports", "view port", "ports", "port"}
 +
"Sorry, you're not 50 metres tall. Maybe they are made for a dragon?"
  
−
ship
+
extra {"view screen", "screen"}
−
title "War dragon"
+
"It seems to be the pilot's view screen, but you can't see a way to
−
descr
+
turn it on."
−
"Blue light softly glows from con duets that line the walls of this ship.
 
−
The floors beside the east and west wall have what looks to be soft
 
−
fabric covering.  The south wall has small controls that seem to be made
 
−
for humanoids with two small chairs that look to be pilot seats.  view
 
−
portals are about 50 meters up the side of the ship on the west and east
 
−
wall and some kind of electronic screen covers the south wall.  The ship
 
−
seems to be a one room ship but there is a green field by the north
 
−
wall."
 
  
−
movement SECT_INSIDE
+
extra {"controls", "control"}
−
ALWAYS_LIGHT
+
"The controls are in some weird language, and you're afraid that if you
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
start pushing buttons you might rocket into the station or, worse, slam
 +
into a planet."
  
−
extra {"view port"}
+
extra {"soft fabric", "fabric"}
−
"Sorry your not 50 meters tall maybe it is made for a dragon?"
+
"It looks to be a dragon lounge area."
  
−
extra {"view screen","screen"}
+
extra {"green field", "field"}
−
"It seems to be the pilots view screen but you can't seem to see a way
+
"The field looks to be a green fog, shifting and churning as you watch."
−
to turn it on."
 
  
−
extra {"controls","control"}
+
movement SECT_INSIDE
−
"The controls are in some weird language and your afraid if you start
+
ALWAYS_LIGHT
−
pushing buttons you might rocket in to the station or worse slam into
+
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
−
a planet."
 
  
−
extra {"soft fabric","fabric"}
+
// ship_port is inside this room: the green field
−
"It looks to be a dragon lounge area."
+
end
  
−
//A link to the portal is also here from ship_port
 
−
end
 
  
−
deathspace
+
ship_port
−
title"Open space"
+
names {"green field", "field"}
−
descr
+
title "Green field"
−
"You see the ship and the station far off in the distance and you are in Space!"
+
descr
 +
"Green mist swirls about you."
  
−
movement SECT_INSIDE
+
movement SECT_INSIDE
−
ALWAYS_LIGHT
+
ALWAYS_LIGHT
−
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
+
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
dilcopy death_room@function (
+
in ship
−
//how often is damage done 4 would be 1 second
 
−
4,
 
−
//damage
 
−
400,
 
−
//act for the damage.
 
−
"You realize to late that was the trash disposal transporter and you feel your lungs explode.");
 
  
−
end
+
dilcopy force_move@function(12,
 +
  "portal_room@dragonst!You feel your body dissolving.<br/>You appear in the station.",
 +
  FALSE);
 +
end
  
−
%mobiles
 
  
−
bldragon
+
disposal_room
 +
title "Red field room"
 +
descr
 +
"Like the other rooms on the station this one is large enough for
 +
dragons to fit in comfortably. The strange thing about this room is
 +
that it is totally empty except for a red field right in the centre.
 +
A passage leads back to the east."
  
−
title "a black dragon"
+
extra {"red field", "field"}
−
descr "A big ugly black dragon is clawing the ground here."
+
"The field looks to be a red fog, shifting and churning as you watch.
−
names {"big ugly black dragon","ugly black dragon","big black dragon",
+
If you are nuts you could probably enter it."
−
"black dragon","dragon"}
 
  
−
extra {}
+
movement SECT_INSIDE
−
"The black dragons scales glitter like black granite that has been
+
ALWAYS_LIGHT
−
polished for years by water.  He has a large neck and huge bat like
+
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
−
wings.  his eyes watch you as you stand before him.  One claw seems to be
 
−
tapping slightly on the ground as if the dragon is waiting for
 
−
something."
 
  
−
extra {"eye","eyes"}
+
east to chamber descr
−
"The dragons eyes seem to follow you no matter where you go in the room
+
"You see the main chamber.";
−
nothing seems to escape the dragons attention."
 
  
−
extra {"claws","claw"}
+
// dis_port is inside this room: the red field
−
"The claw is big black and it looks very deadly.  It seems like the
+
end
−
dragon has two sets of 4 large claws and 2 sets of 4 smaller claws which
 
−
to say means the claws are about the size of short swords and long
 
−
swords."
 
  
−
extra {"scales","scale"}
 
−
"Its a scale!  Haven't you ever seen a dragon before!"
 
  
−
extra {"bat wings","wings"}
+
dis_port
−
"The dragon sees you looking and flaps his wings creating one heck of a
+
names {"red field", "field"}
−
wind blast."
+
title "Red field"
 +
descr
 +
"Red mist swirls about you."
  
−
M_DRAGON_BLACK_OLD(SEX_MALE)
+
movement SECT_INSIDE
 +
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}
  
−
end
+
in disposal_room
  
−
janitor
+
dilcopy force_move@function(12,
−
names {"ugly janitor", "janitor", "hobgoblin"}
+
  "deathspace@dragonst!You feel your body dissolving.",
−
title "an ugly janitor"
+
  FALSE);
−
descr "an ugly janitor is walking around, cleaning up."
+
end
  
−
extra{}
 
−
"This ugly green thing looks more goblin than hobgoblin but he seems intent
 
−
on cleaning everything around him."
 
  
−
M_AVG_HOBGOBLIN(6, SEX_MALE)
+
deathspace
 +
title "Open space"
 +
descr
 +
"You see the ship and the station far off in the distance, and you are
 +
in space!"
  
−
// he is sort of good for cleaning so much
+
movement SECT_INSIDE
−
alignment 900
+
ALWAYS_LIGHT
 +
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS, UNIT_FL_NOSAVE}
  
−
//give him some money
+
dilcopy death_room@function(
−
money 5 IRON_PIECE
+
  // ticks between hits: 12 is 3 seconds, the shortest it allows
 +
  12,
 +
  // hit points of damage per hit
 +
  400,
 +
  // the message for each hit
 +
  "Too late you realise that was the rubbish disposal. Your lungs explode!");
 +
end
  
−
dilcopy janitors@function(15);
+
%mobiles
  
−
// only want him cleaning the station
+
bldragon
−
dilcopy wander_zones@function("dragonst", 20, 1, 1);
+
title "a black dragon"
 +
descr "A big ugly black dragon is clawing the ground here."
 +
names {"big ugly black dragon", "ugly black dragon", "big black dragon",
 +
      "black dragon", "dragon"}
  
−
end
+
extra {}
 +
"The black dragon's scales glitter like black granite that has been
 +
polished by water for years. He has a long neck and huge bat-like
 +
wings. His eyes watch you as you stand before him. One claw is tapping
 +
slightly on the ground, as if the dragon is waiting for something."
  
−
bob
+
extra {"eyes", "eye"}
 +
"The dragon's eyes seem to follow you wherever you go in the room.
 +
Nothing seems to escape the dragon's attention."
  
−
names {"Bob"}
+
extra {"claws", "claw"}
−
title "Bob"
+
"The claws are big, black and very deadly. The dragon has two sets of
−
descr "Bob the Banker is here, sitting behind the counter."
+
four large claws and two sets of four smaller ones; the small ones are
−
extra {}
+
the size of short swords, the large ones the size of long swords."
−
"He has a very serious look on his face."
 
  
−
// define from composed.h
+
extra {"scales", "scale"}
−
M_SHOP_KEEPER(4, SEX_MALE, RACE_HUMAN)
+
"It's a scale! Haven't you ever seen a dragon before?"
  
−
//discourage people from killing banker
+
extra {"bat wings", "wings"}
−
exp -500
+
"The dragon sees you looking and flaps his wings, creating one heck of
 +
a wind blast."
  
−
flags {UNIT_FL_NO_TELEPORT}
+
M_DRAGON_BLACK_MEDIUM(70, SEX_MALE)
 +
end
  
−
special SFUN_BANK
 
−
end
 
  
−
%objects
+
janitor
 +
names {"ugly janitor", "janitor", "hobgoblin"}
 +
title "an ugly janitor"
 +
descr "An ugly janitor is walking around, cleaning up."
  
−
info_board
+
extra {}
 +
"This ugly green thing looks more goblin than hobgoblin, but he seems
 +
intent on cleaning everything around him."
  
−
title "a merchant information board"
+
M_AVG_HOBGOBLIN(6, SEX_MALE)
−
descr "A merchant information Board is mounted on a wall here."
 
−
names {"merchant information board","information board","merchant
 
−
board","board"} extra {} "A large flashy black steal board."
 
  
−
MATERIAL_METAL("A very fine quality black steel")
+
// he is sort of good for cleaning so much
−
type ITEM_BOARD
+
alignment 900
−
dilcopy board@boards("info","","rem_res@boards","",100);
 
  
−
end
+
// give him some money
 +
money 5 IRON_PIECE
  
−
w_stiletto
+
dilcopy janitors@midgaard(15);
−
title "a stiletto"
 
−
names {"deadly looking stiletto","deadly stiletto","stiletto", "dagger"}
 
−
descr "A deadly looking stiletto has been left here."
 
  
−
MATERIAL_METAL("A very fine quality steel")
+
// he only cleans the station, and doesn't unlock doors
−
manipulate {MANIPULATE_TAKE, MANIPULATE_WIELD}
+
dilcopy wander_zones@function("dragonst", 20, 1, 0);
−
WEAPON_DEF(WPN_DAGGER, 1, 2)
+
end
−
weight 2
 
−
cost 2 GOLD_PIECE
 
−
rent 1 COPPER_PIECE
 
  
−
SKILL_TRANSFER(SKI_BACKSTAB, 2)
 
−
dilcopy abi_restrict@function (ABIL_DEX,10,0,25,"");
 
  
−
extra{}
+
bob
−
"This looks like a thieves dream come true. "
+
names {"Bob", "banker"}
 +
title "Bob"
 +
descr "Bob the Banker is here, sitting behind the counter."
 +
extra {}
 +
"He has a very serious look on his face."
  
−
extra {"$identify"}
+
M_SHOP_KEEPER(4, SEX_MALE, RACE_HUMAN)
−
"The stiletto looks magical in nature and seems really sharp.  You can
 
−
tell if you wield it you would be able to backstab someone really easy."
 
  
−
extra{"$improved identify"}
+
// discourage people from killing the banker
−
"The stiletto gives you a magical bonus of +1 and has a quality of +2.
+
exp -500
−
It also raises your back stabbing skill  by 2%.  You have to have at
 
−
least 10% in dex before you can wield this magical weapon."
 
  
−
end
+
flags {UNIT_FL_NO_TELEPORT}
  
−
wpn_locker
+
special SFUN_BANK
 +
end
  
−
title "a weapons locker"
+
%objects
−
names {"weapons locker","weapon locker","locker"}
 
  
−
descr "a small weapons locker hangs on the wall here."
+
info_board
−
manipulate {MANIPULATE_ENTER}
+
names {"merchant information board", "information board", "merchant board",
−
CONTAINER_DEF(500)
+
      "board"}
−
open {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED}
+
title "a merchant information board"
−
weight 400
+
descr "A merchant information board is mounted on a wall here."
−
MATERIAL_METAL("A very fine quality steel")
+
extra {}
 +
"A large flashy black steel board."
 +
MATERIAL_METAL("A very fine quality black steel")
 +
type ITEM_BOARD
 +
dilcopy board@boards("info", "", "rem_res@boards", "", 100);
 +
end
  
−
extra {}
+
wpn_locker
−
"It is an ordinary weapons locker that looks like it holds any illegal
+
names {"weapons locker", "weapon locker", "locker"}
−
weapons that are taken on the station."
+
title "a weapons locker"
 +
descr "A small weapons locker hangs on the wall here."
 +
extra {}
 +
"It is an ordinary weapons locker that looks like it holds any illegal
 +
weapons that are taken on the station."
 +
MATERIAL_METAL("A very fine quality steel")
 +
CONTAINER_DEF(50)
 +
manipulate {MANIPULATE_ENTER}
 +
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED}
 +
key black_key
 +
weight 400
 +
end
  
−
end
+
black_key
 +
names {"small black key", "black key", "key"}
 +
title "a small black key"
 +
descr "A small black key has been dropped here."
 +
extra {}
 +
"It is a plain key of black steel. It looks like it fits a locker."
 +
MATERIAL_METAL("Black steel")
 +
type ITEM_KEY
 +
manipulate {MANIPULATE_TAKE, MANIPULATE_HOLD}
 +
weight 1
 +
end
  
−
pol_plate
+
w_stiletto
−
names {"polished breast plate","polished plate","breast plate","plate"}
+
names {"deadly looking stiletto", "deadly stiletto", "stiletto", "dagger"}
−
title "a polished breast plate"
+
title "a stiletto"
−
descr "A polished breast plate has been left here."
+
descr "A deadly looking stiletto has been left here."
−
extra{}
+
extra {}
−
"This is one shiny plate it seems to be made out of one perfect piece of
+
"This looks like a thief's dream come true."
−
metal.  There doesn't even seem to be any markings of owner ship." manipulate
+
MATERIAL_METAL("A very fine quality steel")
−
{MANIPULATE_TAKE, MANIPULATE_WEAR_BODY} ARMOUR_PLATE(5,9)
+
WEAPON_DEF(WPN_DAGGER, BONUS_AVERAGE_PLUS, BONUS_GOOD)
 +
SKILL_TRANSFER(SKI_BACKSTAB, 2)
 +
dilcopy abi_restrict@function(ABIL_DEX, 10, 0, 25, "");
 +
weight 2
 +
cost 2 GOLD_PIECE
 +
rent 1 COPPER_PIECE
  
−
MATERIAL_METAL("A high luster silver colored metal")
+
extra {"$identify"}
 +
"The stiletto looks magical in nature and seems really sharp. You can
 +
tell that if you wield it you would be able to backstab someone really
 +
easily."
  
−
manipulate {MANIPULATE_TAKE, MANIPULATE_WEAR_BODY}
+
extra {"$improved identify"}
−
ARMOUR_DEF(ARM_PLATE,5,9)
+
"The stiletto has a magic bonus of +2 and a craftsmanship of +1. It
−
dilcopy abi_restrict@function (ABIL_STR,40,0,25,"");
+
also raises your backstab skill by 2. You need a dexterity of at least
−
cost 2 GOLD_PIECE
+
10 to wield it."
−
rent 3 COPPER_PIECE
+
end
−
weight 25
 
  
−
extra{"$identify"}
+
pol_plate
−
"This is a high quality plate with a magical feeling."
+
names {"polished breast plate", "polished plate", "breast plate", "plate"}
 +
title "a polished breast plate"
 +
descr "A polished breast plate has been left here."
 +
extra {}
 +
"This is one shiny plate. It seems to be made out of one perfect piece
 +
of metal. There don't even seem to be any marks of ownership."
 +
MATERIAL_METAL("A high lustre silver coloured metal")
 +
ARMOUR_DEF(ARM_PLATE, BONUS_EXCELLENT, BONUS_GOOD_PLUS)
 +
manipulate {MANIPULATE_WEAR_BODY}
 +
dilcopy abi_restrict@function(ABIL_STR, 40, 0, 25, "");
 +
weight 25
 +
cost 2 GOLD_PIECE
 +
rent 3 COPPER_PIECE
  
−
extra{"$improved identify"}
+
extra {"$identify"}
−
"The plate has a magical bonus to your defence of a +5 and a quality of
+
"This is a high quality plate with a magical feeling."
−
+9.  You need 40% in strength to be able to wear it."
 
−
end
 
  
−
liq_ration
+
extra {"$improved identify"}
−
names {"red bag", "bag", "wine"}
+
"The plate has a magic bonus of +3 and a craftsmanship of +4. You need
−
title "a red bag"
+
a strength of at least 40 to wear it."
−
descr "A red bag has been gently placed here."
+
end
  
−
MATERIAL_ORGANIC("a soft plastic")
+
liq_ration
−
manipulate {MANIPULATE_TAKE}
+
names {"red bag", "bag", "wine"}
 +
title "a red bag"
 +
descr "A red bag has been gently placed here."
 +
extra {}
 +
"A small label reads: Tassel Grove's finest. Year 321."
 +
MATERIAL_ORGANIC("a soft plastic")
 +
LIQ_WINE(1, 2, 2, 0)
 +
manipulate {MANIPULATE_TAKE}
 +
cost 2 IRON_PIECE
  
−
LIQ_WINE(1,2,2,0)
+
extra {"$identify"}
−
cost 2 IRON_PIECE
+
"It's the special wine from Tassel Grove, a small halfling village on the
−
extra {}
+
planet Valhalla. It seems like a great vintage."
−
"A small label reads Tassel Grove's finest. Year 321"
+
end
  
−
extra {"$identify"}
+
beef_stick
−
"Its the special wine from Tassel grove a small halfling village on the
+
names {"tough leathery stick", "tough leather stick", "leathery stick",
−
planet Valhalla. It seems like a great vintage wine."
+
      "leather stick", "tough stick", "stick"}
 +
title "a tough leathery stick"
 +
descr "A tough leathery looking stick is lying here."
 +
extra {}
 +
"This has the word BEEF burnt into it."
 +
MATERIAL_ORGANIC("tough beef")
 +
FOOD_DEF(5, 0)
 +
manipulate {MANIPULATE_TAKE}
 +
weight 1
 +
cost 1 COPPER_PIECE
 +
end
  
−
end
+
maskwa
 +
names {"maskwa platinum ring", "platinum ring", "maskwa ring", "maskwa",
 +
      "ring"}
 +
title "a Maskwa ring"
 +
descr "A Maskwa platinum ring is lying here."
 +
extra {}
 +
"The ring has a large bear head. Could this be the legendary head of
 +
Maskwa? Anything formed with its head on it is said to strengthen the
 +
wearer."
 +
MATERIAL_METAL("Platinum, and other precious metals")
 +
type ITEM_WORN
 +
manipulate {MANIPULATE_TAKE, MANIPULATE_WEAR_FINGER}
 +
STR_TRANSFER(+1)
 +
weight 1
 +
cost 100 COPPER_PIECE
 +
rent 50 IRON_PIECE
 +
end
  
−
beef_stick
 
  
−
title "a tough leathery stick"
+
%reset
−
descr "A tough leathery looking stick is laying here."
 
−
names {"tough leathery stick","tough leather stick","leathery stick",
 
−
"leather stick","tough stick","stick"}
 
  
−
extra {}
+
// The office door: closed again at every reset
−
"This has the word BEEF burnt into it."
+
door hallway EAST {EX_OPEN_CLOSE, EX_CLOSED}
 +
door office WEST {EX_OPEN_CLOSE, EX_CLOSED}
  
−
manipulate {MANIPULATE_TAKE}
+
// The secret door: hidden and locked on the office side,
−
FOOD_DEF(5,0)
+
// only locked on the portal room side
−
weight 1
+
door office SOUTH {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED, EX_HIDDEN}
−
cost 1 COPPER_PIECE
+
door portal_room NORTH {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED}
−
MATERIAL_ORGANIC("tough beef")
 
−
end
 
  
−
  maskwa
+
load info_board into chamber
  
−
names {"maskwa platinum ring", "platinum ring","maskwa ring","maskwa","ring"}
+
load wpn_locker into office
−
title "a Maskwa ring"
+
{
−
descr "A Maskwa platinum ring is laying here."
+
  load w_stiletto
−
MATERIAL_METAL("Platinum, and other precious metals")
+
}
−
extra {}
 
−
"The ring has a large bear head.  Could this be the legendary head of
 
−
Maskwa?  Any thing formed with its head on it is said to strengthen the
 
−
wearer."
 
−
type ITEM_WORN
 
−
manipulate {MANIPULATE_TAKE, MANIPULATE_HOLD, MANIPULATE_WEAR_FINGER}
 
−
cost 100 COPPER_PIECE
 
−
rent 50 IRON_PIECE
 
−
weight 1
 
−
STR_TRANSFER(+1)
 
−
end
 
  
−
%reset
+
load bob into office
 +
{
 +
  equip pol_plate position WEAR_BODY
 +
  load black_key
 +
}
  
−
//Office door reset
+
load janitor into chamber
−
door hallway EAST {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED}
+
{
−
door office WEST {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED}
+
  equip pol_plate position WEAR_BODY
 +
  load beef_stick
 +
  load liq_ration
 +
}
  
−
//secret door reset
+
random 50
−
door office SOUTH {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED,EX_HIDDEN}
+
{
−
door portal_room  NORTH {EX_OPEN_CLOSE, EX_CLOSED,EX_LOCKED}
+
  load bldragon into ship
 +
  {
 +
      load maskwa
 +
  }
 +
}
  
−
load info_board into chamber
+
%end
−
 
+
</pre>
−
load wpn_locker into office
 
−
  {
 
−
  load w_stiletto
 
−
  }
 
−
 
 
−
  load bob into office
 
−
  {
 
−
  equip pol_plate WEAR_BODY
 
−
  }
 
−
 
 
−
  load janitor into chamber
 
−
    {
 
−
equip pol_plate WEAR_BODY
 
−
}
 
−
 
 
−
random 50
 
−
  {
 
−
  load bldragon
 
−
      {
 
−
  load maskwa
 
−
  }
 
−
  }
 
−
 
 
−
%end</nowiki>
 
  
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'>[[Manual:Zone_Manual/The_Reset_Section/Reset_walk_through|Previous: Reset walk through]]</div>
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'>[[Manual:Zone_Manual/The_Reset_Section/Reset_walk_through|Previous: Reset walk through]]</div>
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'>[[Manual:Zone_Manual/Color_and_Formatting_Codes|Next: Color and Formatting Codes]]</div>
 
<div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'>[[Manual:Zone_Manual/Color_and_Formatting_Codes|Next: Color and Formatting Codes]]</div>

Latest revision as of 06:23, 15 November 2026

The complete dragon station

This is the whole dragon station: the rooms, NPCs and objects of the earlier chapters, with the reset section from Reset walk through. It compiles as it is with the current vmc.

To try it, save it as dragonst.zon in vme/zone/. A zone file must have the same name as its zone (%zone dragonst), or the server stops at boot. Compile it from that directory:

../bin/vmc -m -d ../etc/ -I../include/ dragonst.zon

which prints

VMC 2.0 Copyright (C) 2001 by Valhalla [Nov 14 2026]
VMC Compiled with [-DDMSERVER -DPOSIX -DVMC -DVMC_SRC -DLINUX -DMUD_DEBUG]
Compiling 'dragonst.zon'
VMC Done.

(the date is the day your vmc was built). Then add a line for dragonst to vme/etc/zonelist, copying the line of another zone, and restart the server: it reads zones only at boot. Log in as an administrator and goto chamber@dragonst. If something doesn't show up, look in the server log and in wstat zone dragonst errors: vmc doesn't check the names used in exits, keys, dilcopy lines and resets, so a misspelt one only shows up there.

A few things in it that the earlier chapters only touched on:

  • The green and red fields are rooms inside rooms (in portal_room, in ship, in disposal_room). Players get into them with enter field, and force_move@function then moves them on after a few seconds.
  • deathspace uses death_room@function, which takes 400 hit points every three seconds from players in the room: anyone who walks into the red field dies.
  • The janitor's janitors@midgaard makes him pick up what lies around; wander_zones@function keeps him walking about the station, opening doors but not unlocking them.
  • Bob is a banker through special SFUN_BANK. He also carries the key to the weapons locker.
#include <macros.h>

%zone dragonst
lifespan 20
reset RESET_ANYHOW
creators {"whistler"}

notes
"This is the dragon station. I shortened it to dragonst for ease in
loading."

help
"Not sure what could help you now. You are stuck on one of the
weirdest space stations you have ever seen and you smell burning
sulphur."

%rooms

chamber
title "The middle chamber of the station"
descr
"This chamber seems to have the entire station rotating around it. It
is unbelievably large: the ceiling is a good 200 metres high and the
room is perfectly cubic. Small human-size ornate chairs with dragon
designs on the arms and backs are arranged in a triangle, with one
large chair at the front. This must be where all station meetings are
held. Large pictures cover the walls, showing dragons in all kinds of
situations. Large passages lead off to the west and the east."

extra {"chairs", "chair"}
"The chairs are made of some metal you don't recognise and every inch
is covered with some kind of dragon."

extra {"dragon picture", "picture"}
"Thousands of dragons dot the skies of this rather lifelike picture. In
the centre you see something move. It looks to be a little green
dragon."

extra {"green dragon", "dragon", "green"}
"An intelligent-looking dragon is sitting perched on a large chair,
watching you."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

west to disposal_room descr
"You see a small room.";

east to hallway descr
"You see what looks to be a hallway.";
end


hallway
title "Module tunnel"
descr
"The hallway is about 50 metres long and around 100 metres from side to
side and top to bottom. It seems to be dust free. The walls and the
floor are made of the same sterile metal-plastic that all space
agencies use. Large plate glass windows open up into space. The
hallway is filled with a dim light that seems to come from everywhere
and nowhere at once. You notice a glimmer of bright light coming from
the windows. To the east you see an air lock and to the west the
hallway opens up into a larger room."

extra {"windows", "window"}
"Your eyes are drawn to a large ship lit up with running lights,
sitting about a kilometre from the station."

extra {"floor", "walls", "wall"}
"Well, what can be said? It looks to be in perfect condition."

extra {"large ship", "ship"}
"The ship looks really big and is shaped like a dragon. The scales
sparkle and seem to be many colours."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

west to chamber descr
"The hallway opens up into a chamber.";

east to office descr
"You see what looks to be an office."
keyword {"air lock door", "air lock", "door"}
open {EX_OPEN_CLOSE, EX_CLOSED};
end


office
title "The station office"
descr
"Large paintings fill the walls of this part of the station. The room
is as large as the other rooms, big enough for dragons to lounge in,
while a desk in one corner is small enough for a humanoid. The floor
along the north wall is lined with some kind of fabric and seems very
soft to walk on; judging by how large an area it covers, it may be a
dragon lounge. There is a passage to the west."

extra {"paintings", "painting"}
"The paintings show many dragons and riders at all kinds of tasks, from
combat to lookout. All the figures seem to be staring at a staff held
by a wizard painted on the south wall."

extra {"wizard", "staff"}
"The wizard has his hand stretched out, and it seems there is a place
where you could almost grab the staff. Maybe if you searched the staff
you would find something."

extra {"desk"}
"It's a desk all right, but it has no drawers and it is totally empty."

extra {"fabric"}
"Wussshhhhh! You bound across the comfortable floor. Wasn't that fun?"

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

west to hallway descr
"You see what looks to be a hallway."
keyword {"air lock door", "air lock", "door"}
open {EX_OPEN_CLOSE, EX_CLOSED};

south to portal_room descr
"You see what looks to be a portal room."
keyword {"air lock door", "air lock", "staff", "door"}
key nokey
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED, EX_HIDDEN}
difficulty 10;
end


portal_room
title "Green field room"
descr
"Like the other rooms on the station this one is large enough for
dragons to fit in comfortably. The strange thing about this room is
that it is totally empty except for a green field right in the centre.
A door leads to another room to the north."

extra {"green field", "field"}
"The field looks to be a green fog, shifting and churning as you watch.
If you are nuts you could probably enter it."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

north to office descr
"You see what looks to be an office."
keyword {"air lock door", "air lock", "door"}
key nokey
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED}
difficulty 10;

// room_port is inside this room: the green field
end


room_port
names {"green field", "field"}
title "Green field"
descr
"Green mist swirls about you."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

in portal_room

dilcopy force_move@function(
   // ticks between moves: 12 is 3 seconds
   12,
   // the room to move to, then '!' and the message
   "ship@dragonst!You feel your body dissolving.<br/>You appear on the deck of a ship.",
   // FALSE: move at a steady rate
   FALSE);
end


ship
title "War dragon"
descr
"Blue light softly glows from conduits that line the walls of this
ship. The floors beside the east and west walls have what looks to be
soft fabric covering. Small controls along the south wall seem to be
made for humanoids, with two small chairs that look to be pilot seats.
View ports are about 50 metres up the sides of the ship on the west
and east walls, and some kind of electronic screen covers the south
wall. The ship seems to be a one-room ship, but there is a green field
by the north wall."

extra {"view ports", "view port", "ports", "port"}
"Sorry, you're not 50 metres tall. Maybe they are made for a dragon?"

extra {"view screen", "screen"}
"It seems to be the pilot's view screen, but you can't see a way to
turn it on."

extra {"controls", "control"}
"The controls are in some weird language, and you're afraid that if you
start pushing buttons you might rocket into the station or, worse, slam
into a planet."

extra {"soft fabric", "fabric"}
"It looks to be a dragon lounge area."

extra {"green field", "field"}
"The field looks to be a green fog, shifting and churning as you watch."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

// ship_port is inside this room: the green field
end


ship_port
names {"green field", "field"}
title "Green field"
descr
"Green mist swirls about you."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

in ship

dilcopy force_move@function(12,
   "portal_room@dragonst!You feel your body dissolving.<br/>You appear in the station.",
   FALSE);
end


disposal_room
title "Red field room"
descr
"Like the other rooms on the station this one is large enough for
dragons to fit in comfortably. The strange thing about this room is
that it is totally empty except for a red field right in the centre.
A passage leads back to the east."

extra {"red field", "field"}
"The field looks to be a red fog, shifting and churning as you watch.
If you are nuts you could probably enter it."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

east to chamber descr
"You see the main chamber.";

// dis_port is inside this room: the red field
end


dis_port
names {"red field", "field"}
title "Red field"
descr
"Red mist swirls about you."

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS}

in disposal_room

dilcopy force_move@function(12,
   "deathspace@dragonst!You feel your body dissolving.",
   FALSE);
end


deathspace
title "Open space"
descr
"You see the ship and the station far off in the distance, and you are
in space!"

movement SECT_INSIDE
ALWAYS_LIGHT
flags {UNIT_FL_NO_WEATHER, UNIT_FL_INDOORS, UNIT_FL_NOSAVE}

dilcopy death_room@function(
   // ticks between hits: 12 is 3 seconds, the shortest it allows
   12,
   // hit points of damage per hit
   400,
   // the message for each hit
   "Too late you realise that was the rubbish disposal. Your lungs explode!");
end

%mobiles

bldragon
title "a black dragon"
descr "A big ugly black dragon is clawing the ground here."
names {"big ugly black dragon", "ugly black dragon", "big black dragon",
       "black dragon", "dragon"}

extra {}
"The black dragon's scales glitter like black granite that has been
polished by water for years. He has a long neck and huge bat-like
wings. His eyes watch you as you stand before him. One claw is tapping
slightly on the ground, as if the dragon is waiting for something."

extra {"eyes", "eye"}
"The dragon's eyes seem to follow you wherever you go in the room.
Nothing seems to escape the dragon's attention."

extra {"claws", "claw"}
"The claws are big, black and very deadly. The dragon has two sets of
four large claws and two sets of four smaller ones; the small ones are
the size of short swords, the large ones the size of long swords."

extra {"scales", "scale"}
"It's a scale! Haven't you ever seen a dragon before?"

extra {"bat wings", "wings"}
"The dragon sees you looking and flaps his wings, creating one heck of
a wind blast."

M_DRAGON_BLACK_MEDIUM(70, SEX_MALE)
end


janitor
names {"ugly janitor", "janitor", "hobgoblin"}
title "an ugly janitor"
descr "An ugly janitor is walking around, cleaning up."

extra {}
"This ugly green thing looks more goblin than hobgoblin, but he seems
intent on cleaning everything around him."

M_AVG_HOBGOBLIN(6, SEX_MALE)

// he is sort of good for cleaning so much
alignment 900

// give him some money
money 5 IRON_PIECE

dilcopy janitors@midgaard(15);

// he only cleans the station, and doesn't unlock doors
dilcopy wander_zones@function("dragonst", 20, 1, 0);
end


bob
names {"Bob", "banker"}
title "Bob"
descr "Bob the Banker is here, sitting behind the counter."
extra {}
"He has a very serious look on his face."

M_SHOP_KEEPER(4, SEX_MALE, RACE_HUMAN)

// discourage people from killing the banker
exp -500

flags {UNIT_FL_NO_TELEPORT}

special SFUN_BANK
end

%objects

info_board
names {"merchant information board", "information board", "merchant board",
       "board"}
title "a merchant information board"
descr "A merchant information board is mounted on a wall here."
extra {}
"A large flashy black steel board."
MATERIAL_METAL("A very fine quality black steel")
type ITEM_BOARD
dilcopy board@boards("info", "", "rem_res@boards", "", 100);
end

wpn_locker
names {"weapons locker", "weapon locker", "locker"}
title "a weapons locker"
descr "A small weapons locker hangs on the wall here."
extra {}
"It is an ordinary weapons locker that looks like it holds any illegal
weapons that are taken on the station."
MATERIAL_METAL("A very fine quality steel")
CONTAINER_DEF(50)
manipulate {MANIPULATE_ENTER}
open {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED}
key black_key
weight 400
end

black_key
names {"small black key", "black key", "key"}
title "a small black key"
descr "A small black key has been dropped here."
extra {}
"It is a plain key of black steel. It looks like it fits a locker."
MATERIAL_METAL("Black steel")
type ITEM_KEY
manipulate {MANIPULATE_TAKE, MANIPULATE_HOLD}
weight 1
end

w_stiletto
names {"deadly looking stiletto", "deadly stiletto", "stiletto", "dagger"}
title "a stiletto"
descr "A deadly looking stiletto has been left here."
extra {}
"This looks like a thief's dream come true."
MATERIAL_METAL("A very fine quality steel")
WEAPON_DEF(WPN_DAGGER, BONUS_AVERAGE_PLUS, BONUS_GOOD)
SKILL_TRANSFER(SKI_BACKSTAB, 2)
dilcopy abi_restrict@function(ABIL_DEX, 10, 0, 25, "");
weight 2
cost 2 GOLD_PIECE
rent 1 COPPER_PIECE

extra {"$identify"}
"The stiletto looks magical in nature and seems really sharp. You can
tell that if you wield it you would be able to backstab someone really
easily."

extra {"$improved identify"}
"The stiletto has a magic bonus of +2 and a craftsmanship of +1. It
also raises your backstab skill by 2. You need a dexterity of at least
10 to wield it."
end

pol_plate
names {"polished breast plate", "polished plate", "breast plate", "plate"}
title "a polished breast plate"
descr "A polished breast plate has been left here."
extra {}
"This is one shiny plate. It seems to be made out of one perfect piece
of metal. There don't even seem to be any marks of ownership."
MATERIAL_METAL("A high lustre silver coloured metal")
ARMOUR_DEF(ARM_PLATE, BONUS_EXCELLENT, BONUS_GOOD_PLUS)
manipulate {MANIPULATE_WEAR_BODY}
dilcopy abi_restrict@function(ABIL_STR, 40, 0, 25, "");
weight 25
cost 2 GOLD_PIECE
rent 3 COPPER_PIECE

extra {"$identify"}
"This is a high quality plate with a magical feeling."

extra {"$improved identify"}
"The plate has a magic bonus of +3 and a craftsmanship of +4. You need
a strength of at least 40 to wear it."
end

liq_ration
names {"red bag", "bag", "wine"}
title "a red bag"
descr "A red bag has been gently placed here."
extra {}
"A small label reads: Tassel Grove's finest. Year 321."
MATERIAL_ORGANIC("a soft plastic")
LIQ_WINE(1, 2, 2, 0)
manipulate {MANIPULATE_TAKE}
cost 2 IRON_PIECE

extra {"$identify"}
"It's the special wine from Tassel Grove, a small halfling village on the
planet Valhalla. It seems like a great vintage."
end

beef_stick
names {"tough leathery stick", "tough leather stick", "leathery stick",
       "leather stick", "tough stick", "stick"}
title "a tough leathery stick"
descr "A tough leathery looking stick is lying here."
extra {}
"This has the word BEEF burnt into it."
MATERIAL_ORGANIC("tough beef")
FOOD_DEF(5, 0)
manipulate {MANIPULATE_TAKE}
weight 1
cost 1 COPPER_PIECE
end

maskwa
names {"maskwa platinum ring", "platinum ring", "maskwa ring", "maskwa",
       "ring"}
title "a Maskwa ring"
descr "A Maskwa platinum ring is lying here."
extra {}
"The ring has a large bear head. Could this be the legendary head of
Maskwa? Anything formed with its head on it is said to strengthen the
wearer."
MATERIAL_METAL("Platinum, and other precious metals")
type ITEM_WORN
manipulate {MANIPULATE_TAKE, MANIPULATE_WEAR_FINGER}
STR_TRANSFER(+1)
weight 1
cost 100 COPPER_PIECE
rent 50 IRON_PIECE
end


%reset

// The office door: closed again at every reset
door hallway EAST {EX_OPEN_CLOSE, EX_CLOSED}
door office WEST {EX_OPEN_CLOSE, EX_CLOSED}

// The secret door: hidden and locked on the office side,
// only locked on the portal room side
door office SOUTH {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED, EX_HIDDEN}
door portal_room NORTH {EX_OPEN_CLOSE, EX_CLOSED, EX_LOCKED}

load info_board into chamber

load wpn_locker into office
{
   load w_stiletto
}

load bob into office
{
   equip pol_plate position WEAR_BODY
   load black_key
}

load janitor into chamber
{
   equip pol_plate position WEAR_BODY
   load beef_stick
   load liq_ration
}

random 50
{
   load bldragon into ship
   {
      load maskwa
   }
}

%end
Previous: Reset walk through
Next: Color and Formatting Codes