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