logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Delete Character Plugin For Linux

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
Zunath



Joined: 06 Jul 2006
Posts: 183

PostPosted: Wed Dec 16, 2009 21:21    Post subject: Delete Character Plugin For Linux Reply with quote

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
View user's profile Send private message
Paul R



Joined: 17 Apr 2009
Posts: 42

PostPosted: Wed Dec 16, 2009 22:11    Post subject: Reply with quote

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
View user's profile Send private message
Zunath



Joined: 06 Jul 2006
Posts: 183

PostPosted: Wed Dec 16, 2009 22:15    Post subject: Reply with quote

Ah okay, thanks. I'll try that.

Figures I was missing something.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group