Go Back   EQEmulator Home > EQEmulator Forums > General > General::Server Discussion

General::Server Discussion Discussion about emulator servers.
Do not post support topics here.

Reply
 
Thread Tools Display Modes
  #1  
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
  #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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:09 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3