Re: [Newbie] pkill limit

From: Ghost Shaidan (ghost@AO.NET)
Date: 07/15/98

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


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)

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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