acct.AddCharacter(0)
Posted: Tue May 29, 2007 11:41 pm
I am using acct.AddCharacter(0) in a start_script called from the internal www server to create a default character for a new account.
It works, but there is an error if I try to delete the character.
This is the relevent part of the script used to create the new character:
You cannot delete the character until the shard is restarted or you have logged on as the new character. If you try to delete it the error text is that that character is in use.
I tried deleting it from the client login and also using acct.deletecharacter(charnum)
No dice.
Could this possibly be an 097 core bug or am I doing something wrong?
It works, but there is an error if I try to delete the character.
This is the relevent part of the script used to create the new character:
Code: Select all
program create_character(acctname)
var acct := findaccount(acctname);
var slot := acct.AddCharacter(0);
var newchar;
if ( slot )
newchar := acct.getcharacter(slot);
SetName(newchar, acct.name);
endif
endprogramI tried deleting it from the client login and also using acct.deletecharacter(charnum)
No dice.
Could this possibly be an 097 core bug or am I doing something wrong?