Re: [Circle] Cleric.c to check if spell affect already in place

From: Yoink! (xombi@accessus.net)
Date: 08/08/96


On Thu, 8 Aug 1996, Ian Stephenson wrote:

> Hello, I've been trying to modify the cleric.c "freebie-for-newbie" code
> to check if a spell affect is already upon a character (eg: bless,
> armor).  This is because the duration is cumulative, so I have
> characters running around with 600 hours of armor in place.  I want a
> check so the spell is cast only if the victim is not already affected.
> I've applied the following to the cleric code in spec_procs.c:

> Can anyone assist?

Yeah, i believe your constants.c is the real problem.  You need to nix
that cumalative time on spells altogether, then it is not a problem.  I
beleive there is a definition in there or in another file that turns off
or limits the number of cumulative spells you can get.
 __      __ 
 \ \\   / //                "If I were a dinosaur, I'd be a licalottapus!"
  \ \\ / //  _____  __       __ ______  ___       -Jonathan "Jax" Armsterd
   \ \/ //  //   \\ |\\     /|| ||   \\ | ||   
    >  <<  ||     ||||\\   //|| |----<< | ||         Hard to believe,
   / /\ \\ ||     |||| \\ // || ||    \\| ||        Harder to killfile!
  / // \ \\ \\___//_||  \//  ||_||____//|_||
 /_//   \_\\       In God We Trust. All others pay cash.

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



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