else if(!str_cmp(set_fields[mode].cmd, "name"))
{
if((i=find_name(NAME(vict)))==-1)
{
sprintf(buf, "ERROR: there is no player %s.\r\n", NAME(vict));
ch->send(buf);
goto exit;
}
if(player_table[i].name)
FREE(player_table[i].name);
player_table[i].name=str_dup(val_arg);
if(PC_NAME(vict))
FREE(PC_NAME(vict));
PC_NAME(vict) = str_dup(val_arg);
sprintf(output, "Ok, new name set to %s.\r\n", val_arg);
}
break;
>From: Emil Nilimaa <kyos_overlord@HOTMAIL.COM>
>To: CIRCLE@post.queensu.ca
>Subject: [Code][Newbie] Set Name.. yeah yeah.
>Date: Tue, 26 Oct 1999 21:33:05 -0700
>
>ok first,
>
>yeah yeah, i have checked the archives and found alot of
>old mails about this.. however i couldnt get all from it.
>Call me newbie or whatever you like.
>
>Ok i wanna add name to the set command.
>I am using Circle 3.0 bpl15 and ASCII pfiles.
>
>Now i got it to work so that when changing the name it works..
>however,
>
>When the character logs off, the new name doesn't work and the old name
>still works.
>
>And when goin through the pfiles (ASCII), the new name are in the
>appropriate place, and the old is still in its appropriate place..
>
>however... in the plr_index, the new name isn't there and the old name is.
>heh
>
>
>so i need help to remove the old pfile and change the name in the plr_index
>(in pfile directory) to the new name.
>
>Anyone did this, or know how i should do it?
>
>______________________________________________________
>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 |
> +------------------------------------------------------------+
>
----------------
Daniel Staudt <dstaudt@hotmail.com>
~* I Don't Build I Re-Build *~
ICQ UIN# <14148959>
<http://www.geocities.com/ResearchTriangle/5404/>
______________________________________________________
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