Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-04-2008, 08:52 AM
kraeger
Fire Beetle
 
Join Date: Mar 2008
Location: Halas, Everfrost
Posts: 9
Default

I just got a message from someone who's line numbers aren't matching with mines for the fix, so I will put some surrounding code to make it easier.
(Oh and can someone tell me how to edit posts? )

The bug fix:

In client.cpp, on (or near) line 951:

Old code:
Code:
pp.beard		 = cc->beard;
pp.beardcolor	= cc->beardcolor;

pp.birthday		= bday;
pp.lastlogin	= bday;
New code:
Code:
pp.beard		= cc->beard;
pp.beardcolor	= cc->beardcolor;
//Temporary fix to missing hairstyle.
if (cc->hairstyle == 0)
{
	pp.eyecolor1	= 99;
}
pp.birthday		= bday;
pp.lastlogin	= bday;
In titanium.ccp, on (or near) line 470:

Old code:
Code:
//eq->unknown0140[4] = emu->unknown0140[4];
eq->is_npc = emu->is_npc;
eq->hairstyle = emu->hairstyle;
eq->beard = emu->beard;
//eq->unknown0147[4] = emu->unknown0147[4];
New code:
Code:
//eq->unknown0140[4] = emu->unknown0140[4];
eq->is_npc = emu->is_npc;
//Temporary fix to missing hairstyle.
if (emu->eyecolor1 == 99)
{
	eq->hairstyle = 0;
	eq->eyecolor1 = emu->eyecolor2;
}
else
{
	eq->hairstyle = emu->hairstyle;
}
eq->beard = emu->beard;
//eq->unknown0147[4] = emu->unknown0147[4];
In client_packet.cpp, on (or near) line 4390:

Old code:
Code:
m_pp.beard		= fc->beard;					

	
Save();
Message_StringID(13,FACE_ACCEPTED);
//Message(13, "Facial features updated.");
New code:
Code:
m_pp.beard		= fc->beard;					
//Temporary fix to missing hairstyle.
if (fc->hairstyle == 0)
{
	m_pp.eyecolor1	= 99;
}
	
Save();
Message_StringID(13,FACE_ACCEPTED);
//Message(13, "Facial features updated.");
Reply With Quote
 


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 01:24 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