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

TFS 1.X+ Premium days is bugged, Nekiro TFS 1.3

Jeyci

Banned User
Joined
May 6, 2023
Messages
289
Solutions
3
Reaction score
36
Players get different amount of premium time.
Ex: Player is getting 256 days of premium time, when in fact player has used a premium scroll that must give 7 days of premium time. How can I remove this problem?
Lua:
player:addPremiumDays(7)
 
protocollogin.cpp
in
Lua:
void ProtocolLogin::getCharacterList(const std::string& accountName, const std::
...
replace this
Code:
output->add<uint16_t>((account.premiumEndsAt - time(nullptr)) / 86400);
For this
Code:
output->add<uint16_t>(std::max<time_t>(0, account.premiumEndsAt - time(nullptr)) / 86400);
 
Back
Top