From 8ae7bc0f926da9d05cd03fcdaf26a735a65a2537 Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Thu, 31 Mar 2022 16:12:36 -0700 Subject: [PATCH] Where to send reputation to client --- dNet/WorldPackets.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dNet/WorldPackets.cpp b/dNet/WorldPackets.cpp index 399ab9e5..53dbf062 100644 --- a/dNet/WorldPackets.cpp +++ b/dNet/WorldPackets.cpp @@ -131,7 +131,7 @@ void WorldPackets::SendCreateCharacter(const SystemAddress& sysAddr, const LWOOB PacketUtils::WriteHeader(bitStream, CLIENT, MSG_CLIENT_CREATE_CHARACTER); RakNet::BitStream data; - data.Write(6); //LDF key count + data.Write(7); //LDF key count LDFData* objid = new LDFData(u"objid", objectID); LDFData* lot = new LDFData(u"template", 1); @@ -139,13 +139,15 @@ void WorldPackets::SendCreateCharacter(const SystemAddress& sysAddr, const LWOOB LDFData* name = new LDFData(u"name", username); LDFData* gmlevel = new LDFData(u"gmlevel", gm); LDFData* chatmode = new LDFData(u"chatmode", gm); - + LDFData* reputation = new LDFData(u"reputation", 400); + objid->WriteToPacket(&data); lot->WriteToPacket(&data); name->WriteToPacket(&data); gmlevel->WriteToPacket(&data); chatmode->WriteToPacket(&data); xmlConfigData->WriteToPacket(&data); + reputation->WriteToPacket(&data); delete objid; delete lot; @@ -153,7 +155,8 @@ void WorldPackets::SendCreateCharacter(const SystemAddress& sysAddr, const LWOOB delete gmlevel; delete chatmode; delete name; - + delete reputation; + #ifdef _WIN32 bitStream.Write(data.GetNumberOfBytesUsed() + 1); bitStream.Write(0);