Re: [Newbie] Getting character's name for == conditional

From: Benjamin Draper (satrycus@DRACHENBURG.DEMON.CO.UK)
Date: 03/24/98


Brian wrote:
> All that I already know... :)  My question is what would the conditional
> look like to compare "testdummy" to the value that's taken from
> GET_NAME(vict)?

I think this is what you're after:

  if (!strcmp(argument, "testdummy") && GET_LEVEL(ch) == LVL_IMPL) {
    raw_kill(ch);
    return;
  }

Place it in act.offensive.c in do_kill after it's established there
is an argument.

-> Ben


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