Well whomever this was who write the original message I couldn't reply to him. I apologize for spamming the whole list, but here it is anyways. Monroe __o _`\<,_ Michael Andrew Clubine (*)/ (*) http://web.syr.edu/~maclubin __o `'`'``'``'`'~\_ maclubin@syr.edu _`\<,_ \ (*)/ (*) \ o__ o~_ ___/~`'`'`'` \ _,>/`_ _,>/`_ _/ \_ (*) \(*) (*) \(*) / ~~~~~~~~~~~~~~~~````'`'`'`'`'`''~~~~ ---------- Forwarded message ---------- Date: Sun, 14 Jul 1996 18:34:56 -0400 From: Mail Delivery Subsystem <MAILER-DAEMON@smith.cis.syr.edu> To: maclubin@smith.cis.syr.edu Subject: Returned mail: Host unknown (Name server: janeway.geog.scarolina.edu: host not found) The original message was received at Sun, 14 Jul 1996 18:34:56 -0400 from maclubin@localhost ----- The following addresses had delivery problems ----- the count <goamkows@janeway.geog.scarolina.edu> (unrecoverable error) ----- Transcript of session follows ----- 550 the count <goamkows@janeway.geog.scarolina.edu>... Host unknown (Name server: janeway.geog.scarolina.edu: host not found) ----- Original message follows ----- ============================================================================== From: M.A.Clubine <maclubin@adala.smith.cis.syr.edu> To: the count <goamkows@janeway.geog.scarolina.edu> Subject: Re: instant death help Date: Sun, 14 Jul 96 18:34:01 Message-ID: <Pine.SOL.3.91.960714183332.3463A-100000@adala.smith.cis.syr.edu> Content-ID: <Pine.SOL.3.91.960714183655.3463E@adala.smith.cis.syr.edu> Return-Path: maclubin Received: (from maclubin@localhost) by adala.smith.cis.syr.edu (8.6.12/8.6.12) id SAA03503; Sun, 14 Jul 1996 18:34:56 -0400 MIME-Version: 1.0 Not quitre sure about the way you are doing it, however, tis is how I would do it. Grep for the code for ticks. Everytime it updates a tick, put a search in to check ALL the players currently in the game and if the player is CLASS_DEMON (or whatever) and alignment is more than X then raw_kill. Monroe On Sun, 14 Jul 1996, the count wrote: > i'm am putting in demons as a race, and i want it so that demons must > be evil aligned, and if ever they become good, they immediately die ;) > (i know this sounds harsh, but demons have lots of advantages otherwise) > > so, are the only ways for align to change by combat or having > an imm set it? > assuming that is the case, i added the following line to my fight.c in > the change_alignment function (after the line that changes the align): > > if (IS_DEMON(ch) && IS_GOOD(ch)) raw_kill(ch); > > as well as putting a prototype function declaration for raw_kill at > the top of fight.c > > so, in order to test it, i created a demon character, and used the set > command to change his align to +1000, and had him fight something (a > fido :) after the combat, it should call the change_alignment > function, see that the demon is good, and kill it. > only, when the combat ended, it crashed the mud instead :( with a > 'Memory fault' > > i tried putting the check in damage() instead, the line after it > calls the alignment change, but it still crashed. > __o _`\<,_ Michael Andrew Clubine (*)/ (*) http://web.syr.edu/~maclubin __o `'`'``'``'`'~\_ maclubin@syr.edu _`\<,_ \ (*)/ (*) \ o__ o~_ ___/~`'`'`'` \ _,>/`_ _,>/`_ _/ \_ (*) \(*) (*) \(*) / ~~~~~~~~~~~~~~~~````'`'`'`'`'`''~~~~
This archive was generated by hypermail 2b30 : 12/07/00 PST