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

AAC Edit CreateACC

luhfe

New Member
Joined
Apr 26, 2018
Messages
48
Reaction score
2
Hi nite nite, i'm using this Gesior Qwizer/gesior-accmaker
and i want change to player create new acc come with 3 VipDays (thats like named in database).

can some1 help? im trying like 2 days ago.
 
I think you should do something like:

master/pages/createaccount.php line 425~
$reg_account->setVipDays(3); // or the number u use to count 3 days (idk, if it's seconds, etc)


master/classes/account.php
you should edit the line 11 and 12 (to inclue the VipDays field)

and in line 204+
public function setVipDays($value){$this->data['VipDays'] = $value;}

I think it's just that. Not sure, though. I haven't looked all files of Gesior, just the most interesting name (class Account, and page account_creation)

Edit: I had put line 401, but it's on line 425~
 
Last edited:
Its not seconds, its in Days (like u post, thats correct)... i'll make some edits in php and try run, brb
 
RETURN A ERROR - Full White screen ! :(


Like that?

at line 401 in Createaccount.php
{
$test_email_account = new Account();
$reg_account->setVipDays(3);

on Classes/Account.php
Line 11
'guild_points' => null, 'vipdays' => null);

Line12
'guild_points', 'vipdays');

Line 204+
public function setFlag($value){$this->data['flag'] = $value;}
public function getFlag(){return $this->data['flag'];}
public function setVipdays($value){$this->data['vipdays'] = $value;}
public function getVipdays(){return $this->data['vipdays'];}
 
Forget this below
You changed $reg_account = new Account();
To $test_email_account = new Account();

So all lines below that should be $test_email_account->dosomething();
$test_email_account = new Account();
// saves account information in database
$test_email_account->setName($reg_name);
$test_email_account->setPassword($reg_password);
$test_email_account->setEMail($reg_email);
$test_email_account->setCreateDate(time());



I can't test now, I'm on my phone without my laptop, but test it and report the result here :p

Edit: ops, it seems that I've said the wrong line.. It's on line 425, not 401.. Sorry .. Forget everything above in this answer, just go to line 425 and add the line you added on 402.


If you want, you can also go to file config/config.Php
And add a line like;
$config['site']['vipdays'] = 3;

And instead of
$reg_account->setVipDays(3); you can use

if(isset($config['site']['vipdays']) && $config['site']['vipdays'] > 0)
{
$reg_account->setVipDays($config['site']['vipdays']) ;
}

But it's optional.
 
Last edited:
Back
Top