Thread: Discord Server
View Single Post
  #2  
Old 01-15-2010, 12:07 AM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,449
Default

Quote:
Originally Posted by Derision View Post
A quick and dirty way would be to add this to Client:: Death
Code:
Index: attack.cpp
===================================================================
--- attack.cpp  (revision 1093)
+++ attack.cpp  (working copy)
@@ -1572,6 +1572,13 @@
        // from these and overwrite what we set in pp anyway
        //

+       database.DeleteCharacter(GetName());
+       EQApplicationPacket *outapp = new EQApplicationPacket(OP_LogoutReply);
+       FastQueuePacket(&outapp);
+
+       return;
+
+
        m_pp.zone_id = m_pp.binds[0].zoneId;
        m_pp.zoneInstance = 0;
        database.MoveCharacterToZone(this->CharacterID(), database.GetZoneName(m_pp.zone_id));
This will delete any character that dies. Pretty harsh if you die due to Linkdeath :(
I got this working for him; he popped in IRC and we talked a bit. He just needed a const_cast and started working. Probably better to use Kick(), as it'll clear the connection too.
Reply With Quote