Re: [CODE][NEWBIE]The set name command for the last time

From: Ian Welpe (noone_69@hotmail.com)
Date: 02/15/99


>> You have to update the player index.  The character's name is loaded
>>
>> It's "fixed" on reboot because the player index is created upon the
>> start of the game from the binary files.
>>
>        What he said.
>
>for (i = 0; i <= top_of_p_table; i++)
>  if ((player_table + i)->id == GET_IDNUM(vict))
>    break;
>
>if ((player_table + i)->name)
>  free((player_table + i)->name);
>
>CREATE((player_table + i)->name, char, strlen(buf) + 1);
>
>for (j = 0; (*((player_table + i)->name + j) = LOWER(buf[j])); j++);
>
>
>        where buf is your new name.
>                                                PjD

Has anyone remade the players file (*.objs and *.alias as applicable)?
That would explain why players log in with the old name and get a
character with all of the same stats but a different name.  Seems to me
that has been the one subject that hasnt been covered.

Forgive me if I just missed it, but I think that is where the problem
lies.

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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