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

myaac premdays

marcelomnzs

Active Member
Joined
Aug 9, 2019
Messages
132
Reaction score
27
i'm using myaac, and i cant create account with premdays..
if i got 'premdays = X' in config.php it got error, then i added the colum 'premium_ends_at' to fix it
but the premdays go to colum 'premium_ends_at' instead 'premdays' :(
 
i'm using myaac, and i cant create account with premdays..
if i got 'premdays = X' in config.php it got error, then i added the colum 'premium_ends_at' to fix it
but the premdays go to colum 'premium_ends_at' instead 'premdays' :(
Which TFS/distro you using? TFS 1.x+ is supposed to use premium_ends_at
 
That was bug in myaac, the fix is here:

Remove columns you added, then clear cache in admin panel and/or restart your web server (depends what cache engine you are using). Do both to ensure it will work.
 
That was bug in myaac, the fix is here:

Remove columns you added, then clear cache in admin panel and/or restart your web server (depends what cache engine you are using). Do both to ensure it will work.
thanks for support.
but i tried put "365" or "99999" in "premium_ends_at" db to test i dont give premium.
my distro use "premdays", this fix is to use "premium_ends_at" right?
in my create account:

if($config['account_premium_days'] && $config['account_premium_days'] > 0) {
$new_account->setCustomField('premdays', $config['account_premium_days']);
$new_account->setCustomField('lastday', time());
}

but the premdays field keep 0, in onfig.php is 7
(i'm using apache2, i restarted it, cleaned the cache.. and restart the VM too. didnt work)
--
edit: in a new test, creating new account with premium POINTS, its work.
in config.php:
'account_premium_days' => 7, // default premium days on new account
'account_premium_points' => 12, // default premium points on new account

then copy the line of premium points and changed to premium days to have no mistakes..

if($config['account_premium_days']) {
$new_account->setCustomField('premdays', $config['account_premium_days']);
}

if($config['account_premium_points']) {
$new_account->setCustomField('premium_points', $config['account_premium_points']);
}

its equal.. but the premium points is added but days not :(
 
Last edited:
If you have premium_ends_at on database accounts table it never will add on premdays column try with this:
PHP:
if ($db->hasColumn('accounts', 'premdays'))
{
    $new_account->setCustomField('premdays', $config['account_premium_days']);
    $new_account->setCustomField('lastday', time());
}
 
If you have premium_ends_at on database accounts table it never will add on premdays column try with this:
PHP:
if ($db->hasColumn('accounts', 'premdays'))
{
    $new_account->setCustomField('premdays', $config['account_premium_days']);
    $new_account->setCustomField('lastday', time());
}
i deleted premium_ends_at colum..
changed the code in createccount.php to the code above..
now i tried your code, with the check the colum in db before set premmy.. but didnt work again :(
again, points works but days dont ;~
 
i deleted premium_ends_at colum..
changed the code in createccount.php to the code above..
now i tried your code, with the check the colum in db before set premmy.. but didnt work again :(
again, points works but days dont ;~
Are you sure your engine uses premdays? tfs 1.2 uses premiums_end_at


It should work as @slaw say on that fix above.
 
Are you sure your engine uses premdays? tfs 1.2 uses premiums_end_at


It should work as @slaw say on that fix above.
I use the nostalrius 7.7 distro..


if I put the premday by the db, even if the lastday is 0 it works, because it is updated.

I would like to understand why it doesn't work and how to fix createaccount.php..
as I said, the points work, but the premdays is not added :s
 
Hello, if anyone can help me.. I still can't solve it:

If I add premium days through the editor of the admin panel, in the account status in account manager it says I have premium, but in the game I don't have premium. (gets premdays = 1663517886 for one day in db).
if I put it by db premdays = 1 I get premium in the game, but in the account manager of the site it is free account status.
and I still couldn't create an account with premmy making the changes.

should i use some older version of myacc to be able to use premmy with this server?
 
Back
Top