• 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+ Gratis Premium Account

Raschu

New Member
Joined
Aug 2, 2011
Messages
69
Reaction score
1
Hello Guys

Please see ss, and if you can explain for me how to remowe this "Gratis ..." to real amout of premium days.

asdasd.png

TFS 1.2 /// Client 11.4
Many thanks

Mat
 
config.lua:
freePremium = false

Also if you have groups.xml flags set you can get a free premmy.
 
Hi

Groups.xml:
Lua:
<group id="1" name="Player" flags="0" access="0" maxdepotitems="0" maxvipentries="0" />

and Config.lua:
Lua:
-- Misc.
allowChangeOutfit = true
freePremium = false
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4

Like you see i have set flags at 0 and in config lua i have freePremium = false
so that must be something else. Becouse normal players can youse ships anyway.

also Config.php:

PHP:
# Create Account Options
$config['site']['one_email'] = false;
$config['site']['create_account_verify_mail'] = false;
$config['site']['verify_code'] = true;
$config['site']['email_days_to_change'] = 3;
$config['site']['newaccount_premdays'] = 0;
$config['site']['send_register_email'] = false;
$config['site']['select_flag'] = true;

asdasd2.png

maybe someone know how to slove it
 
Last edited:
Are the characters in-game being registered as premium, can they use spells etc?
or is it just showing on the login window?

if its only on the login screen, 11.4 uses login.php what does it say about the prem time in there. there are a few versions of it depending on your website
 
No is not just login screean
At game haracters can use ships and they got promotion + second prey slot and a lot more looks like premium but not 100% becouse stamina no give extra 50%exp

Source files ???
 
Last edited:
check your lib\core\player.lua

function Player.isPremium(self)
return self:getPremiumDays() > 0 or configManager.getBoolean(configKeys.FREE_PREMIUM)
end

did you compile your sources?
configmanager.cpp:
C++:
boolean[FREE_PREMIUM] = getGlobalBoolean(L, "freePremium", false);

player.cpp
C++:
bool Player::isPremium() const
{
    if (g_config.getBoolean(ConfigManager::FREE_PREMIUM) || hasFlag(PlayerFlag_IsAlwaysPremium)) {
        return true;
    }

    return premiumDays > 0;
}

iologindata.cpp

search for FREE_PREMIUM
also what does your login.php say

also. check your database, i just set my accounts table "premdays" to 7039 and it says gratis account.
and check the "type" is set to 1 for all new players
Thats all i got atm i'm afraid.
 
One what i can see wrong is:
Lua:
bool Player::isPremium() const
{
    if (g_config.getBoolean(ConfigManager::FREE_PREMIUM) || hasFlag(PlayerFlag_IsAlwaysPremium)) {
        return true;
    }

    return premiumDays > 0;

return true change to return false and compiling again tfs ?
 
One what i can see wrong is:
Lua:
bool Player::isPremium() const
{
    if (g_config.getBoolean(ConfigManager::FREE_PREMIUM) || hasFlag(PlayerFlag_IsAlwaysPremium)) {
        return true;
    }

    return premiumDays > 0;

return true change to return false and compiling again tfs ?
Why would you change it to false? false would be a value of 0 or bool false.

That is saying if freeprem is set or player flag is set then ispremium = true
or return the premdays

I still think you need to check your database.
 
Maybe your Account have group 5 that means the whole account is in "godmode" so you could get Gratis Premium because you have account with type = 5 (that means gamemaster/god account).
Try check to switch type of account from 5 to 1.
Let know if it works.
 
Like you se on ss Test accounts have set prem days to 0 and still shows "Gratis ..."
View attachment 33116

"lastday" is important too, set it to 0, to see if it changes anything.

Also, you can't be using TFS 1.2 with client 11.4, because TFS 1.2 is made for client 10.98. So you are using some unknown-modified distribution.
 
Back
Top