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

Frag decrease time

Kippetjee

Member
Joined
Jun 17, 2009
Messages
1,197
Reaction score
11
Location
The Netherlands
Hello,


I want to change the time to decrease a frag. I tried it with Complining but it isn't working.

I was wondering since a lot people are asking for it that someone can compiling the TFS 0.3.6pl1 so that you can change it in config. Many people would like it!

I want that one frag Removed in 2hours


Yours,
Skillboy
 
Code:
	pzLocked = 60 * 1000
	whiteSkullTime = 15 * 60 * 1000

Code:
	redSkullLength = 30 * 24 * 60 * 60
	blackSkullLength = 45 * 24 * 60 * 60
	dailyFragsToRedSkull = 3
	weeklyFragsToRedSkull = 5
	monthlyFragsToRedSkull = 10
	dailyFragsToBlackSkull = dailyFragsToRedSkull
	weeklyFragsToBlackSkull = weeklyFragsToRedSkull
	monthlyFragsToBlackSkull = monthlyFragsToRedSkull
	dailyFragsToBanishment = dailyFragsToRedSkull
	weeklyFragsToBanishment = weeklyFragsToRedSkull
	monthlyFragsToBanishment = monthlyFragsToRedSkull

Compiling? that's already on config.lua
 
PHP:
    redSkullLength = 1 * 24 * 60 * 60
    blackSkullLength = 1 * 24 * 60 * 60
    dailyFragsToRedSkull = 20
    weeklyFragsToRedSkull = 9999
    monthlyFragsToRedSkull = 999
    dailyFragsToBlackSkull = dailyFragsToRedSkull
    weeklyFragsToBlackSkull = weeklyFragsToRedSkull
    monthlyFragsToBlackSkull = monthlyFragsToRedSkull
    dailyFragsToBanishment = dailyFragsToRedSkull
    weeklyFragsToBanishment = weeklyFragsToRedSkull
    monthlyFragsToBanishment = monthlyFragsToRedSkull
    blackSkulledDeathHealth = 40
    blackSkulledDeathMana = 0
    useBlackSkull = false
    useFragHandler = true
    advancedFragList = false

PHP:
  whiteSkullTime = 5 * 60 * 1000
pzLocked = 30 * 1000

something wrong ? still they lose every 1 day 1 Frags how to fix?
explain please :S
 
You can't change how long a frag lasts in TFS 0.3.5 or newer, it's hardcoded in source (and works just like in Cipbia). :p!
 
player.cpp
this?
[cpp]
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]
 
this?
[cpp]
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]

Yeah, need to edit 84600:p
 
Back
Top