Restore deleted characters

Results 1 to 10 of 10
  1. #1
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Restore deleted characters

    PHP script.

    It's kind of gay; It shows a drop menu with the DELETED CHARACTERS. You hit Restore, it checks if you have enough character slots, if so, restore the character.

    Credits
    Moi.

    Note: This took me 15 minutes.
    Attached Files Attached Files
    Last edited by Vusion; 29-01-12 at 07:03 PM.


  2. #2
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: Restore deleted characters

    Release the spawn fix noob.

    Also ty.

  3. #3
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Restore deleted characters

    "Got anything to say on my Restore Deleted Character script <3? http://forum.ragezone.com/f245/resto...acters-814766/"

    No.

  4. #4
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Restore deleted characters

    This will have to be used in small servers, or with anyone who hasn't implemented the function to delete deleted character info to clear up space in the database. I say small servers because they will normally have the latter implemented on their server.

    Still a good thing to have since its user minded. They accidentally delete a character, they have the option to restore it.

  5. #5
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Restore deleted characters

    Quote Originally Posted by wesman2232 View Post
    This will have to be used in small servers, or with anyone who hasn't implemented the function to delete deleted character info to clear up space in the database. I say small servers because they will normally have the latter implemented on their server.

    Still a good thing to have since its user minded. They accidentally delete a character, they have the option to restore it.
    I'm not going to have it on my server anyway. I was simply bored again, and wanted to code something. And since it took me 15 minutes, I thought of releasing it.

  6. #6
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Restore deleted characters

    I hope I didn't come off as criticizing you. It's a good release, just informing the public of where it should be used.

  7. #7
    Enthusiast Teleeg is offline
    MemberRank
    Jan 2012 Join Date
    HungaryLocation
    29Posts

    Re: Restore deleted characters

    To be honest, if a user deletes a char, it should stay deleted. It's the players choice... And I would not delete any character just because i need space. If you do that, you probably have a shit server provider.

  8. #8
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Restore deleted characters

    Quote Originally Posted by Teleeg View Post
    To be honest, if a user deletes a char, it should stay deleted. It's the players choice... And I would not delete any character just because i need space. If you do that, you probably have a shit server provider.
    "space", "hosting provider" wait, what? This just gives the player the ability to do everything, and I myself take a shit on it and I'm not using it for my server. And we've already said so before. This was just a fun experience to code.

    Code:
    if(isset($_POST['restore']))
    {
    	if($_POST['lul'] == "")
    	{
    		echo "Please, select a Character.";
    		return false;
    	}
    	
    	$q = mssql_query("SELECT COUNT(*) AS COUNT FROM Character WHERE AID = ".$_SESSION['aid']." AND DeleteFlag != 1");
    	if(mssql_result($q, 0, 'COUNT') < 4)
    	{
    		$charnum_q = mssql_query("SELECT MAX(CharNum) AS CharNum FROM Character WHERE AID = ".$_SESSION['aid']." AND DeleteFlag != 1");
    		$charnum = mssql_result($charnum_q, 0, 'CharNum') + 1;
    		$update = mssql_query("UPDATE Character SET Name = '".$_POST['lul']."', DeleteFlag = 0, DeleteName = 'NULL', CharNum = ".$charnum." WHERE DeleteName = '".$_POST['lul']."'");	
    		echo "The Character ".$_POST['lul']." was successfully restored.";
    	}
    	else
    	{
    		echo "You do not have enough Character Slots to restore any Characters.";
    		return false;
    	}	
    }

  9. #9
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: Restore deleted characters

    Quote Originally Posted by Teleeg View Post
    To be honest, if a user deletes a char, it should stay deleted. It's the players choice... And I would not delete any character just because i need space. If you do that, you probably have a shit server provider.

    Unless that user has a annoying family member that did it or account got hacked.

    Pretty obvious uses.

  10. #10
    Ā  Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: Restore deleted characters

    Quote Originally Posted by Teleeg View Post
    To be honest, if a user deletes a char, it should stay deleted. It's the players choice... And I would not delete any character just because i need space. If you do that, you probably have a shit server provider.
    And what if the player wants to have it back again? No one's forcing players to restore characters. It's just a handy option which might be useful to some.



Advertisement