db fixes
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -21281,25 +21281,25 @@ void Player::SaveToDB(LoginDatabaseTransaction loginTransaction, CharacterDataba
|
||||
stmt->setUInt64(index++, GetMoney());
|
||||
stmt->setUInt8(index++, GetInventorySlotCount());
|
||||
stmt->setUInt32(index++, [&]
|
||||
{
|
||||
BagSlotFlags inventoryFlags = BagSlotFlags::None;
|
||||
if (m_activePlayerData->BackpackAutoSortDisabled)
|
||||
inventoryFlags |= BagSlotFlags::DisableAutoSort;
|
||||
if (m_activePlayerData->BackpackSellJunkDisabled)
|
||||
inventoryFlags |= BagSlotFlags::ExcludeJunkSell;
|
||||
return AsUnderlyingType(inventoryFlags);
|
||||
}());
|
||||
{
|
||||
BagSlotFlags inventoryFlags = BagSlotFlags::None;
|
||||
if (m_activePlayerData->BackpackAutoSortDisabled)
|
||||
inventoryFlags |= BagSlotFlags::DisableAutoSort;
|
||||
if (m_activePlayerData->BackpackSellJunkDisabled)
|
||||
inventoryFlags |= BagSlotFlags::ExcludeJunkSell;
|
||||
return AsUnderlyingType(inventoryFlags);
|
||||
}());
|
||||
for (uint32 bagSlotFlag : m_activePlayerData->BagSlotFlags)
|
||||
stmt->setUInt32(index++, bagSlotFlag);
|
||||
stmt->setUInt8(index++, GetBankBagSlotCount());
|
||||
stmt->setUInt8(index++, GetCharacterBankTabCount());
|
||||
stmt->setUInt32(index++, [&]
|
||||
{
|
||||
BagSlotFlags inventoryFlags = BagSlotFlags::None;
|
||||
if (m_activePlayerData->BankAutoSortDisabled)
|
||||
inventoryFlags |= BagSlotFlags::DisableAutoSort;
|
||||
return AsUnderlyingType(inventoryFlags);
|
||||
}());
|
||||
{
|
||||
BagSlotFlags inventoryFlags = BagSlotFlags::None;
|
||||
if (m_activePlayerData->BankAutoSortDisabled)
|
||||
inventoryFlags |= BagSlotFlags::DisableAutoSort;
|
||||
return AsUnderlyingType(inventoryFlags);
|
||||
}());
|
||||
stmt->setUInt8(index++, m_activePlayerData->RestInfo[REST_TYPE_XP].StateID);
|
||||
stmt->setUInt32(index++, m_playerData->PlayerFlags);
|
||||
stmt->setUInt32(index++, m_playerData->PlayerFlagsEx);
|
||||
@@ -21331,7 +21331,7 @@ void Player::SaveToDB(LoginDatabaseTransaction loginTransaction, CharacterDataba
|
||||
stmt->setUInt32(index++, m_Played_time[PLAYED_TIME_LEVEL]);
|
||||
stmt->setFloat(index++, finiteAlways(_restMgr->GetRestBonus(REST_TYPE_XP)));
|
||||
stmt->setUInt64(index++, GameTime::GetGameTime());
|
||||
stmt->setUInt8(index++, (HasPlayerFlag(PLAYER_FLAGS_RESTING) ? 1 : 0));
|
||||
stmt->setUInt8(index++, (HasPlayerFlag(PLAYER_FLAGS_RESTING) ? 1 : 0));
|
||||
//save, far from tavern/city
|
||||
//save, but in tavern/city
|
||||
stmt->setUInt32(index++, GetTalentResetCost());
|
||||
@@ -21371,7 +21371,7 @@ void Player::SaveToDB(LoginDatabaseTransaction loginTransaction, CharacterDataba
|
||||
}
|
||||
stmt->setString(index++, ss.str());
|
||||
|
||||
stmt->setString(index++, GetCharacterSelectOutfit());
|
||||
stmt->setString(index++, GetCharacterSelectOutfit());
|
||||
|
||||
ss.str("");
|
||||
for (uint32 i = 0; i < m_activePlayerData->KnownTitles.size(); ++i)
|
||||
@@ -21409,25 +21409,25 @@ void Player::SaveToDB(LoginDatabaseTransaction loginTransaction, CharacterDataba
|
||||
stmt->setUInt64(index++, GetMoney());
|
||||
stmt->setUInt8(index++, GetInventorySlotCount());
|
||||
stmt->setUInt32(index++, [&]
|
||||
{
|
||||
BagSlotFlags inventoryFlags = BagSlotFlags::None;
|
||||
if (m_activePlayerData->BackpackAutoSortDisabled)
|
||||
inventoryFlags |= BagSlotFlags::DisableAutoSort;
|
||||
if (m_activePlayerData->BackpackSellJunkDisabled)
|
||||
inventoryFlags |= BagSlotFlags::ExcludeJunkSell;
|
||||
return AsUnderlyingType(inventoryFlags);
|
||||
}());
|
||||
{
|
||||
BagSlotFlags inventoryFlags = BagSlotFlags::None;
|
||||
if (m_activePlayerData->BackpackAutoSortDisabled)
|
||||
inventoryFlags |= BagSlotFlags::DisableAutoSort;
|
||||
if (m_activePlayerData->BackpackSellJunkDisabled)
|
||||
inventoryFlags |= BagSlotFlags::ExcludeJunkSell;
|
||||
return AsUnderlyingType(inventoryFlags);
|
||||
}());
|
||||
for (uint32 bagSlotFlag : m_activePlayerData->BagSlotFlags)
|
||||
stmt->setUInt32(index++, bagSlotFlag);
|
||||
stmt->setUInt8(index++, GetBankBagSlotCount());
|
||||
stmt->setUInt8(index++, GetCharacterBankTabCount());
|
||||
stmt->setUInt32(index++, [&]
|
||||
{
|
||||
BagSlotFlags inventoryFlags = BagSlotFlags::None;
|
||||
if (m_activePlayerData->BankAutoSortDisabled)
|
||||
inventoryFlags |= BagSlotFlags::DisableAutoSort;
|
||||
return AsUnderlyingType(inventoryFlags);
|
||||
}());
|
||||
{
|
||||
BagSlotFlags inventoryFlags = BagSlotFlags::None;
|
||||
if (m_activePlayerData->BankAutoSortDisabled)
|
||||
inventoryFlags |= BagSlotFlags::DisableAutoSort;
|
||||
return AsUnderlyingType(inventoryFlags);
|
||||
}());
|
||||
stmt->setUInt8(index++, m_activePlayerData->RestInfo[REST_TYPE_XP].StateID);
|
||||
stmt->setUInt32(index++, m_playerData->PlayerFlags);
|
||||
stmt->setUInt32(index++, m_playerData->PlayerFlagsEx);
|
||||
@@ -21474,7 +21474,7 @@ void Player::SaveToDB(LoginDatabaseTransaction loginTransaction, CharacterDataba
|
||||
stmt->setUInt32(index++, m_Played_time[PLAYED_TIME_LEVEL]);
|
||||
stmt->setFloat(index++, finiteAlways(_restMgr->GetRestBonus(REST_TYPE_XP)));
|
||||
stmt->setUInt64(index++, GameTime::GetGameTime());
|
||||
stmt->setUInt8(index++, (HasPlayerFlag(PLAYER_FLAGS_RESTING) ? 1 : 0));
|
||||
stmt->setUInt8(index++, (HasPlayerFlag(PLAYER_FLAGS_RESTING) ? 1 : 0));
|
||||
//save, far from tavern/city
|
||||
//save, but in tavern/city
|
||||
stmt->setUInt32(index++, GetTalentResetCost());
|
||||
@@ -21540,7 +21540,7 @@ void Player::SaveToDB(LoginDatabaseTransaction loginTransaction, CharacterDataba
|
||||
stmt->setUInt32(index++, ClientBuild::GetMinorMajorBugfixVersionForBuild(currentRealm->Build));
|
||||
else
|
||||
stmt->setUInt32(index++, 0);
|
||||
stmt->setUInt8(index++, uint8(m_activePlayerData->UiChromieTimeExpansionID));
|
||||
stmt->setUInt8(index++, uint8(m_activePlayerData->UiChromieTimeExpansionID));
|
||||
|
||||
stmt->setInt32(index++, m_playerData->PersonalTabard->EmblemStyle);
|
||||
stmt->setInt32(index++, m_playerData->PersonalTabard->EmblemColor);
|
||||
@@ -21572,7 +21572,7 @@ void Player::SaveToDB(LoginDatabaseTransaction loginTransaction, CharacterDataba
|
||||
_SaveBGData(trans);
|
||||
_SaveInventory(trans);
|
||||
_SaveQuestStatus(trans);
|
||||
// _SaveWorldQuestStatus(trans); todo thor
|
||||
// _SaveWorldQuestStatus(trans); todo thor
|
||||
_SaveDailyQuestStatus(trans);
|
||||
_SaveWeeklyQuestStatus(trans);
|
||||
_SaveSeasonalQuestStatus(trans);
|
||||
|
||||
Reference in New Issue
Block a user