Re: [Newbie] pkill limit

From: Scorn (scorn@RMI.NET)
Date: 07/18/98


Ok i fixed the pkill limit......and the reason i didnt put it into do_kill
and do_hit is so that all offensive spells and kick bash...etc go through
the damage()  so in void damage i added this i am new but i think it looks
good.....

int lvl = 0;

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


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

}

Thanks to Tony Robbins and all the others that replied....your help was
truly appreciated.....i have to go test it some more to make sure it all
works but bash, kick, spells, assist, backstab, and all work fine this way
: )
Thanks Again,
Scorn


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