Merge commit 'd3ad87b1cf48222aef5cbbc1f00cf2babadce111' into 4.3.4
Conflicts: sql/updates/world/2015_03_16_00_world.sql sql/updates/world/2015_03_16_01_world_335.sql
This commit is contained in:
commit
f7f6eae247
13 files changed
+99
-123
No files matched your search
@@ -64,7 +64,7 @@ void AuctionBotBuyer::LoadConfig()
|
||||
}
|
||||
}
|
||||
|
||||
void AuctionBotBuyer::LoadBuyerValues(BuyerConfiguration& config)
|
||||
void AuctionBotBuyer::LoadBuyerValues(BuyerConfiguration& /* config */)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -4850,10 +4850,22 @@ void Player::DeleteFromDB(ObjectGuid playerguid, uint32 accountId, bool updateRe
|
||||
stmt->setUInt32(0, guid);
|
||||
trans->Append(stmt);
|
||||
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_CHARACTER_ARENA_STATS);
|
||||
stmt->setUInt32(0, guid);
|
||||
trans->Append(stmt);
|
||||
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_CHAR_AURA);
|
||||
stmt->setUInt32(0, guid);
|
||||
trans->Append(stmt);
|
||||
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_PLAYER_BGDATA);
|
||||
stmt->setUInt32(0, guid);
|
||||
trans->Append(stmt);
|
||||
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_BATTLEGROUND_RANDOM);
|
||||
stmt->setUInt32(0, guid);
|
||||
trans->Append(stmt);
|
||||
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_CHAR_GIFT);
|
||||
stmt->setUInt32(0, guid);
|
||||
trans->Append(stmt);
|
||||
@@ -4943,10 +4955,6 @@ void Player::DeleteFromDB(ObjectGuid playerguid, uint32 accountId, bool updateRe
|
||||
stmt->setUInt32(0, guid);
|
||||
trans->Append(stmt);
|
||||
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_PLAYER_BGDATA);
|
||||
stmt->setUInt32(0, guid);
|
||||
trans->Append(stmt);
|
||||
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_CHAR_GLYPHS);
|
||||
stmt->setUInt32(0, guid);
|
||||
trans->Append(stmt);
|
||||
@@ -4975,6 +4983,10 @@ void Player::DeleteFromDB(ObjectGuid playerguid, uint32 accountId, bool updateRe
|
||||
stmt->setUInt32(0, guid);
|
||||
trans->Append(stmt);
|
||||
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_CHAR_STATS);
|
||||
stmt->setUInt32(0, guid);
|
||||
trans->Append(stmt);
|
||||
|
||||
CharacterDatabase.CommitTransaction(trans);
|
||||
break;
|
||||
}
|
||||
@@ -20031,6 +20043,7 @@ void Player::_SaveCUFProfiles(SQLTransaction& trans)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Player::_SaveMail(SQLTransaction& trans)
|
||||
{
|
||||
if (!m_mailsLoaded)
|
||||
|
||||
@@ -8747,7 +8747,6 @@ void ObjectMgr::LoadBroadcastTexts()
|
||||
}
|
||||
|
||||
_broadcastTextStore.rehash(result->GetRowCount());
|
||||
uint32 count = 0;
|
||||
|
||||
do
|
||||
{
|
||||
@@ -8773,26 +8772,23 @@ void ObjectMgr::LoadBroadcastTexts()
|
||||
{
|
||||
if (!sSoundEntriesStore.LookupEntry(bct.SoundId))
|
||||
{
|
||||
TC_LOG_INFO("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` has SoundId %u but sound does not exist. Skipped.", bct.Id, bct.SoundId);
|
||||
// don't load bct of higher expansions
|
||||
continue;
|
||||
TC_LOG_DEBUG("broadcasttext", "BroadcastText (Id: %u) in table `broadcast_text` has SoundId %u but sound does not exist.", bct.Id, bct.SoundId);
|
||||
bct.SoundId = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (!GetLanguageDescByID(bct.Language))
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` using Language %u but Language does not exist. Skipped.", bct.Id, bct.Language);
|
||||
// don't load bct of higher expansions
|
||||
continue;
|
||||
TC_LOG_DEBUG("broadcasttext", "BroadcastText (Id: %u) in table `broadcast_text` using Language %u but Language does not exist.", bct.Id, bct.Language);
|
||||
bct.Language = LANG_UNIVERSAL;
|
||||
}
|
||||
|
||||
if (bct.EmoteId0)
|
||||
{
|
||||
if (!sEmotesStore.LookupEntry(bct.EmoteId0))
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` has EmoteId0 %u but emote does not exist. Skipped.", bct.Id, bct.EmoteId0);
|
||||
// don't load bct of higher expansions
|
||||
continue;
|
||||
TC_LOG_DEBUG("broadcasttext", "BroadcastText (Id: %u) in table `broadcast_text` has EmoteId0 %u but emote does not exist.", bct.Id, bct.EmoteId0);
|
||||
bct.EmoteId0 = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8800,9 +8796,8 @@ void ObjectMgr::LoadBroadcastTexts()
|
||||
{
|
||||
if (!sEmotesStore.LookupEntry(bct.EmoteId1))
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` has EmoteId1 %u but emote does not exist. Skipped.", bct.Id, bct.EmoteId1);
|
||||
// don't load bct of higher expansions
|
||||
continue;
|
||||
TC_LOG_DEBUG("broadcasttext", "BroadcastText (Id: %u) in table `broadcast_text` has EmoteId1 %u but emote does not exist.", bct.Id, bct.EmoteId1);
|
||||
bct.EmoteId1 = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8810,19 +8805,16 @@ void ObjectMgr::LoadBroadcastTexts()
|
||||
{
|
||||
if (!sEmotesStore.LookupEntry(bct.EmoteId2))
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "BroadcastText (Id: %u) in table `broadcast_text` has EmoteId2 %u but emote does not exist. Skipped.", bct.Id, bct.EmoteId2);
|
||||
// don't load bct of higher expansions
|
||||
continue;
|
||||
TC_LOG_DEBUG("broadcasttext", "BroadcastText (Id: %u) in table `broadcast_text` has EmoteId2 %u but emote does not exist.", bct.Id, bct.EmoteId2);
|
||||
bct.EmoteId2 = 0;
|
||||
}
|
||||
}
|
||||
|
||||
_broadcastTextStore[bct.Id] = bct;
|
||||
|
||||
++count;
|
||||
}
|
||||
while (result->NextRow());
|
||||
|
||||
TC_LOG_INFO("server.loading", ">> Loaded %u broadcast texts in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
||||
TC_LOG_INFO("server.loading", ">> Loaded " SZFMTD " broadcast texts in %u ms", _broadcastTextStore.size(), GetMSTimeDiffToNow(oldMSTime));
|
||||
}
|
||||
|
||||
void ObjectMgr::LoadBroadcastTextLocales()
|
||||
@@ -8848,8 +8840,7 @@ void ObjectMgr::LoadBroadcastTextLocales()
|
||||
BroadcastTextContainer::iterator bct = _broadcastTextStore.find(id);
|
||||
if (bct == _broadcastTextStore.end())
|
||||
{
|
||||
TC_LOG_INFO("sql.sql", "BroadcastText (Id: %u) in table `locales_broadcast_text` does not exist or is incompatible. Skipped!", id);
|
||||
// don't load bct of higher expansions
|
||||
TC_LOG_ERROR("sql.sql", "BroadcastText (Id: %u) in table `locales_broadcast_text` does not exist. Skipped!", id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -387,6 +387,43 @@ void MotionMaster::MoveJump(float x, float y, float z, float speedXY, float spee
|
||||
Mutate(new EffectMovementGenerator(id), MOTION_SLOT_CONTROLLED);
|
||||
}
|
||||
|
||||
void MotionMaster::MoveCirclePath(float x, float y, float z, float radius, bool clockwise, uint8 stepCount)
|
||||
{
|
||||
float step = 2 * float(M_PI) / stepCount * (clockwise ? -1.0f : 1.0f);
|
||||
Position const& pos = { x, y, z, 0.0f };
|
||||
float angle = pos.GetAngle(_owner->GetPositionX(), _owner->GetPositionY());
|
||||
|
||||
Movement::MoveSplineInit init(_owner);
|
||||
|
||||
for (uint8 i = 0; i < stepCount; angle += step, ++i)
|
||||
{
|
||||
G3D::Vector3 point;
|
||||
point.x = x + radius * cosf(angle);
|
||||
point.y = y + radius * sinf(angle);
|
||||
|
||||
if (_owner->IsFlying())
|
||||
point.z = z;
|
||||
else
|
||||
point.z = _owner->GetMap()->GetHeight(_owner->GetPhaseMask(), point.x, point.y, z);
|
||||
|
||||
init.Path().push_back(point);
|
||||
}
|
||||
|
||||
if (_owner->IsFlying())
|
||||
{
|
||||
init.SetFly();
|
||||
init.SetCyclic();
|
||||
init.SetAnimation(Movement::ToFly);
|
||||
}
|
||||
else
|
||||
{
|
||||
init.SetWalk(true);
|
||||
init.SetCyclic();
|
||||
}
|
||||
|
||||
init.Launch();
|
||||
}
|
||||
|
||||
void MotionMaster::MoveFall(uint32 id /*=0*/)
|
||||
{
|
||||
// use larger distance for vmap height search than in most other cases
|
||||
|
||||
@@ -184,6 +184,7 @@ class MotionMaster //: private std::stack<MovementGenerator *>
|
||||
void MoveJump(Position const& pos, float speedXY, float speedZ, uint32 id = EVENT_JUMP)
|
||||
{ MoveJump(pos.m_positionX, pos.m_positionY, pos.m_positionZ, speedXY, speedZ, id); };
|
||||
void MoveJump(float x, float y, float z, float speedXY, float speedZ, uint32 id = EVENT_JUMP);
|
||||
void MoveCirclePath(float x, float y, float z, float radius, bool clockwise, uint8 stepCount);
|
||||
void MoveFall(uint32 id = 0);
|
||||
|
||||
void MoveSeekAssistance(float x, float y, float z);
|
||||
|
||||
@@ -758,12 +758,13 @@ void Aura::SetDuration(int32 duration, bool withMods)
|
||||
|
||||
void Aura::RefreshDuration(bool withMods)
|
||||
{
|
||||
if (withMods)
|
||||
Unit* caster = GetCaster();
|
||||
if (withMods && caster)
|
||||
{
|
||||
int32 duration = m_spellInfo->GetMaxDuration();
|
||||
// Calculate duration of periodics affected by haste.
|
||||
if (GetCaster()->HasAuraTypeWithAffectMask(SPELL_AURA_PERIODIC_HASTE, m_spellInfo) || m_spellInfo->AttributesEx5 & SPELL_ATTR5_HASTE_AFFECT_DURATION)
|
||||
duration = int32(duration * GetCaster()->GetFloatValue(UNIT_MOD_CAST_SPEED));
|
||||
if (caster->HasAuraTypeWithAffectMask(SPELL_AURA_PERIODIC_HASTE, m_spellInfo) || m_spellInfo->AttributesEx5 & SPELL_ATTR5_HASTE_AFFECT_DURATION)
|
||||
duration = int32(duration * caster->GetFloatValue(UNIT_MOD_CAST_SPEED));
|
||||
|
||||
SetMaxDuration(duration);
|
||||
SetDuration(duration);
|
||||
|
||||
@@ -3119,7 +3119,7 @@ void World::ResetRandomBG()
|
||||
{
|
||||
TC_LOG_INFO("misc", "Random BG status reset for all characters.");
|
||||
|
||||
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_BATTLEGROUND_RANDOM);
|
||||
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_BATTLEGROUND_RANDOM_ALL);
|
||||
CharacterDatabase.Execute(stmt);
|
||||
|
||||
for (SessionMap::const_iterator itr = m_sessions.begin(); itr != m_sessions.end(); ++itr)
|
||||
|
||||
@@ -36,19 +36,27 @@ EndContentData */
|
||||
# at_malfurion_Stormrage_trigger
|
||||
#####*/
|
||||
|
||||
enum MalfurionMisc
|
||||
{
|
||||
NPC_MALFURION_STORMRAGE = 15362,
|
||||
QUEST_ERANIKUS_TYRANT_OF_DREAMS = 8733,
|
||||
QUEST_THE_CHARGE_OF_DRAGONFLIGHTS = 8555,
|
||||
};
|
||||
|
||||
class at_malfurion_stormrage : public AreaTriggerScript
|
||||
{
|
||||
public:
|
||||
at_malfurion_stormrage() : AreaTriggerScript("at_malfurion_stormrage") { }
|
||||
|
||||
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/) override
|
||||
{
|
||||
if (player->GetInstanceScript() && !player->FindNearestCreature(15362, 15))
|
||||
player->SummonCreature(15362, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ(), -1.52f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 100000);
|
||||
return false;
|
||||
}
|
||||
public:
|
||||
at_malfurion_stormrage() : AreaTriggerScript("at_malfurion_stormrage") { }
|
||||
|
||||
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/) override
|
||||
{
|
||||
if (player->GetInstanceScript() && !player->FindNearestCreature(NPC_MALFURION_STORMRAGE, 15.0f) &&
|
||||
player->GetQuestStatus(QUEST_THE_CHARGE_OF_DRAGONFLIGHTS) == QUEST_STATUS_REWARDED && player->GetQuestStatus(QUEST_ERANIKUS_TYRANT_OF_DREAMS) != QUEST_STATUS_REWARDED)
|
||||
player->SummonCreature(NPC_MALFURION_STORMRAGE, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ(), -1.52f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 100000);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
/*#####
|
||||
# go_atalai_statue
|
||||
#####*/
|
||||
|
||||
@@ -2640,13 +2640,7 @@ class npc_quel_delar_sword : public CreatureScript
|
||||
break;
|
||||
case EVENT_QUEL_DELAR_FLIGHT:
|
||||
{
|
||||
Movement::MoveSplineInit init(me);
|
||||
FillCirclePath(QuelDelarCenterPos, 18.0f, 718.046f, init.Path(), true);
|
||||
init.SetFly();
|
||||
init.SetCyclic();
|
||||
init.SetAnimation(Movement::ToFly);
|
||||
init.Launch();
|
||||
|
||||
me->GetMotionMaster()->MoveCirclePath(QuelDelarCenterPos.GetPositionX(), QuelDelarCenterPos.GetPositionY(), 718.046f, 18.0f, true, 16);
|
||||
_events.ScheduleEvent(EVENT_QUEL_DELAR_LAND, 15000);
|
||||
break;
|
||||
}
|
||||
@@ -2694,21 +2688,6 @@ class npc_quel_delar_sword : public CreatureScript
|
||||
}
|
||||
|
||||
private:
|
||||
void FillCirclePath(Position const& centerPos, float radius, float z, Movement::PointsArray& path, bool clockwise)
|
||||
{
|
||||
float step = clockwise ? -M_PI / 8.0f : M_PI / 8.0f;
|
||||
float angle = centerPos.GetAngle(me->GetPositionX(), me->GetPositionY());
|
||||
|
||||
for (uint8 i = 0; i < 16; angle += step, ++i)
|
||||
{
|
||||
G3D::Vector3 point;
|
||||
point.x = centerPos.GetPositionX() + radius * cosf(angle);
|
||||
point.y = centerPos.GetPositionY() + radius * sinf(angle);
|
||||
point.z = z;
|
||||
path.push_back(point);
|
||||
}
|
||||
}
|
||||
|
||||
EventMap _events;
|
||||
InstanceScript* _instance;
|
||||
bool _intro;
|
||||
|
||||
@@ -520,11 +520,7 @@ public:
|
||||
_despawned = false;
|
||||
break;
|
||||
case ACTION_CYCLIC_MOVEMENT:
|
||||
Movement::MoveSplineInit init(me);
|
||||
FillCirclePath(MalygosPositions[3], 120.0f, 283.2763f, init.Path(), true);
|
||||
init.SetFly();
|
||||
init.SetCyclic();
|
||||
init.Launch();
|
||||
me->GetMotionMaster()->MoveCirclePath(MalygosPositions[3].GetPositionX(), MalygosPositions[3].GetPositionY(), 283.2763f, 120.0f, true, 16);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1020,22 +1016,6 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
// Used to generate perfect cyclic movements (Enter Circle).
|
||||
void FillCirclePath(Position const& centerPos, float radius, float z, Movement::PointsArray& path, bool clockwise)
|
||||
{
|
||||
float step = clockwise ? float(-M_PI) / 8.0f : float(M_PI) / 8.0f;
|
||||
float angle = centerPos.GetAngle(me->GetPositionX(), me->GetPositionY());
|
||||
|
||||
for (uint8 i = 0; i < 16; angle += step, ++i)
|
||||
{
|
||||
G3D::Vector3 point;
|
||||
point.x = centerPos.GetPositionX() + radius * cosf(angle);
|
||||
point.y = centerPos.GetPositionY() + radius * sinf(angle);
|
||||
point.z = z; // Don't use any height getters unless all bugs are fixed.
|
||||
path.push_back(point);
|
||||
}
|
||||
}
|
||||
|
||||
uint8 _phase; // Counter for phases used with a getter.
|
||||
uint8 _summonDeaths; // Keeps count of arcane trash.
|
||||
uint8 _preparingPulsesChecker; // In retail they use 2 preparing pulses with 7 sec CD, after they pass 2 seconds.
|
||||
@@ -1326,11 +1306,7 @@ public:
|
||||
{
|
||||
if (action < ACTION_DELAYED_DESPAWN)
|
||||
{
|
||||
Movement::MoveSplineInit init(me);
|
||||
FillCirclePath(MalygosPositions[3], 35.0f, 282.3402f, init.Path(), true);
|
||||
init.SetFly();
|
||||
init.SetCyclic();
|
||||
init.Launch();
|
||||
me->GetMotionMaster()->MoveCirclePath(MalygosPositions[3].GetPositionX(), MalygosPositions[3].GetPositionY(), 282.3402f, 35.0f, true, 16);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1339,21 +1315,6 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
void FillCirclePath(Position const& centerPos, float radius, float z, Movement::PointsArray& path, bool clockwise)
|
||||
{
|
||||
float step = clockwise ? float(-M_PI) / 9.0f : float(M_PI) / 9.0f;
|
||||
float angle = centerPos.GetAngle(me->GetPositionX(), me->GetPositionY());
|
||||
|
||||
for (uint8 i = 0; i < 18; angle += step, ++i)
|
||||
{
|
||||
G3D::Vector3 point;
|
||||
point.x = centerPos.GetPositionX() + radius * cosf(angle);
|
||||
point.y = centerPos.GetPositionY() + radius * sinf(angle);
|
||||
point.z = z; // Don't use any height getters unless all bugs are fixed.
|
||||
path.push_back(point);
|
||||
}
|
||||
}
|
||||
|
||||
InstanceScript* _instance;
|
||||
};
|
||||
|
||||
|
||||
@@ -1126,30 +1126,11 @@ class npc_ominous_cloud : public CreatureScript
|
||||
DoCast(me, SPELL_OMINOUS_CLOUD_VISUAL);
|
||||
}
|
||||
|
||||
void FillCirclePath(Position const& centerPos, float radius, float z, Movement::PointsArray& path, bool clockwise)
|
||||
{
|
||||
float step = clockwise ? float(-M_PI) / 8.0f : float(M_PI) / 8.0f;
|
||||
float angle = centerPos.GetAngle(me->GetPositionX(), me->GetPositionY());
|
||||
|
||||
for (uint8 i = 0; i < 16; angle += step, ++i)
|
||||
{
|
||||
G3D::Vector3 point;
|
||||
point.x = centerPos.GetPositionX() + radius * cosf(angle);
|
||||
point.y = centerPos.GetPositionY() + radius * sinf(angle);
|
||||
point.z = me->GetMap()->GetHeight(me->GetPhaseMask(), point.x, point.y, z + 5.0f);
|
||||
path.push_back(point);
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 /*diff*/) override { }
|
||||
|
||||
void DoAction(int32 action) override
|
||||
{
|
||||
Movement::MoveSplineInit init(me);
|
||||
FillCirclePath(YoggSaronSpawnPos, me->GetDistance2d(YoggSaronSpawnPos.GetPositionX(), YoggSaronSpawnPos.GetPositionY()), me->GetPositionZ(), init.Path(), action != 0);
|
||||
init.SetWalk(true);
|
||||
init.SetCyclic();
|
||||
init.Launch();
|
||||
me->GetMotionMaster()->MoveCirclePath(YoggSaronSpawnPos.GetPositionX(), YoggSaronSpawnPos.GetPositionY(), me->GetPositionZ() + 5.0f, me->GetDistance2d(YoggSaronSpawnPos.GetPositionX(), YoggSaronSpawnPos.GetPositionY()), true, 16);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -60,7 +60,8 @@ void CharacterDatabaseConnection::DoPrepareStatements()
|
||||
PrepareStatement(CHAR_SEL_CHAR_POSITION_XYZ, "SELECT map, position_x, position_y, position_z FROM characters WHERE guid = ?", CONNECTION_SYNCH);
|
||||
PrepareStatement(CHAR_SEL_CHAR_POSITION, "SELECT position_x, position_y, position_z, orientation, map, taxi_path FROM characters WHERE guid = ?", CONNECTION_SYNCH);
|
||||
|
||||
PrepareStatement(CHAR_DEL_BATTLEGROUND_RANDOM, "DELETE FROM character_battleground_random", CONNECTION_ASYNC);
|
||||
PrepareStatement(CHAR_DEL_BATTLEGROUND_RANDOM_ALL, "DELETE FROM character_battleground_random", CONNECTION_ASYNC);
|
||||
PrepareStatement(CHAR_DEL_BATTLEGROUND_RANDOM, "DELETE FROM character_battleground_random WHERE guid = ?", CONNECTION_ASYNC);
|
||||
PrepareStatement(CHAR_INS_BATTLEGROUND_RANDOM, "INSERT INTO character_battleground_random (guid) VALUES (?)", CONNECTION_ASYNC);
|
||||
|
||||
PrepareStatement(CHAR_SEL_CHARACTER, "SELECT guid, account, name, race, class, gender, level, xp, money, playerBytes, playerBytes2, playerFlags, "
|
||||
@@ -317,6 +318,7 @@ void CharacterDatabaseConnection::DoPrepareStatements()
|
||||
PrepareStatement(CHAR_DEL_ARENA_TEAM_MEMBER, "DELETE FROM arena_team_member WHERE arenaTeamId = ? AND guid = ?", CONNECTION_ASYNC);
|
||||
PrepareStatement(CHAR_UPD_ARENA_TEAM_STATS, "UPDATE arena_team SET rating = ?, weekGames = ?, weekWins = ?, seasonGames = ?, seasonWins = ?, rank = ? WHERE arenaTeamId = ?", CONNECTION_ASYNC);
|
||||
PrepareStatement(CHAR_UPD_ARENA_TEAM_MEMBER, "UPDATE arena_team_member SET personalRating = ?, weekGames = ?, weekWins = ?, seasonGames = ?, seasonWins = ? WHERE arenaTeamId = ? AND guid = ?", CONNECTION_ASYNC);
|
||||
PrepareStatement(CHAR_DEL_CHARACTER_ARENA_STATS, "DELETE FROM character_arena_stats WHERE guid = ?", CONNECTION_ASYNC);
|
||||
PrepareStatement(CHAR_REP_CHARACTER_ARENA_STATS, "REPLACE INTO character_arena_stats (guid, slot, matchMakerRating) VALUES (?, ?, ?)", CONNECTION_ASYNC);
|
||||
PrepareStatement(CHAR_SEL_PLAYER_ARENA_TEAMS, "SELECT arena_team_member.arenaTeamId FROM arena_team_member JOIN arena_team ON arena_team_member.arenaTeamId = arena_team.arenaTeamId WHERE guid = ?", CONNECTION_SYNCH);
|
||||
PrepareStatement(CHAR_UPD_ARENA_TEAM_NAME, "UPDATE arena_team SET name = ? WHERE arenaTeamId = ?", CONNECTION_ASYNC);
|
||||
|
||||
@@ -72,6 +72,7 @@ enum CharacterDatabaseStatements
|
||||
CHAR_SEL_CHAR_POSITION_XYZ,
|
||||
CHAR_SEL_CHAR_POSITION,
|
||||
|
||||
CHAR_DEL_BATTLEGROUND_RANDOM_ALL,
|
||||
CHAR_DEL_BATTLEGROUND_RANDOM,
|
||||
CHAR_INS_BATTLEGROUND_RANDOM,
|
||||
|
||||
@@ -268,6 +269,7 @@ enum CharacterDatabaseStatements
|
||||
CHAR_DEL_ARENA_TEAM_MEMBER,
|
||||
CHAR_UPD_ARENA_TEAM_STATS,
|
||||
CHAR_UPD_ARENA_TEAM_MEMBER,
|
||||
CHAR_DEL_CHARACTER_ARENA_STATS,
|
||||
CHAR_REP_CHARACTER_ARENA_STATS,
|
||||
CHAR_SEL_PLAYER_ARENA_TEAMS,
|
||||
CHAR_UPD_ARENA_TEAM_NAME,
|
||||
|
||||
Reference in new issue
Block a user