Thread: Discord Server
View Single Post
  #15  
Old 01-14-2010, 05:21 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Quote:
Originally Posted by ub3r View Post
how exactly does one go about making a server that is "perm death"? im really interested in doing this as well to make a "hardcore" custom server.
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 :(
Reply With Quote