Hello,

I'm added to HandleMessagechatOpcode in ChatHandler.cpp next code:

Player* times = GetPlayer();
    {
        if ((times->GetTotalPlayedTime() < sWorld.getConfig(CONFIG_CHAT_TIME_REQ)) && times->GetSession()->GetSecurity() == SEC_PLAYER)
        {
            std::string Played = secsToTimeString(sWorld.getConfig(CONFIG_CHAT_TIME_REQ) - times->GetTotalPlayedTime());
            ChatHandler(times->GetSession()).PSendSysMessage(times->GetSession()->GetOregonString(LANG_REQ_TIME_TO_CHAT), Played.c_str());
            return;
        }
    }

It's work, but outlog seen error:

SESSION: opcode CMSG_MESSAGECHAT (0x0095) has unprocessed tail data (read stop at 8 from 12)
Sorry for my bad english
Player* times = GetPlayer();
    {
        if ((times->GetTotalPlayedTime() < sWorld.getConfig(CONFIG_CHAT_TIME_REQ)) && times->GetSession()->GetSecurity() == SEC_PLAYER)
        {
            std::string Played = secsToTimeString(sWorld.getConfig(CONFIG_CHAT_TIME_REQ) - times->GetTotalPlayedTime());
            ChatHandler(times->GetSession()).PSendSysMessage(times->GetSession()->GetOregonString(LANG_REQ_TIME_TO_CHAT), Played.c_str());
            recv_data.rpos();
            return;
        }
    }

Let me know how that goes.

LordUsagi wrote:

Let me know how that goes.

not work

Sorry for my bad english

4 (edited by trollo159 2016-01-25 13:09:29)

edit:
bad idea

Sorry for my bad English smile

http://i68.tinypic.com/jazw48.jpg

Sorry for my bad english