Skip to content

Remove problematic handlers#293

Open
Velite12 wants to merge 2 commits into
cmangos:masterfrom
Velite12:remove-problematic-handlers
Open

Remove problematic handlers#293
Velite12 wants to merge 2 commits into
cmangos:masterfrom
Velite12:remove-problematic-handlers

Conversation

@Velite12
Copy link
Copy Markdown
Contributor

Remove handlers that are causing issue when taking a group quest that has dbscripts, like the Ring of Blood quests. I don't think these are even necessary as, at least in my group, the bots can still take and complete quests.

These handlers are the source of a bug where if the bot takes a quest (either if you press accept or they do, and then you accept later in the case of a group quest "is starting quest" message), the player will act like the questgiver and this causes problems like spawning double of the required creatures for quest.

Remove handlers that are causing issue when taking a group quest that has relays, like Ring of Blood quests
@Velite12
Copy link
Copy Markdown
Contributor Author

Actually need to investigate a bit more

@Velite12 Velite12 closed this May 18, 2026
Handle situations where bot accepts quest but we should not query requester in order to avoid double dbscript call, as this is how the core handles it for players.

I also brought the original handlers back.
@Velite12 Velite12 reopened this May 18, 2026
@Velite12
Copy link
Copy Markdown
Contributor Author

Velite12 commented May 18, 2026

Here, the new commit I issued better fixes the issues by preserving original behavior but addressing the problem with quests that have dbscripts or are party accept flagged quests.

Mainly we just check if the quest has party accept flag and if so, we don't use requester as that would be the player. We don't want the player to act like questgiver and trigger dbscripts.

We also add a check in AcceptQuest which was missing, if the bot can even add the quest to their log to begin with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant