I want to know if this code can be used on a TFS (not 1.0)
protocolgame.cpp
uint32_t now = time(NULL);
if(m_packetTime != now)
{
m_packetTime = now;
m_packetCount = 0;
}
++m_packetCount;
if(m_packetCount > (uint32_t)g_config.getNumber(ConfigManager:
ACKETS_PER_SECOND))
return;
packetsPerSecond = 50 -- config.lua
Is from OTX and prevent lags with elfbot.
protocolgame.cpp
uint32_t now = time(NULL);
if(m_packetTime != now)
{
m_packetTime = now;
m_packetCount = 0;
}
++m_packetCount;
if(m_packetCount > (uint32_t)g_config.getNumber(ConfigManager:
return;
packetsPerSecond = 50 -- config.lua
Is from OTX and prevent lags with elfbot.