mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
Compare commits
4 Commits
main
...
feature/re
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c6ddcf829e | ||
![]() |
cbb88413d9 | ||
![]() |
2a2512f5d0 | ||
![]() |
9a0ec33f6d |
File diff suppressed because it is too large
Load Diff
@@ -21,9 +21,6 @@ if(!$logged) {
|
||||
$errors[] = 'You are not logged in. You can\'t create guild.';
|
||||
}
|
||||
|
||||
$configLuaFreePremium = configLua('freePremium');
|
||||
$freePremium = (isset($configLuaFreePremium) && getBoolean($configLuaFreePremium)) || ($logged && $account_logged->getPremDays() == OTS_Account::GRATIS_PREMIUM_DAYS);
|
||||
|
||||
$array_of_player_nig = array();
|
||||
if(empty($errors))
|
||||
{
|
||||
@@ -34,7 +31,7 @@ if(empty($errors))
|
||||
if(!$player_rank->isLoaded())
|
||||
{
|
||||
if($player->getLevel() >= setting('core.guild_need_level')) {
|
||||
if(!setting('core.guild_need_premium') || $account_logged->isPremium() || $freePremium) {
|
||||
if(!setting('core.guild_need_premium') || $account_logged->isPremium()) {
|
||||
$array_of_player_nig[] = $player->getName();
|
||||
}
|
||||
}
|
||||
@@ -98,7 +95,7 @@ if($todo == 'save')
|
||||
if($player->getLevel() < setting('core.guild_need_level')) {
|
||||
$errors[] = 'Character <b>'.$name.'</b> has too low level. To create guild you need character with level <b>' . setting('core.guild_need_level') . '</b>.';
|
||||
}
|
||||
if(setting('core.guild_need_premium') && !$account_logged->isPremium() && !$freePremium) {
|
||||
if(setting('core.guild_need_premium') && !$account_logged->isPremium()) {
|
||||
$errors[] = 'Character <b>'.$name.'</b> is on FREE account. To create guild you need PREMIUM account.';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user