• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling OTX > TFS

Roddet

Staff member
Global Moderator
Joined
May 1, 2013
Messages
982
Solutions
108
Reaction score
826
Location
Mex
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::pACKETS_PER_SECOND))
return;

packetsPerSecond = 50 -- config.lua

Is from OTX and prevent lags with elfbot.
 
Back
Top