View previous topic :: View next topic |
Author |
Message |
Energia
Joined: 05 Jun 2006 Posts: 19
|
Posted: Wed Sep 23, 2009 15:27 Post subject: |
|
|
ShaDoOoW wrote: | Energia wrote: | today I tried in Windows XP. | And whats the result? |
Same result. |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Wed Sep 23, 2009 19:13 Post subject: |
|
|
OMG I got it, can't understand I didn't saw that before. The file is indeed deleted but, when the player logs out the file is created again, you must first BootPC and after then, to be sure with some delay delete his file _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Energia
Joined: 05 Jun 2006 Posts: 19
|
Posted: Thu Sep 24, 2009 18:33 Post subject: |
|
|
Script is in previous page.
I used an ActionWait between Boot and Delete. |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Thu Sep 24, 2009 19:17 Post subject: |
|
|
Well but FileDeleteFile is not action, you would have to transfer it with ActionDoCommand.
Try this: Code: | #include "nwnx_files"
#include "nwnx_funzioni"
void delete_itself(string cname, string pname)
{
if (!FileDeleteFile(cname,pname)) SendMessageToAllDMs("ERROR: Il pg non e' stato cancellato");
}
void main()
{
object oPC = GetPCSpeaker();
string pname = "servervault/"+GetPCPlayerName(oPC);
string cname = GetBicFileName(oPC)+".bic";
DelayCommand(1.0,BootPC(oPC));
DelayCommand(3.0,delete_itself(cname,pname));
} |
_________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Energia
Joined: 05 Jun 2006 Posts: 19
|
Posted: Tue Oct 20, 2009 14:13 Post subject: |
|
|
ShaDoOoW wrote: | Well but FileDeleteFile is not action, you would have to transfer it with ActionDoCommand.
Try this: |
Works! Well done!
Thank you. |
|
Back to top |
|
|
|