Skip to content

Fix Den of Evil quest - never starts unless you are in act 1#734

Open
sorc653 wants to merge 1 commit intohectorgimenez:mainfrom
sorc653:fix-act1-den-of-evil-quest
Open

Fix Den of Evil quest - never starts unless you are in act 1#734
sorc653 wants to merge 1 commit intohectorgimenez:mainfrom
sorc653:fix-act1-den-of-evil-quest

Conversation

@sorc653
Copy link
Contributor

@sorc653 sorc653 commented Mar 14, 2025

So if you join the game outside of act 1 you’ll go there before attempting this quest

So if you join the game outside of act 1 you’ll go there before attempting this quest
@Antizerg
Copy link

This is awesome. I found another bug in the Quests.go file if anyone is feeling frisky.

When you run retrieveBookQuest()

Let's assume you don't have any act 3 waypoints, it will get spider forest and great marsh waypoints no problem, but it bugs out after that, I believe due to how Flayer is mapped between Great Marsh and Lower Kurast which bugs out the adjacent area logic (is my theory).

@Antizerg
Copy link

Antizerg commented Mar 22, 2025

another update request. We should add logic so it doesn't run quests that were already completed. We can steal the logic from the leveling scripts.

I believe this function will open quest log to see which quests were completed for the active act you are in.
lvl, _ := s.Data.PlayerUnit.FindStat(stat.Level, 0)

Above example was taken from sorceress_leveling.go. Please note they need to already be in the right act for it to work. So if you want to see if Den of Evil quest is complete, you need to be in act 1 when you run that function.

Then here is an example where we check to see if a quest is completed.

if !a.isCainInTown() && !a.ctx.Data.Quests[quest.Act1TheSearchForCain].Completed() {
a.deckardCain()
}

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.

2 participants