trickerer / Trinity-Bots

NPCBots for TrinityCore and AzerothCore 3.3.5
https://github.com/trickerer/TrinityCore-3.3.5-with-NPCBots/
469 stars 156 forks source link

[AC] [Bug] [Core] Incorrect bot name displayed #649

Closed matgskinner closed 1 year ago

matgskinner commented 1 year ago

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

Current behaviour

When creating new bots, an incorrect name is displayed on name plate (name above character's head) and in party/raid HUD. However, correct name is displayed in Social menu's Raid tab (see screenshot). The name should be "Riven" with ID 70821, but showing "Vaelen" from ID 70453.

Other observations:

NPCbots name bug NPCbots DB

Expected behaviour

Correct name is displayed on name plate and party/raid HUD.

Crashlog

No response

Steps to reproduce the problem

  1. Create a custom bot using .npcb createnew ... command.
  2. Restart server
  3. Spawn bot using .npcb spawn [ID] (note: only happing for bot IDs above 70820)
  4. Bot is spawned with incorrect name (has name of another pre-made bot).

TrinityCore or AzerothCore

AzerothCore

Core rev. hash/commit

AzerothCore rev. unknown 1970-01-01 00:00:00 +0000 (Archived branch) (Win64, RelWithDebInfo, Static) (authserver)

Operating system

Win10

trickerer commented 1 year ago

It's just a client cache intersection. When client registers a creature it caches some of its attributes, including name / subname. In your case it's wandering bot's name for sure.

Quit the game and clear you client's cache folder. Server restart isn't required.

matgskinner commented 1 year ago

That fixed it. Thank you!