View Single Post
  #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