sebastian-heinz / Arrowgene.DragonsDogmaOnline

Server for Dragons Dogma Online
GNU Affero General Public License v3.0
161 stars 52 forks source link

Implement query for completed quest IDs #339

Closed pacampbell closed 2 months ago

pacampbell commented 2 months ago

Added support for updating the list of completed quests after the player enters the game. This should resolve issues where players need to log out and back in after progressing far enough to unlock various features in the game.

DB Migration

Since the quest type enum values changed again, we need to update the quest type field in the DB.

Update the quest type field from 0 to 3 in the tables ddon_completed_quests and ddon_quest_progress

Checklist:

pacampbell commented 2 months ago

Wouldn't we also need to update so the quest type 2 becomes 1 too for world quests? 🤔

I am only saving information for MSQ currently. I didn't want to save everything until I got it working well. Will eventually do it for all so I can implement repeat rewards for quests, etc.