Core/QuestStatus:

- Separate rewarded quests from active quests, and store them in a new table to reduce database size
- Drop the no longer needed `rewarded` column from character_queststatus for smaller table size
- Prevent filling the database with dropped quests
  - Delete useless records
- Implement queststatus save "queues" instead of states
- Minor optimizations

WARNING: Backup your database!

--HG--
branch : trunk
This commit is contained in:
linencloth
2010-12-26 04:16:18 +01:00
parent 8fdbe7c4e6
commit b150172521
16 changed files with 252 additions and 229 deletions
+1 -6
View File
@@ -6116,12 +6116,7 @@ void Spell::EffectQuestClear(SpellEffIndex effIndex)
}
}
// set quest status to not started (will be updated in DB at next save)
pPlayer->SetQuestStatus(quest_id, QUEST_STATUS_NONE);
// reset rewarded for restart repeatable quest
QuestStatusData &data = qs_itr->second;
data.m_rewarded = false;
pPlayer->RemoveQuest(quest_id);
}
void Spell::EffectSendTaxi(SpellEffIndex effIndex)