mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
Updated login to work with newer 12 client (#362)
Added missing field, missing only world pvp type
This commit is contained in:
parent
8404f8e171
commit
53dbc9fdd7
21
login.php
21
login.php
@ -45,7 +45,7 @@ if($_SERVER['HTTP_USER_AGENT'] == "Mozilla/5.0" && $config['ServerEngine'] === '
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$players = mysql_select_multi("SELECT `name`, `sex` FROM `players` WHERE `account_id`='".$account['id']."';");
|
$players = mysql_select_multi("SELECT `name`, `sex`, `level`, `vocation`, `lookbody`, `looktype`, `lookhead`, `looklegs`, `lookfeet`, `lookaddons`, `deletion` FROM `players` WHERE `account_id`='".$account['id']."';");
|
||||||
if ($players !== false) {
|
if ($players !== false) {
|
||||||
|
|
||||||
$gameserver = $config['gameserver'];
|
$gameserver = $config['gameserver'];
|
||||||
@ -59,6 +59,8 @@ if($_SERVER['HTTP_USER_AGENT'] == "Mozilla/5.0" && $config['ServerEngine'] === '
|
|||||||
'isreturner' => true,
|
'isreturner' => true,
|
||||||
'returnernotification' => false,
|
'returnernotification' => false,
|
||||||
'showrewardnews' => false,
|
'showrewardnews' => false,
|
||||||
|
'tournamentticketpurchasestate' => 0,
|
||||||
|
'emailcoderequest' => false,
|
||||||
'sessionkey' => $sessionKey,
|
'sessionkey' => $sessionKey,
|
||||||
'lastlogintime' => 0,
|
'lastlogintime' => 0,
|
||||||
'ispremium' => ($account['premdays'] > 0) ? true : false,
|
'ispremium' => ($account['premdays'] > 0) ? true : false,
|
||||||
@ -74,10 +76,14 @@ if($_SERVER['HTTP_USER_AGENT'] == "Mozilla/5.0" && $config['ServerEngine'] === '
|
|||||||
'externalport' => $gameserver['port'],
|
'externalport' => $gameserver['port'],
|
||||||
'previewstate' => 0,
|
'previewstate' => 0,
|
||||||
'location' => 'ALL',
|
'location' => 'ALL',
|
||||||
|
'pvptype' => 'pvp',
|
||||||
'externaladdressunprotected' => $gameserver['ip'],
|
'externaladdressunprotected' => $gameserver['ip'],
|
||||||
'externaladdressprotected' => $gameserver['ip'],
|
'externaladdressprotected' => $gameserver['ip'],
|
||||||
'externalportunprotected' => $gameserver['port'],
|
'externalportunprotected' => $gameserver['port'],
|
||||||
'externalportprotected' => $gameserver['port'],
|
'externalportprotected' => $gameserver['port'],
|
||||||
|
'istournamentworld' => false,
|
||||||
|
'restrictedstore' => false,
|
||||||
|
'currenttournamentphase' => 2,
|
||||||
'anticheatprotection' => false
|
'anticheatprotection' => false
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@ -92,7 +98,18 @@ if($_SERVER['HTTP_USER_AGENT'] == "Mozilla/5.0" && $config['ServerEngine'] === '
|
|||||||
'worldid' => 0,
|
'worldid' => 0,
|
||||||
'name' => $player['name'],
|
'name' => $player['name'],
|
||||||
'ismale' => ($player['sex'] === 1) ? true : false,
|
'ismale' => ($player['sex'] === 1) ? true : false,
|
||||||
'tutorial' => false
|
'tutorial' => false,
|
||||||
|
'level' => intval($player['level']),
|
||||||
|
'vocation' => vocation_id_to_name($player['vocation']),
|
||||||
|
'outfitid' => intval($player['looktype']),
|
||||||
|
'headcolor' => intval($player['lookhead']),
|
||||||
|
'torsocolor' => intval($player['lookbody']),
|
||||||
|
'legscolor' => intval($player['looklegs']),
|
||||||
|
'detailcolor' => intval($player['lookfeet']),
|
||||||
|
'addonsflags' => intval($player['lookaddons']),
|
||||||
|
'ishidden' => intval($player['deletion']) === 1,
|
||||||
|
'istournamentparticipant' => false,
|
||||||
|
'remainingdailytournamentplaytime' => 0
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user