mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 15:41:30 +00:00
Migrate NPC spells, emotes, merchantlist [skip ci]
This commit is contained in:
parent
ca49f3902f
commit
951a77716c
@ -2464,12 +2464,12 @@ bool NPC::AI_AddNPCSpells(uint32 iDBSpellsID) {
|
||||
AIautocastspell_timer->Disable();
|
||||
return false;
|
||||
}
|
||||
DBnpcspells_Struct* spell_list = database.GetNPCSpells(iDBSpellsID);
|
||||
DBnpcspells_Struct* spell_list = content_db.GetNPCSpells(iDBSpellsID);
|
||||
if (!spell_list) {
|
||||
AIautocastspell_timer->Disable();
|
||||
return false;
|
||||
}
|
||||
DBnpcspells_Struct* parentlist = database.GetNPCSpells(spell_list->parent_list);
|
||||
DBnpcspells_Struct* parentlist = content_db.GetNPCSpells(spell_list->parent_list);
|
||||
#if MobAI_DEBUG_Spells >= 10
|
||||
std::string debug_msg = StringFormat("Loading NPCSpells onto %s: dbspellsid=%u, level=%u", this->GetName(), iDBSpellsID, this->GetLevel());
|
||||
if (spell_list) {
|
||||
@ -2636,13 +2636,13 @@ bool NPC::AI_AddNPCSpellsEffects(uint32 iDBSpellsEffectsID) {
|
||||
if (iDBSpellsEffectsID == 0)
|
||||
return false;
|
||||
|
||||
DBnpcspellseffects_Struct* spell_effects_list = database.GetNPCSpellsEffects(iDBSpellsEffectsID);
|
||||
DBnpcspellseffects_Struct* spell_effects_list = content_db.GetNPCSpellsEffects(iDBSpellsEffectsID);
|
||||
|
||||
if (!spell_effects_list) {
|
||||
return false;
|
||||
}
|
||||
|
||||
DBnpcspellseffects_Struct* parentlist = database.GetNPCSpellsEffects(spell_effects_list->parent_list);
|
||||
DBnpcspellseffects_Struct* parentlist = content_db.GetNPCSpellsEffects(spell_effects_list->parent_list);
|
||||
|
||||
uint32 i;
|
||||
#if MobAI_DEBUG_Spells >= 10
|
||||
|
||||
@ -166,7 +166,7 @@ void NpcScaleManager::ScaleNPC(NPC *npc)
|
||||
|
||||
bool NpcScaleManager::LoadScaleData()
|
||||
{
|
||||
auto results = database.QueryDatabase(
|
||||
auto results = content_db.QueryDatabase(
|
||||
"SELECT "
|
||||
"type,"
|
||||
"level,"
|
||||
|
||||
@ -468,7 +468,7 @@ void Zone::LoadNewMerchantData(uint32 merchantid) {
|
||||
std::list<MerchantList> merlist;
|
||||
std::string query = StringFormat("SELECT item, slot, faction_required, level_required, alt_currency_cost, "
|
||||
"classes_required, probability FROM merchantlist WHERE merchantid=%d ORDER BY slot", merchantid);
|
||||
auto results = database.QueryDatabase(query);
|
||||
auto results = content_db.QueryDatabase(query);
|
||||
if (!results.Success()) {
|
||||
return;
|
||||
}
|
||||
@ -2311,7 +2311,7 @@ void Zone::LoadNPCEmotes(LinkedList<NPC_Emote_Struct*>* NPCEmoteList)
|
||||
|
||||
NPCEmoteList->Clear();
|
||||
const std::string query = "SELECT emoteid, event_, type, text FROM npc_emotes";
|
||||
auto results = database.QueryDatabase(query);
|
||||
auto results = content_db.QueryDatabase(query);
|
||||
if (!results.Success()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user