Core Info:Core Version: TrinityCore rev. 64c00b566d81+ 2014-11-16 15:30:42 +0300 (master branch) (Win64, Release)Core Revision: 64c00b566d81+DB_Version: TDB 335.53
the client decides this itself
It is _in_ the client, not in some file. http://www.ownedcore.com/forums/world-o ... e-afk.html
yes
void Player::ToggleAFK(){ ToggleFlag(PLAYER_FLAGS, PLAYER_FLAGS_AFK); // afk player not allowed in battleground if (isAFK() && InBattleground() && !InArena()) LeaveBattleground();}
///checks the 15 afk reports per 5 minutes limitvoid Player::UpdateAfkReport(time_t currTime){ if (m_bgData.bgAfkReportedTimer <= currTime) { m_bgData.bgAfkReportedCount = 0; m_bgData.bgAfkReportedTimer = currTime+5*MINUTE; }}
void Player::Whisper(const std::string& text, uint32 language, uint64 receiver){ bool isAddonMessage = language == LANG_ADDON; if (!isAddonMessage) // if not addon data language = LANG_UNIVERSAL; // whispers should always be readable Player* rPlayer = ObjectAccessor::FindPlayer(receiver); std::string _text(text); sScriptMgr->OnPlayerChat(this, CHAT_MSG_WHISPER, language, _text, rPlayer); WorldPacket data; ChatHandler::BuildChatPacket(data, CHAT_MSG_WHISPER, Language(language), this, this, _text); rPlayer->GetSession()->SendPacket(&data); // rest stuff shouldn't happen in case of addon message if (isAddonMessage) return; ChatHandler::BuildChatPacket(data, CHAT_MSG_WHISPER_INFORM, Language(language), rPlayer, rPlayer, _text); GetSession()->SendPacket(&data); if (!isAcceptWhispers() && !IsGameMaster() && !rPlayer->IsGameMaster()) { SetAcceptWhispers(true); ChatHandler(GetSession()).SendSysMessage(LANG_COMMAND_WHISPERON); } // announce afk or dnd message if (rPlayer->isAFK()) ChatHandler(GetSession()).PSendSysMessage(LANG_PLAYER_AFK, rPlayer->GetName().c_str(), rPlayer->autoReplyMsg.c_str()); else if (rPlayer->isDND()) ChatHandler(GetSession()).PSendSysMessage(LANG_PLAYER_DND, rPlayer->GetName().c_str(), rPlayer->autoReplyMsg.c_str());}
Hello,It is possible to remove the afk kicking serverside, however it is not possible to remove the afk taging since that is done client side.Try changing SocketTimeOutTime in configs if you are using trinitycore to disable auto disconnect. Not sure if it works but it is worth trying.
## SocketTimeOutTime# Description: Time (in milliseconds) after which a connection being idle on the character# selection screen is disconnected.# Default: 900000 - (15 minutes)SocketTimeOutTime = 90000000