Re: [CODE] GET_LEVEL(vict) && crash

From: Michael Simons (s0004589@MONTEAGLE.NIAGARA.EDU)
Date: 11/06/97


> actually is something in vict.  vict is declared in an if statement.  So
> right before I get to the part of the else if stuff that tells the mud to
> kill the vict I add in a few lines:
>         else if (GET_LEVEL(vict) < LVL_IMPL)
>           act(message to player like "Don't kill imps");
It looks to me like you would want:
          else if (GET_LEVEL(vict) == LVL_IMPL)
that is if you want the act to be sent to the character when they try to
kill an imp.

if you have:
          else if (GET_LEVEL(vict) < LVL_IMPL)
              do_kill(...);
then you might need to use:
          else if (IS_PC(vict) && (GET_LEVEL(vict) < LVL_IMPL))
              do_kil(...);
**************************************************************

+----------------------+-------------------------------------+
|     Mike Simons      |      simons@donner.niagara.edu      |
|  Niagara University  |  http://donner.niagara.edu/~simons  |
|    Rystan Geomar     |       saffron.hack.net 9000         |
+----------------------+-------------------------------------+


     +------------------------------------------------------------+
     | 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