clankeys.readme1st

clankeys.readme1st · 3.6 KB

From the archive clankeys.zip

Download the archive   « Back to the archive contents

This file will explain what Feydrex's load_clankey code does,
and how to use it.  This snippet was created by Feydrex in June
of 1999.  It was first tested on a MUD called Lothlorien which is
currently located at lothlorien.wolfpaw.net 6000
This code can currently be found at the following WWW URL:
http://www.geocities.net/feydrex/code.html
I also have my clan guards code there too which was written and
released back in Janurary of 1997.

- Why an automated clan key loading code?

There are many defenses available for clans to purchase for their
clan hall.  One such defense is a locked entrance door to the
clan hall.  (Extras such as making the door pass_door proof may
cost extra, depending on your pricing guide.)  The situation though
is that on most MUDs keys do not save (and in my personal view,
they shouldn't as it can make the game a little more challenging).
Instead of making all keys save, or making a clan flag for the
key (Lord knows some MUDs already have too many flags), I decided
to have a person's clan key load automatically onto themself each
time they log into the game.  It has to be done each time they log
in since the key does not save.  One very interesting side effect
to that is that is someone from another clan murders the person
and loots the key, that key will only last until the keyholder
quits.  Note that I said the keyholder and not the person that
lost the key.  Keys only vanish if someone has it in their
inventory when they quit.  If they drop it on the floor or give
it to someone else, it won't vanish.  If you want to keep raiders
from keeping keys to other clan halls on their floors, you could
always make the keys melt_drop.  The choice of course is up to you.

If you are new to clan defenses, you might be wondering what the
point of having a locked door is when someone can just gate to
a person or a guard on the other side.  The thing to remember is
that this is just one part of a defense.  Clans should also be able
to purchase room flags such as no_gate (or no_recall on some MUDs)
which would keep someone from being able to gate in.  Again the
choice is up to you, it all depends on how you want to handle
clan halls on your MUD.  I am just providing the code to make this
extra clan defense possible.

When you first put in this code, you probably won't have any clans
that have already purchased a locked door.  If this is the case then
when you add the clankey vnum to your code just put a 0 for each
clan for the time being.  This will simply tell the MUD not to load
a key for those people that are in that clan (also includes clanless
and outcasts).

Once a clan purchases a locked door, you need to go into the area
file and change that door to a locked door.  Don't forget to
at least lock the door from the outside room if you don't lock
both sides of the door.  Then create an object of the key type
that will be able to unlock (and lock it back up of course) the
door.  If you're not sure how to do this, see the documentation
that came with your MUD code base.  Once you have the locked door
and associated key in the area file, then go into the clan_table
in the code and change the clankey vnum for that clan from 0 to
whatever object vnum you assigned to the key.  Don't forget to
recompile and reboot for the change to take effect.

AFTER reading this and reading through the code, if you still
have any questions, feel free to email me at feydrex@hotmail.com
or come by lothlorien.wolfpaw.net 6000

Remember to read the license.clankey file for important info.
Thank you for downloading my code and may your players enjoy it.
    - Feydrex

Site Stats

Snippets: 1791
Codebases: 571