Core/Players: Implement warband scene collection
Port From (https://github.com/TrinityCore/TrinityCore/commit/29e032707686b18bbcce7029e8dd2eaa6606f6d4)
This commit is contained in:
@@ -174,6 +174,11 @@ namespace Framework.Database
|
||||
PrepareStatement(LoginStatements.SEL_BNET_TRANSMOG_ILLUSIONS, "SELECT blobIndex, illusionMask FROM battlenet_account_transmog_illusions WHERE battlenetAccountId = ? ORDER BY blobIndex DESC");
|
||||
PrepareStatement(LoginStatements.INS_BNET_TRANSMOG_ILLUSIONS, "INSERT INTO battlenet_account_transmog_illusions (battlenetAccountId, blobIndex, illusionMask) VALUES (?, ?, ?) " +
|
||||
"ON DUPLICATE KEY UPDATE illusionMask = illusionMask | VALUES(illusionMask)");
|
||||
PrepareStatement(LoginStatements.SEL_BNET_WARBAND_SCENES, "SELECT warbandSceneId, isFavorite, hasFanfare FROM battlenet_account_warband_scenes WHERE battlenetAccountId = ?");
|
||||
PrepareStatement(LoginStatements.INS_BNET_WARBAND_SCENE, "INSERT INTO battlenet_account_warband_scenes (battlenetAccountId, warbandSceneId, isFavorite, hasFanfare) VALUES (?, ?, ?, ?) " +
|
||||
"ON DUPLICATE KEY UPDATE isFavorite = VALUES(isFavorite)");
|
||||
PrepareStatement(LoginStatements.UPD_BNET_WARBAND_SCENE, "UPDATE battlenet_account_warband_scenes SET isFavorite = ?, hasFanfare = ? WHERE battlenetAccountId = ? AND warbandSceneId = ?");
|
||||
PrepareStatement(LoginStatements.DEL_BNET_WARBAND_SCENE, "DELETE FROM battlenet_account_warband_scenes WHERE battlenetAccountId = ? AND warbandSceneId = ?");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -327,6 +332,10 @@ namespace Framework.Database
|
||||
DEL_BNET_ITEM_FAVORITE_APPEARANCE,
|
||||
SEL_BNET_TRANSMOG_ILLUSIONS,
|
||||
INS_BNET_TRANSMOG_ILLUSIONS,
|
||||
SEL_BNET_WARBAND_SCENES,
|
||||
INS_BNET_WARBAND_SCENE,
|
||||
UPD_BNET_WARBAND_SCENE,
|
||||
DEL_BNET_WARBAND_SCENE,
|
||||
|
||||
MAX_LOGINDATABASE_STATEMENTS
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user