Request: Delete character
Aliberto
Member Posts: 80
It is possible to insert a function that allows to delete a character from servervault directory of a multiplayer server?
Thanks in advance for reply, Ali
Thanks in advance for reply, Ali
0
Comments
Player would talk to NPC and confirm they wanted to delete character. The NPC would log something like "[secret key] Player XYZ deleted Character ABC" to server log... Every night we had a script to parse log (when it was rotating it) and would delete 'XYZ/ABC.bic' from server vault if that string was found.
I solved this way:
#include "nwnx_admin"
void DoDelete (object oPC);
void DoDelete (object oPC) {
NWNX_Administration_DeletePlayerCharacter (oPC, TRUE);
}
void main () {
object oPC = GetPCSpeaker ();
SetCommandable (FALSE, oPC);
AssignCommand (oPC, ClearAllActions ());
DelayCommand (2.0, DoDelete (oPC));
}