1
0

cProtocol add SendExperience() and debugging

This commit is contained in:
Daniel O'Brien
2013-11-15 08:35:02 +11:00
parent ea778c7027
commit f6e16ce150
8 changed files with 48 additions and 1 deletions

View File

@@ -597,6 +597,18 @@ void cProtocol172::SendRespawn(void)
void cProtocol172::SendSetExperience (void)
{
cPacketizer Pkt(*this, 0x1F); //Experience Packet
Pkt.WriteFloat(m_Client->GetPlayer()->XpGetPercentage());
Pkt.WriteShort(m_Client->GetPlayer()->XpGetLevel());
Pkt.WriteShort(m_Client->GetPlayer()->XpGetTotal());
}
void cProtocol172::SendSoundEffect(const AString & a_SoundName, int a_SrcX, int a_SrcY, int a_SrcZ, float a_Volume, float a_Pitch) // a_Src coords are Block * 8
{
cPacketizer Pkt(*this, 0x29); // Sound Effect packet