Core/Auras: Implemented mount equipment

This commit is contained in:
Shauren
2024-11-19 21:40:49 +01:00
parent 6d78230d6b
commit 6dd5fb9d88
18 changed files with 199 additions and 11 deletions

View File

@@ -1194,6 +1194,11 @@ void HotfixDatabaseConnection::DoPrepareStatements()
"ReqMapID, PlayerConditionID, FlightCapabilityID FROM mount_capability WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH);
PREPARE_MAX_ID_STMT(HOTFIX_SEL_MOUNT_CAPABILITY, "SELECT MAX(ID) + 1 FROM mount_capability", CONNECTION_SYNCH);
// MountEquipment.db2
PrepareStatement(HOTFIX_SEL_MOUNT_EQUIPMENT, "SELECT ID, Item, BuffSpell, Unknown820, LearnedBySpell FROM mount_equipment"
" WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH);
PREPARE_MAX_ID_STMT(HOTFIX_SEL_MOUNT_EQUIPMENT, "SELECT MAX(ID) + 1 FROM mount_equipment", CONNECTION_SYNCH);
// MountTypeXCapability.db2
PrepareStatement(HOTFIX_SEL_MOUNT_TYPE_X_CAPABILITY, "SELECT ID, MountTypeID, MountCapabilityID, OrderIndex FROM mount_type_x_capability"
" WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH);

View File

@@ -685,6 +685,9 @@ enum HotfixDatabaseStatements : uint32
HOTFIX_SEL_MOUNT_CAPABILITY,
HOTFIX_SEL_MOUNT_CAPABILITY_MAX_ID,
HOTFIX_SEL_MOUNT_EQUIPMENT,
HOTFIX_SEL_MOUNT_EQUIPMENT_MAX_ID,
HOTFIX_SEL_MOUNT_TYPE_X_CAPABILITY,
HOTFIX_SEL_MOUNT_TYPE_X_CAPABILITY_MAX_ID,