azerothcore / azerothcore-wotlk

Complete Open Source and Modular solution for MMO
http://www.azerothcore.org
GNU Affero General Public License v3.0
6.4k stars 2.55k forks source link

Display default message for access_requirement quest_failed_text #2815

Closed BarbzYHOOL closed 3 years ago

BarbzYHOOL commented 4 years ago

Table access_requirement has this column quest_failed_text.

If we fill one of these:

quest_done_A
A quest that you must have completed. This field is only for alliance.

quest_done_H
A quest that you must have completed. This field is only for horde.

then it will display the quest_failed_text. But if it is empty/null, it will display nothing.

By default, it should display this: You must complete the quest "Quest name" before entering the Dungeon Name

If (quest_done_H OR quest_done_A) AND quest_failed_text are not null/empty, then display their content.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/90981274-display-default-message-for-access_requirement-quest_failed_text?utm_campaign=plugin&utm_content=tracker%2F40032087&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F40032087&utm_medium=issues&utm_source=github).
Kitzunu commented 3 years ago

reworked eariler