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 
 
Character deletion plugin
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support
View previous topic :: View next topic  
Author Message
Xildjian



Joined: 08 Jan 2005
Posts: 100

PostPosted: Sat Nov 12, 2005 21:35    Post subject: Reply with quote

This is what I have:

Code:

#include "delchar_include"

void main()
{
  object oPC = GetPCSpeaker();

  if (GetIsPossessedFamiliar(oPC)) {
    SendMessageToPC(oPC,"You may only delete yourself when you are not possessing your familiar!");
    return;
  }

  if (GetIsDM(oPC) || GetIsDMPossessed(oPC)) {
    SendMessageToPC(oPC,"DMs are not servervault characters, and therefore may not be deleted!");
    return;
  }

  string pname = GetPCPlayerName(oPC);
  string cname = GetName(oPC);
  FloatingTextStringOnCreature("DELETING!",oPC);
  DelayCommand(1.0,BootPC(oPC));
  DelayCommand(2.0,deletechar(pname, cname));
}

_________________
Member Shadow of Iniquity development team
Back to top
View user's profile Send private message
Trimme



Joined: 05 Nov 2005
Posts: 11

PostPosted: Sun Nov 13, 2005 3:54    Post subject: Reply with quote

Thank you very much itīs now working Wink
Back to top
View user's profile Send private message
Sir Elric



Joined: 19 Apr 2005
Posts: 16
Location: Australia

PostPosted: Mon Jan 16, 2006 3:27    Post subject: Reply with quote

Firstly very nice plugin. I have a request though.

Rather than delete the character currently logged in I want to use a listener so players can type in old chars they want deleted by name.
(My server allows one char per reset so they cant delete chars obviously)

I have already tested this with the currect plugin and it works as is now but if you type in a name that doesn't exist it crashes the server process.

So I would gather the plugin needs a check to see if the char is valid and if not end process and send message stating so?

This is beyond my expertise so if you could have ago at this it would be much appreciated.

TIA

SE
_________________
City of Melnibone - PW
ausnwn.dyndns.org:5121
Back to top
View user's profile Send private message
Xildjian



Joined: 08 Jan 2005
Posts: 100

PostPosted: Wed Jan 18, 2006 18:07    Post subject: Reply with quote

I did a quick look this morning and I believe I know why it's crashing. I'll see if I get get an updated version that returns a pass/fail status.
_________________
Member Shadow of Iniquity development team
Back to top
View user's profile Send private message
Sir Elric



Joined: 19 Apr 2005
Posts: 16
Location: Australia

PostPosted: Tue Jan 24, 2006 6:08    Post subject: Reply with quote

Xildjian wrote:
I did a quick look this morning and I believe I know why it's crashing. I'll see if I get get an updated version that returns a pass/fail status.

The new version has stopped the server process crashing so you can now delete any character in the players dir by using an NPC listener.

Much appreciated Very Happy

SE
_________________
City of Melnibone - PW
ausnwn.dyndns.org:5121
Back to top
View user's profile Send private message
Trimme



Joined: 05 Nov 2005
Posts: 11

PostPosted: Fri Feb 10, 2006 2:48    Post subject: Reply with quote

Is the updated version downloadable from same link as the first one.?
Back to top
View user's profile Send private message
Trimme



Joined: 05 Nov 2005
Posts: 11

PostPosted: Fri Feb 10, 2006 2:59    Post subject: Reply with quote

Ohh and by the way can the updated version delete,
Chars Thats subraced..??
Back to top
View user's profile Send private message
Sir Elric



Joined: 19 Apr 2005
Posts: 16
Location: Australia

PostPosted: Fri Feb 10, 2006 10:30    Post subject: Reply with quote

Trimme wrote:
Is the updated version downloadable from same link as the first one.?

Don't think so. I can send you the updated version if you like.

SE
_________________
City of Melnibone - PW
ausnwn.dyndns.org:5121
Back to top
View user's profile Send private message
Trimme



Joined: 05 Nov 2005
Posts: 11

PostPosted: Fri Feb 10, 2006 18:19    Post subject: Reply with quote

That would be great.
my E.mail trimme@hotmail.com
And do you know if it can delete
Subraces.?
Back to top
View user's profile Send private message
Sir Elric



Joined: 19 Apr 2005
Posts: 16
Location: Australia

PostPosted: Sat Feb 11, 2006 2:24    Post subject: Reply with quote

Trimme wrote:
That would be great.
my E.mail trimme@hotmail.com
And do you know if it can delete
Subraces.?

Just sent it.

It physically removes the bic file from the players server vault directory nothing more.

SE
_________________
City of Melnibone - PW
ausnwn.dyndns.org:5121
Back to top
View user's profile Send private message
Trimme



Joined: 05 Nov 2005
Posts: 11

PostPosted: Sat Feb 11, 2006 2:37    Post subject: Reply with quote

Thanks for the pluggin.. Razz

Well due to the question, is i think there was a problem with the old
all players could be deleted but, not the ones onde the influence of subraced.. Question Shocked
Back to top
View user's profile Send private message
Xildjian



Joined: 08 Jan 2005
Posts: 100

PostPosted: Tue Feb 14, 2006 18:45    Post subject: Reply with quote

A character having a subrace shouldn't make a difference. The plugin looks for a match of the character name you want to delete in the .bic file.
_________________
Member Shadow of Iniquity development team
Back to top
View user's profile Send private message
Zunath



Joined: 06 Jul 2006
Posts: 183

PostPosted: Mon Aug 14, 2006 5:37    Post subject: Reply with quote

Sorry to bump this thread but I want to convert the script above to fit my world a bit better.

Instead of talking to an NPC, players use an item to bring up a conversation with themselves. They go into the menu to delete their character and are booted but their character is not moved or deleted.

How can I make it so that they can delete their characters from a conversation called from an item?

Thanks!
Back to top
View user's profile Send private message
Zunath



Joined: 06 Jul 2006
Posts: 183

PostPosted: Tue Sep 26, 2006 0:49    Post subject: Reply with quote

Sorry to bump once again, but I still need help.

Thanks much!
Back to top
View user's profile Send private message
Xildjian



Joined: 08 Jan 2005
Posts: 100

PostPosted: Thu Sep 28, 2006 3:26    Post subject: Reply with quote

You should be able to plug the script into an onactivate item event.
_________________
Member Shadow of Iniquity development team
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support All times are GMT + 2 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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