View previous topic :: View next topic |
Author |
Message |
sificvoid
Joined: 01 Dec 2008 Posts: 9
|
Posted: Thu Dec 04, 2008 23:23 Post subject: SetPCName |
|
|
I was wondering if there is any way to change a character's name, maybe by writing to the bic using leto or exalt? Ive gone through the various functions for both plugins and found a function to GetPCFileName but not to Set.
We could be doing a massive conversion of our clan system soon and our players have aske dto be able to rename their toons instead of having to rebuild. Any help would be appreciated, thanks. |
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Fri Dec 05, 2008 16:19 Post subject: |
|
|
Yep, just change the /Name variable using Letoscript. |
|
Back to top |
|
|
sificvoid
Joined: 01 Dec 2008 Posts: 9
|
Posted: Fri Dec 05, 2008 21:40 Post subject: |
|
|
Thanks for the response Fireboar. Just to make sure I got this right:
Code: | string SetPCName(string sName) {
return "/Name = " + sName + ";";
} |
and then to call that use this?
Code: | ApplyLetoScriptToPC(SetPCName(sName), oPC, "Please relog to apply your new name"); |
|
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Sun Dec 07, 2008 14:11 Post subject: |
|
|
That sounds about right.
EDIT: Nonono! Sorry, my bad!
It's actually...
/FirstName = Bob;
/Lastname = Marley; |
|
Back to top |
|
|
sificvoid
Joined: 01 Dec 2008 Posts: 9
|
Posted: Sun Dec 07, 2008 22:08 Post subject: |
|
|
okay awesome, glad I asked. Thanks again Fireboar.
lol, how ironic, I been listenin to Bob all mornin.
I think Ill be using the chat plugin so that the players can type in their new name during dialog, unless anyone has a better idea about how to go about it. |
|
Back to top |
|
|
|