Re: [Newbie] pkill limit

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 07/16/98


How about sticking this check in the damage() function.   The only problem then
is bashing.
--Angus

______________________________ Reply Separator _________________________________
Subject: Re:  [Newbie] pkill limit
Author:  INTERNET:CIRCLE@POST.QUEENSU.CA at CSERVE
Date:    7/15/98 9:35 PM

>
> 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;
> }


This truely isn't the hard part.  The hard part is finding ALL of the
entrances into the possibilities of pkill.  My players have worked very
hard at finding ways around our clan kill and other such pk systems.. so
make sure you check:

All of the skills in act.offensive.c
rescue (rescuing mobs)
do_cast for offensive spells
do_order (charmies or summoned mobs)
any manual spells that may do damage
Spells that do room damage (earthquake)

Etc

It might be useful to put that little bit of code up there in a separate
function, and call it each time instead of cutting and pasting it.

Have the pk_check() function pass the ch and vict, do the calculation, and
return a 1 or TRUE if its ok, and a 0 or FALSE if its not.

This will let you just

if (pk_check(ch, vict) != TRUE)
    return;


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