Wrong logs for creature_equip_template + startup errors fixes (#758)
* Fixed wrong logs * Added some errors fixes on startup
This commit is contained in:
committed by
Francesco Borzì
parent
84949746e1
commit
ca2ee81939
@@ -0,0 +1,13 @@
|
|||||||
|
INSERT INTO version_db_world (`sql_rev`) VALUES ('1516149942175144200');
|
||||||
|
|
||||||
|
-- Useless loot
|
||||||
|
DELETE FROM `creature_loot_template` WHERE `entry` IN (1, 1175);
|
||||||
|
-- Conditions for lootid 1, useless
|
||||||
|
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 1 AND `SourceGroup` = 1;
|
||||||
|
|
||||||
|
-- Attumen the Huntsman - Fix condition on item 23809
|
||||||
|
UPDATE `conditions` SET `SourceGroup` = 16152 WHERE `SourceGroup` = 15550 AND `SourceEntry` = 23809;
|
||||||
|
|
||||||
|
-- Conditions that aren't referenced and, still, aren't correct.
|
||||||
|
DELETE FROM `conditions` WHERE `SourceGroup` = 21060 AND `SourceEntry` = 23612;
|
||||||
|
DELETE FROM `conditions` WHERE `SourceGroup` = 21061 AND `SourceEntry` = 23612;
|
||||||
@@ -1149,7 +1149,7 @@ void ObjectMgr::LoadEquipmentTemplates()
|
|||||||
|
|
||||||
if (!sObjectMgr->GetCreatureTemplate(entry))
|
if (!sObjectMgr->GetCreatureTemplate(entry))
|
||||||
{
|
{
|
||||||
sLog->outError("Creature template (Entry: %u) does not exist but has a record in `creature_equip_template`", entry);
|
sLog->outError("Creature template (CreatureID: %u) does not exist but has a record in `creature_equip_template`", entry);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1175,8 +1175,8 @@ void ObjectMgr::LoadEquipmentTemplates()
|
|||||||
|
|
||||||
if (!item)
|
if (!item)
|
||||||
{
|
{
|
||||||
sLog->outErrorDb("Unknown item (entry=%u) in creature_equip_template.itemEntry%u for entry = %u, forced to 0.",
|
sLog->outErrorDb("Unknown item (ID=%u) in creature_equip_template.ItemID%u for CreatureID = %u and ID = %u, forced to 0.",
|
||||||
equipmentInfo.ItemEntry[i], i+1, entry);
|
equipmentInfo.ItemEntry[i], i+1, entry, id);
|
||||||
equipmentInfo.ItemEntry[i] = 0;
|
equipmentInfo.ItemEntry[i] = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -1191,8 +1191,8 @@ void ObjectMgr::LoadEquipmentTemplates()
|
|||||||
item->InventoryType != INVTYPE_THROWN &&
|
item->InventoryType != INVTYPE_THROWN &&
|
||||||
item->InventoryType != INVTYPE_RANGEDRIGHT)
|
item->InventoryType != INVTYPE_RANGEDRIGHT)
|
||||||
{
|
{
|
||||||
sLog->outErrorDb("Item (entry=%u) in creature_equip_template.itemEntry%u for entry = %u is not equipable in a hand, forced to 0.",
|
sLog->outErrorDb("Item (ID=%u) in creature_equip_template.ItemID%u for CreatureID = %u and ID = %u is not equipable in a hand, forced to 0.",
|
||||||
equipmentInfo.ItemEntry[i], i+1, entry);
|
equipmentInfo.ItemEntry[i], i+1, entry, id);
|
||||||
equipmentInfo.ItemEntry[i] = 0;
|
equipmentInfo.ItemEntry[i] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user