Re: sigh.

From: Lincoln Chan (linc@CSUA.Berkeley.EDU)
Date: 03/23/95


Fact is that you still haven't looked at do_set yet, huh?

LOOK AT IT!  RIGHT NOW!  All you have to do is type:

more +/do_set act.wizard.c

Look at all the neat things you can set...  Do that...  Right now, so we
don't get anymore questions involving features of do_set that already
exist.

When you're trying to 'set file <playername> passwd <newpasswd>', you'll
want to keep a few things in mind:

  case 45:
    if (!is_file)   /* <== Look here */
      return;
    if (GET_IDNUM(ch) > 1) {   /* <== And here */
      send_to_char("Please don't use this command, yet.\r\n", ch);
      return;
    }
    if (GET_LEVEL(vict) >= LVL_GRGOD) {   /* <== This too */
      send_to_char("You cannot change that.\r\n", ch);
      return;
    }
    strncpy(tmp_store.pwd, CRYPT(val_arg, tmp_store.name), MAX_PWD_LENGTH);
    tmp_store.pwd[MAX_PWD_LENGTH] = '\0';
    sprintf(buf, "Password changed to '%s'.", val_arg);
    break;

1)  You can only set player FILE passwords.
2)  You have to be the first character (initial imp with IDNUM of 1) in order
    to be able to set passwords.
3)  Your victim's level must be lower than LVL_GRGOD.

If you want any of these rules to change, edit case 45: of do_set.

linc



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