Re: [CODE] Corpse Retrieval

From: Matt Vail (ruins@GIBLETS.COM)
Date: 03/24/98

On Tue, 24 Mar 1998, Clark Kent wrote:

> Hi everyone,
>     Well I've been thinking about how to code this for awhile, but got lost on one
> part. I've implemented a corpse retrieval system that sends newbie corpses to a
> certain room so they can get their stuff back. I want to make it so only they can
> get the stuff from the corpse, but have no idea how to make it so the corpse
> belongs to the person who died. I'm also trying to make a system for clan eq so
> that clans can have their own eq that they purchase from gods who create the eq for
> them. Has anyone been succesful with this? I'm using the clan code from the
> CircleMUD Code Snippets page. If someone culd help me with either of these
> problems, I'd appreciate it =).

Okay, what I did on my mud is simply use one of the used the key value if
it was a corpse, to store the player id whos corpse it belongs to.  Then
when the player goes to either pick up, or get items from that corpse, it
checks to see if the idnum of the character matches the number stored in
that value.  This also made it possible for me to implement a sort of
assigning.  Players can now assign people to get their corpse.  It also
prevents others from taking their corpse, because of the idnum of the
player does not match the value and they aren't assigned by the player who
the corpse belongs to, they can't touch it.

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST