cmangos / issues

This repository is used as a centralized point for all issues regarding CMaNGOS.
180 stars 47 forks source link

🐛 [Bug Report] Cmangos TBC and Classic handle questgiver_greeting differently from WoTLK #3756

Closed SeelGit closed 3 months ago

SeelGit commented 3 months ago

Bug Details

In Cmangos TBC (and Classic, judging by the code) even if the NPC has a single quest, they will still show guest giver greeting if the NPC has greeting specified in questgiver_greeting table. If they don't - the quest text for a quest will be shown instead. WoTLK Cmangos first checks that there are multiple quests OR that CONFIG_BOOL_ALWAYS_SHOW_QUEST_GREETING is set, and will only then display the greeting.

https://github.com/cmangos/mangos-classic/blob/master/src/game/Entities/Player.cpp#L12034 https://github.com/cmangos/mangos-tbc/blob/27f97760bfa57d3774086b771593de08c46b2428/src/game/Entities/Player.cpp#L12842 https://github.com/cmangos/mangos-wotlk/blob/846d352eb9cc0109d47bdf25beafd36e571fb28c/src/game/Entities/Player.cpp#L13920

Steps to Reproduce

  1. Go to Ragnar Thunderbrew - 1267 in Dun Morogh as a level <50 character, he will offer quest 384. Even though this is a single quest available, questigiver_greeting entry will still be displayed along quest list with that single quest. image

  2. Pilot Stonegear - 1377 nearby will do the same when offering quest 313 image

Expected behavior

WoTLK logic should be applicable to TBC and Classic. Still allowing to use CONFIG_BOOL_ALWAYS_SHOW_QUEST_GREETING should be very useful when checking content correctness, so this should also be kept in TBC and Classic.

Suggested Workaround

Port check from WoTLK Cmangos.

Crash Log

No response

Core SHA1 Commit Hash

155217c690b9dbddc0615f309248429adf074fb7

Database SHA1 Commit Hash

a56aff0dafe006242cdc54b24ebae7337e6e5e6d

Operating System

Win 11

Client Version

2.4.3 (The Burning Crusade)

SeelGit commented 3 months ago

Video from before Cata (dated 2009) showing that the greeting is not shown: https://www.youtube.com/watch?v=v5Ti1QBz60c

killerwife commented 3 months ago

Merely missing backport.