From f4e8923f12d6fd0959ade2cffa0eb139d39d17c5 Mon Sep 17 00:00:00 2001 From: The Kraken Date: Mon, 26 Oct 2026 17:41:57 -0700 Subject: [PATCH] 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. --- src/server/game/Handlers/CharacterHandler.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/server/game/Handlers/CharacterHandler.cpp b/src/server/game/Handlers/CharacterHandler.cpp index ada08c59c0..f886396019 100644 --- a/src/server/game/Handlers/CharacterHandler.cpp +++ b/src/server/game/Handlers/CharacterHandler.cpp @@ -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()); }