View previous topic :: View next topic |
Author |
Message |
Zunath
Joined: 06 Jul 2006 Posts: 183
|
Posted: Wed Dec 16, 2009 21:21 Post subject: Delete Character Plugin For Linux |
|
|
I'm aware of the character deletion plug-in for Windows but is there also one for Linux? I did a search but nothing useful came up. Maybe I'm looking in the wrong place. |
|
Back to top |
|
|
Paul R
Joined: 17 Apr 2009 Posts: 42
|
Posted: Wed Dec 16, 2009 22:11 Post subject: |
|
|
I you're using nwnx_funcs and nwnx_system already you can combine them like the following:
Code: | void DelayDelChar(string sBic) {
FileDelete(sBic);
}
void main()
{
object oPC = something_you_have;
string sBic = "/usr/local/nwn/servervault/";
sBic += GetPCPlayerName(oPC) +"/"+ GetPCFileName(oPC) +".bic";
FadeToBlack(oPC);
DelayCommand(4.0f, BootPC(oPC));
AssignCommand(GetModule(), DelayCommand(7.0f, DelayDelChar(sBic)));
} |
Or something like that anyway (with error checking and removal of persistent variables), not sure if the Windows version boots the player but best to do that as the .bic file is written to on exit.
So we're using GetPCFileName() from nwnx_funcs and FileDelete() from nwnx_system, this second one has similar functions in a couple of other extensions. |
|
Back to top |
|
|
Zunath
Joined: 06 Jul 2006 Posts: 183
|
Posted: Wed Dec 16, 2009 22:15 Post subject: |
|
|
Ah okay, thanks. I'll try that.
Figures I was missing something. |
|
Back to top |
|
|
|