View previous topic :: View next topic |
Author |
Message |
Xildjian
Joined: 08 Jan 2005 Posts: 100
|
Posted: Sat Nov 12, 2005 21:35 Post subject: |
|
|
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 |
|
|
Trimme
Joined: 05 Nov 2005 Posts: 11
|
Posted: Sun Nov 13, 2005 3:54 Post subject: |
|
|
Thank you very much itīs now working |
|
Back to top |
|
|
Sir Elric
Joined: 19 Apr 2005 Posts: 16 Location: Australia
|
Posted: Mon Jan 16, 2006 3:27 Post subject: |
|
|
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 |
|
|
Xildjian
Joined: 08 Jan 2005 Posts: 100
|
Posted: Wed Jan 18, 2006 18:07 Post subject: |
|
|
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 |
|
|
Sir Elric
Joined: 19 Apr 2005 Posts: 16 Location: Australia
|
Posted: Tue Jan 24, 2006 6:08 Post subject: |
|
|
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
SE _________________ City of Melnibone - PW
ausnwn.dyndns.org:5121 |
|
Back to top |
|
|
Trimme
Joined: 05 Nov 2005 Posts: 11
|
Posted: Fri Feb 10, 2006 2:48 Post subject: |
|
|
Is the updated version downloadable from same link as the first one.? |
|
Back to top |
|
|
Trimme
Joined: 05 Nov 2005 Posts: 11
|
Posted: Fri Feb 10, 2006 2:59 Post subject: |
|
|
Ohh and by the way can the updated version delete,
Chars Thats subraced..?? |
|
Back to top |
|
|
Sir Elric
Joined: 19 Apr 2005 Posts: 16 Location: Australia
|
Posted: Fri Feb 10, 2006 10:30 Post subject: |
|
|
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 |
|
|
Trimme
Joined: 05 Nov 2005 Posts: 11
|
Posted: Fri Feb 10, 2006 18:19 Post subject: |
|
|
That would be great.
my E.mail trimme@hotmail.com
And do you know if it can delete
Subraces.? |
|
Back to top |
|
|
Sir Elric
Joined: 19 Apr 2005 Posts: 16 Location: Australia
|
Posted: Sat Feb 11, 2006 2:24 Post subject: |
|
|
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 |
|
|
Trimme
Joined: 05 Nov 2005 Posts: 11
|
Posted: Sat Feb 11, 2006 2:37 Post subject: |
|
|
Thanks for the pluggin..
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.. |
|
Back to top |
|
|
Xildjian
Joined: 08 Jan 2005 Posts: 100
|
Posted: Tue Feb 14, 2006 18:45 Post subject: |
|
|
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 |
|
|
Zunath
Joined: 06 Jul 2006 Posts: 183
|
Posted: Mon Aug 14, 2006 5:37 Post subject: |
|
|
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 |
|
|
Zunath
Joined: 06 Jul 2006 Posts: 183
|
Posted: Tue Sep 26, 2006 0:49 Post subject: |
|
|
Sorry to bump once again, but I still need help.
Thanks much! |
|
Back to top |
|
|
Xildjian
Joined: 08 Jan 2005 Posts: 100
|
Posted: Thu Sep 28, 2006 3:26 Post subject: |
|
|
You should be able to plug the script into an onactivate item event. _________________ Member Shadow of Iniquity development team |
|
Back to top |
|
|
|