mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
[Cleanup] Remove unused methods (#4449)
This commit is contained in:
parent
e9b84f4d11
commit
e3588781aa
@ -2931,25 +2931,6 @@ DBnpcspells_Struct *ZoneDatabase::GetNPCSpells(uint32 npc_spells_id)
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 ZoneDatabase::GetMaxNPCSpellsID() {
|
|
||||||
|
|
||||||
std::string query = "SELECT max(id) from npc_spells";
|
|
||||||
auto results = QueryDatabase(query);
|
|
||||||
if (!results.Success()) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (results.RowCount() != 1)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
auto row = results.begin();
|
|
||||||
|
|
||||||
if (!row[0])
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
return Strings::ToInt(row[0]);
|
|
||||||
}
|
|
||||||
|
|
||||||
DBnpcspellseffects_Struct *ZoneDatabase::GetNPCSpellsEffects(uint32 iDBSpellsEffectsID)
|
DBnpcspellseffects_Struct *ZoneDatabase::GetNPCSpellsEffects(uint32 iDBSpellsEffectsID)
|
||||||
{
|
{
|
||||||
if (iDBSpellsEffectsID == 0)
|
if (iDBSpellsEffectsID == 0)
|
||||||
|
|||||||
@ -561,9 +561,6 @@ public:
|
|||||||
bool GetPoweredPetEntry(const std::string& pet_type, int16 pet_power, PetRecord* r);
|
bool GetPoweredPetEntry(const std::string& pet_type, int16 pet_power, PetRecord* r);
|
||||||
bool GetBasePetItems(int32 equipmentset, uint32 *items);
|
bool GetBasePetItems(int32 equipmentset, uint32 *items);
|
||||||
BeastlordPetData::PetStruct GetBeastlordPetData(uint16 race_id);
|
BeastlordPetData::PetStruct GetBeastlordPetData(uint16 race_id);
|
||||||
void AddLootTableToNPC(NPC* npc, uint32 loottable_id, ItemList* itemlist, uint32* copper, uint32* silver, uint32* gold, uint32* plat);
|
|
||||||
void AddLootDropToNPC(NPC* npc, uint32 lootdrop_id, ItemList* item_list, uint8 droplimit, uint8 mindrop);
|
|
||||||
uint32 GetMaxNPCSpellsID();
|
|
||||||
uint32 GetMaxNPCSpellsEffectsID();
|
uint32 GetMaxNPCSpellsEffectsID();
|
||||||
bool GetAuraEntry(uint16 spell_id, AuraRecord &record);
|
bool GetAuraEntry(uint16 spell_id, AuraRecord &record);
|
||||||
void LoadGlobalLoot();
|
void LoadGlobalLoot();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user