*Add config option Arena.QueueAnnouncer.PlayerOnly
--HG-- branch : trunk
This commit is contained in:
@@ -376,9 +376,25 @@ void BattleGroundQueue::AnnounceWorld(GroupQueueInfo *ginfo, const uint64& playe
|
|||||||
|
|
||||||
char const* bgName = bg->GetName();
|
char const* bgName = bg->GetName();
|
||||||
if (isAddedToQueue)
|
if (isAddedToQueue)
|
||||||
sWorld.SendWorldText(LANG_ARENA_QUEUE_ANNOUNCE_WORLD_JOIN, bgName, ginfo->ArenaType, ginfo->ArenaType, ginfo->ArenaTeamRating);
|
{
|
||||||
|
if (sWorld.getConfig(CONFIG_ARENA_QUEUE_ANNOUNCER_PLAYERONLY))
|
||||||
|
{
|
||||||
|
if(Player *plr = objmgr.GetPlayer(playerGUID))
|
||||||
|
ChatHandler(plr).PSendSysMessage(LANG_ARENA_QUEUE_ANNOUNCE_WORLD_JOIN, bgName, ginfo->ArenaType, ginfo->ArenaType, ginfo->ArenaTeamRating);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
sWorld.SendWorldText(LANG_ARENA_QUEUE_ANNOUNCE_WORLD_JOIN, bgName, ginfo->ArenaType, ginfo->ArenaType, ginfo->ArenaTeamRating);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
sWorld.SendWorldText(LANG_ARENA_QUEUE_ANNOUNCE_WORLD_EXIT, bgName, ginfo->ArenaType, ginfo->ArenaType, ginfo->ArenaTeamRating);
|
{
|
||||||
|
if (sWorld.getConfig(CONFIG_ARENA_QUEUE_ANNOUNCER_PLAYERONLY))
|
||||||
|
{
|
||||||
|
if(Player *plr = objmgr.GetPlayer(playerGUID))
|
||||||
|
ChatHandler(plr).PSendSysMessage(LANG_ARENA_QUEUE_ANNOUNCE_WORLD_EXIT, bgName, ginfo->ArenaType, ginfo->ArenaType, ginfo->ArenaTeamRating);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
sWorld.SendWorldText(LANG_ARENA_QUEUE_ANNOUNCE_WORLD_EXIT, bgName, ginfo->ArenaType, ginfo->ArenaType, ginfo->ArenaTeamRating);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else //if BG
|
else //if BG
|
||||||
|
|||||||
+1
-1
@@ -212,7 +212,7 @@ void Unit::Update( uint32 p_time )
|
|||||||
_UpdateSpells( p_time );
|
_UpdateSpells( p_time );
|
||||||
|
|
||||||
// update combat timer only for players and pets
|
// update combat timer only for players and pets
|
||||||
if (isInCombat() && (GetTypeId() == TYPEID_PLAYER || ((Creature*)this)->isPet() || ((Creature*)this)->isCharmed()))
|
if (isInCombat() && IsControlledByPlayer())
|
||||||
{
|
{
|
||||||
// Check UNIT_STAT_MELEE_ATTACKING or UNIT_STAT_CHASE (without UNIT_STAT_FOLLOW in this case) so pets can reach far away
|
// Check UNIT_STAT_MELEE_ATTACKING or UNIT_STAT_CHASE (without UNIT_STAT_FOLLOW in this case) so pets can reach far away
|
||||||
// targets without stopping half way there and running off.
|
// targets without stopping half way there and running off.
|
||||||
|
|||||||
@@ -966,6 +966,7 @@ void World::LoadConfigSettings(bool reload)
|
|||||||
m_configs[CONFIG_ARENA_AUTO_DISTRIBUTE_POINTS] = sConfig.GetBoolDefault("Arena.AutoDistributePoints", false);
|
m_configs[CONFIG_ARENA_AUTO_DISTRIBUTE_POINTS] = sConfig.GetBoolDefault("Arena.AutoDistributePoints", false);
|
||||||
m_configs[CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS] = sConfig.GetIntDefault ("Arena.AutoDistributeInterval", 7);
|
m_configs[CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS] = sConfig.GetIntDefault ("Arena.AutoDistributeInterval", 7);
|
||||||
m_configs[CONFIG_ARENA_QUEUE_ANNOUNCER_ENABLE] = sConfig.GetBoolDefault("Arena.QueueAnnouncer.Enable", false);
|
m_configs[CONFIG_ARENA_QUEUE_ANNOUNCER_ENABLE] = sConfig.GetBoolDefault("Arena.QueueAnnouncer.Enable", false);
|
||||||
|
m_configs[CONFIG_ARENA_QUEUE_ANNOUNCER_PLAYERONLY] = sConfig.GetBoolDefault("Arena.QueueAnnouncer.PlayerOnly", false);
|
||||||
m_configs[CONFIG_ARENA_SEASON_ID] = sConfig.GetIntDefault ("Arena.ArenaSeason.ID", 1);
|
m_configs[CONFIG_ARENA_SEASON_ID] = sConfig.GetIntDefault ("Arena.ArenaSeason.ID", 1);
|
||||||
m_configs[CONFIG_ARENA_SEASON_IN_PROGRESS] = sConfig.GetBoolDefault("Arena.ArenaSeason.InProgress", true);
|
m_configs[CONFIG_ARENA_SEASON_IN_PROGRESS] = sConfig.GetBoolDefault("Arena.ArenaSeason.InProgress", true);
|
||||||
|
|
||||||
|
|||||||
@@ -212,6 +212,7 @@ enum WorldConfigs
|
|||||||
CONFIG_ARENA_AUTO_DISTRIBUTE_POINTS,
|
CONFIG_ARENA_AUTO_DISTRIBUTE_POINTS,
|
||||||
CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS,
|
CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS,
|
||||||
CONFIG_ARENA_QUEUE_ANNOUNCER_ENABLE,
|
CONFIG_ARENA_QUEUE_ANNOUNCER_ENABLE,
|
||||||
|
CONFIG_ARENA_QUEUE_ANNOUNCER_PLAYERONLY,
|
||||||
CONFIG_ARENA_SEASON_ID,
|
CONFIG_ARENA_SEASON_ID,
|
||||||
CONFIG_ARENA_SEASON_IN_PROGRESS,
|
CONFIG_ARENA_SEASON_IN_PROGRESS,
|
||||||
CONFIG_MAX_WHO,
|
CONFIG_MAX_WHO,
|
||||||
|
|||||||
@@ -1404,6 +1404,7 @@ Arena.RatingDiscardTimer = 600000
|
|||||||
Arena.AutoDistributePoints = 0
|
Arena.AutoDistributePoints = 0
|
||||||
Arena.AutoDistributeInterval = 7
|
Arena.AutoDistributeInterval = 7
|
||||||
Arena.QueueAnnouncer.Enable = 0
|
Arena.QueueAnnouncer.Enable = 0
|
||||||
|
Arena.QueueAnnouncer.PlayerOnly = 0
|
||||||
Arena.ArenaSeason.ID = 1
|
Arena.ArenaSeason.ID = 1
|
||||||
Arena.ArenaSeason.InProgress = 1
|
Arena.ArenaSeason.InProgress = 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user