There's a minor error in the info you get when you type
"stat file <character>".
do_stat actually loads the char with store_to_char, and later frees it
again. This messes up the Last Logon field. It uses k->player.time.logon,
which is
updated in store_to_char. You'll always get today's date as Last Logon.
Here's how to fix it:
In act.wizard.c, in do_stat_character, add:
struct char_file_u chdata;
then look for:
if (!IS_NPC(k)) {
strcpy(buf1, (char *) asctime(localtime(&(k->player.time.birth))));
strcpy(buf2, (char *) asctime(localtime(&(k->player.time.logon))));
buf1[10] = buf2[10] = '\0';
and change it to:
if (!IS_NPC(k)) {
strcpy(buf1, (char *) asctime(localtime(&(k->player.time.birth))));
if (load_char(GET_NAME(k), &chdata) > -1)
strcpy(buf2, (char *) asctime(localtime(&chdata.last_logon)));
else
strcpy(buf2, (char *) asctime(localtime(&(k->player.time.logon))));
buf1[10] = buf2[10] = '\0';
That should do the trick :)
Havoc of Dagmarck (Mark Gerritsen)
+------------------------------------------------------------+
| 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