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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user