• 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!

Windows Frag Time TFS 0.3.6

Shido

Banned User
Joined
Oct 3, 2009
Messages
11
Reaction score
0
Hello, I am in the process of creating a server, but I do not have the faintest idea how to adjust the frags I have heard that it can be done in C + + and more complicated engine, but unfortunately I can not. Is it possible to do it in lua or otherwise? please help :)
 
Hello, I am in the process of creating a server, but I do not have the faintest idea how to adjust the frags I have heard that it can be done in C + + and more complicated engine, but unfortunately I can not. Is it possible to do it in lua or otherwise? please help :)

in ur DB
(MYSQL)
c++? in his db? wtf guys do you come from mars ??

config.lua
Lua:
redSkullLength = 30 * 60 * 1000
    blackSkullLength = 45 * 60 * 1000
    dailyFragsToRedSkull = 3
    weeklyFragsToRedSkull = 5
    monthlyFragsToRedSkull = 10
 
@up
Thats not what he want its Frag decrease time ;p

I know this post/thread is old ;p
player.cpp
[cpp]bool Player::addUnjustifiedKill(const Player* attacked, bool countNow)
{
if(!g_config.getBool(ConfigManager::USE_FRAG_HANDLER) || hasFlag(
PlayerFlag_NotGainInFight) || g_game.getWorldType() != WORLDTYPE_OPEN
|| hasCustomFlag(PlayerCustomFlag_NotGainUnjustified) || hasCustomFlag(
PlayerCustomFlag_NotGainSkull) || attacked == this)
return false;

if(client && countNow)
{
char buffer[90];
sprintf(buffer, "Warning! The murder of %s was not justified.",
attacked->getName().c_str());
client->sendTextMessage(MSG_STATUS_WARNING, buffer);
}

time_t now = time(NULL), today = (now - 84600), week = (now - (7 * 84600));
std::vector<time_t> dateList;

IOLoginData::getInstance()->getUnjustifiedDates(guid, dateList, now);
if(countNow)
dateList.push_back(now);

uint32_t tc = 0, wc = 0, mc = dateList.size();
for(std::vector<time_t>::iterator it = dateList.begin(); it != dateList.end(); ++it)
{
if((*it) > week)
wc++;

if((*it) > today)
tc++;
}
[/cpp]
 
Back
Top