#include "x4_inc_functions" #include "nwnx_files" void DeleteChar(string CharFile, string Path) { FileDeleteFile(CharFile, Path); } void DeleteCharDB(string DBFile, string Path) { FileDeleteFile(DBFile+".CDX", Path); FileDeleteFile(DBFile+".DBF", Path); FileDeleteFile(DBFile+".FPT", Path); } void main() { object oPC = GetPCSpeaker(); string CharFile = GetNewestBic(oPC); string DBFile = CharacterDB(oPC); string sLogin = GetPCPlayerName(oPC); string sPath = "servervault/"+sLogin; DelayCommand(1.0, BootPC(oPC)); DelayCommand(4.0, DeleteChar(CharFile, sPath)); DelayCommand(4.2, DestroyCampaignDatabase(DBFile)); //DelayCommand(4.5, DeleteCharDB(DBFile, "database/")); }