WoR_PRC8/_module/nss/delete_character.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

26 lines
719 B
Plaintext

// This script will delete a player's character. Checks have been made to prevent non-PCs from attempting to delete
// their character.
#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,"DM's are not servervault characters, and therefore may not be deleted!");
return;
}
string pname = GetPCPlayerName(oPC);
string cname = GetName(oPC);
FloatingTextStringOnCreature("DELETING!",oPC);
ExportSingleCharacter(oPC);
DelayCommand(1.0,BootPC(oPC));
DelayCommand(2.0,deletechar(pname, cname));
}