mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-19 02:05:28 +00:00
fix: the character data packet carries the world keys live sent
Every live character data packet (451 of 451) had legoclub=1, freetrial=0, requiresrename=0, levelid and position.x/y/z + rotation.x/y/z/w next to the keys already sent. LWOCharacterComponent::LoadConfigData (0x00c70f00) reads requiresrename, legoclub and freetrial. requiresrename is the character's refused-name state, levelid the zone id (map, instance << 16, clone << 32) and the position and rotation are where the player is put in the world. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -640,6 +640,13 @@ json ToJson(const ClientPackets::CreateCharacter& m) {
|
||||
j["reputation"] = ToJson(m.reputation);
|
||||
j["propertyCloneID"] = ToJson(m.propertyCloneID);
|
||||
j["txfring"] = ToJson(m.txfring);
|
||||
j["sendWorldKeys"] = ToJson(m.sendWorldKeys);
|
||||
j["legoClub"] = ToJson(m.legoClub);
|
||||
j["freeTrial"] = ToJson(m.freeTrial);
|
||||
j["requiresRename"] = ToJson(m.requiresRename);
|
||||
j["levelID"] = ToJson(m.levelID);
|
||||
j["position"] = ToJson(m.position);
|
||||
j["rotation"] = ToJson(m.rotation);
|
||||
return j;
|
||||
}
|
||||
json ToJson(const ClientPackets::ChatModerationString& m) {
|
||||
|
||||
Reference in New Issue
Block a user