diff --git a/config.php b/config.php index 7513fd2..fadf4cf 100644 --- a/config.php +++ b/config.php @@ -119,7 +119,11 @@ $config['soul'] = 100; $config['maleOutfitId'] = 128; - $config['femaleOutfitId'] = 138; + $config['femaleOutfitId'] = 136; + $config['lookHead'] = 78; + $config['lookBody'] = 106; + $config['lookLegs'] = 58; + $config['lookFeet'] = 76; // No vocation info (if user select vocation id 0, we force thees configurations on him $config['nvlevel'] = 1; diff --git a/engine/function/general.php b/engine/function/general.php index 05092a5..f467066 100644 --- a/engine/function/general.php +++ b/engine/function/general.php @@ -269,7 +269,7 @@ function format_character_name($name) { // Returns a list of players online function online_list() { - if (config('TFSVersion') == 'TFS_10') return mysql_select_multi("SELECT `o`.`player_id` AS `id`, `p`.`name` as `name`, `p`.`level` as `level`, `p`.`vocation` as `vocation` FROM `players_online` as `o` INNER JOIN `players` as `p` ON o.player_id = p.id"); + if (config('TFSVersion') == 'TFS_10') return mysql_select_multi("SELECT `o`.`player_id` AS `id`, `p`.`name` as `name`, `p`.`level` as `level`, `p`.`vocation` as `vocation`, `g`.`name` as `gname` FROM `players_online` as `o` INNER JOIN `players` as `p` ON `o`.`player_id` = `p`.`id` LEFT JOIN `guild_membership` gm ON `o`.`player_id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id`"); else return mysql_select_multi("SELECT `name`, `level`, `vocation` FROM `players` WHERE `online`='1' ORDER BY `name` DESC;"); } diff --git a/engine/function/users.php b/engine/function/users.php index 3c1b3a5..3ebde8f 100644 --- a/engine/function/users.php +++ b/engine/function/users.php @@ -1078,10 +1078,10 @@ function user_create_character($character_data) { 'health' => $cnf['health'], 'healthmax' => $cnf['health'], 'experience' => 0, /* Will automatically be configured according to level after creating this array*/ - 'lookbody' => 0, /* STARTER OUTFITS */ - 'lookfeet' => 0, - 'lookhead' => 0, - 'looklegs' => 0, + 'lookbody' => $cnf['lookBody'], /* STARTER OUTFITS */ + 'lookfeet' => $cnf['lookFeet'], + 'lookhead' => $cnf['lookHead'], + 'looklegs' => $cnf['lookLegs'], 'looktype' => $outfit_type, 'lookaddons' => 0, 'maglevel' => 0, diff --git a/onlinelist.php b/onlinelist.php index b6efd08..d2a8cf3 100644 --- a/onlinelist.php +++ b/onlinelist.php @@ -9,6 +9,7 @@ if ($array) {
Name: | +Guild: | Level: | Vocation: | |
---|---|---|---|---|
'. $value['name'] .' | '; + if (!empty($value['gname'])) echo ''. $value['gname'] .' | '; else echo ''; echo ' | '. $value['level'] .' | '; echo ''. vocation_id_to_name($value['vocation']) .' | '; echo '