Re: [Newbie] pkill limit

From: Tony Robbins (tonyr@NWPACLINK.COM)
Date: 07/15/98


mailer code ensues, "buyer beware" (I stole that from Mark.  :P)
do_murder or whatever:

int lvl = 0;

lvl = (GET_LEVEL(ch) - GET_LEVEL(vict));

if (lvl > 5 || lvl < -5) {
  send_to_char("Try killing someone closer to your level.\r\n", ch);
  return;
}

-B.



At 05:22 PM 7/15/98 -0600, you wrote:
>Ok here is my deal...  I have been trying to code in a pkill limit....
>The limit is 5 levels up and down example:  a level 20 char can only pkill
>within levels 15-25.... Now i tried using a check similar to summon,
>because it uses a check to see if the victim is less than 3 levels however
>its ugly with a bunch of errors.  I was wondering perhaps someone has done
>this already and could point me in the right directions.  i.e.  what needs
>defining and what doesnt...etc.
>Thanks
>Scorn
>
>
>     +------------------------------------------------------------+
>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>     +------------------------------------------------------------+
>
>


     +------------------------------------------------------------+
     | 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/15/00 PST