Add a column to npc_spellclick_spells table to check if quest is completed/rewarded or incompleted

1: completed or rewarded; 3: incompleted; default 3

--HG--
branch : trunk
This commit is contained in:
Kudlaty committed 2009-05-22 17:43:14 +02:00
1 parent ab5b273d3c
commit 3bd9858417
6 files changed
+17 -6

No files matched your search

+5 -2
View File
@@ -6253,7 +6253,7 @@ void ObjectMgr::LoadNPCSpellClickSpells()
mSpellClickInfoMap.clear();
QueryResult *result = WorldDatabase.Query("SELECT npc_entry, spell_id, quest_id, cast_flags FROM npc_spellclick_spells");
QueryResult *result = WorldDatabase.Query("SELECT npc_entry, spell_id, quest_id, quest_status, cast_flags FROM npc_spellclick_spells");
if(!result)
{
@@ -6302,10 +6302,13 @@ void ObjectMgr::LoadNPCSpellClickSpells()
}
uint8 castFlags = fields[3].GetUInt8();
uint32 queststatus = fields[3].GetUInt32();
uint8 castFlags = fields[4].GetUInt8();
SpellClickInfo info;
info.spellId = spellid;
info.questId = quest;
info.questStatus = queststatus;
info.castFlags = castFlags;
mSpellClickInfoMap.insert(SpellClickInfoMap::value_type(npc_entry, info));
++count;