Character creation: the random name dice fills both the name and the surname (Classic 1.60)

The 1.60 character-create UI (Interface/AddOns/Blizzard_CharacterCreate/Camelot, NameChoiceMixin:OnEvent for RANDOM_CHARACTER_NAME_RESULT) uses the server's name on success but never fills the surname box from the reply, so the dice left the surname empty. When the reply is not a success and regional unique names are enabled (which is what shows the surname box), the client generates both itself with C_CharacterCreation.GenerateRandomName() and GenerateRandomSurname() from NameGen for the selected race and sex. Answer Success = false so the client takes that path.
This commit is contained in:
The Kraken
2026-11-12 00:43:54 +00:00
committed by Karrz1
parent 6171042eda
commit f4e8923f12
@@ -3179,9 +3179,11 @@ void WorldSession::HandleRandomizeCharNameOpcode(WorldPackets::Character::Genera
return;
}
// Classic 1.60: the client's character-create UI only fills its surname box when it generates the name itself, which
// it does (name and surname from NameGen for the selected race and sex) when the server reports no name. A server name
// would leave the surname empty.
WorldPackets::Character::GenerateRandomCharacterNameResult result;
result.Success = true;
result.Name = sDB2Manager.GetNameGenEntry(packet.Race, packet.Sex);
result.Success = false;
SendPacket(result.Write());
}