Re: [CODE] Using die() in mob specials

From: John Evans (evansj@HI-LINE.NET)
Date: 08/27/97


On Wed, 27 Aug 1997, Jared Buckley wrote:

> The general idea is to cause shadow mobs to die when the sun
> comes up.  I've tried calling both fn's with the parameters
> ch and me.  Neither seems to work.  Ideas, comments, suggestions?

When the sun comes up, loop through the character list and if you find a
mob that is flagged MOB_SHADOW do:

act("$n screams and fades away as the sun hits $e!",
    FALSE, ch, 0, 0, TO_ROOM);
char_from_room(ch);
extract_char(ch);


It makes it look like the mob 'dies' and removes him from the game. I
guess that would be what you are looking for, eh?

John Evans
mailto: evansj@hi-line.net    http://www.hi-line.net/~evansj

I don't suffer from Insanity!  I enjoy every minute of it!


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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