• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Nie wyswietla jaka profa

Koci1994

Banned User
Joined
Dec 27, 2008
Messages
807
Reaction score
1
Elo . Mam taki problem gry nacisne na jakiegos kolesia w rankingu w acc to nie pisze jak profa
fsdi.jpg


A jak wejde w ranking np. fishing lvl to pisze tam nik i pod spodem profa
asdasdu.jpg


Plz help

Config.php w acc
Code:
// CHARACTER config, format: ID_of_vocation => 'Name of Character to copy', load vocation name from $vocation_name[0] (below)
$config['site']['newchar_vocations'] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');
// sample, if rook only:             $config['site']['newchar_vocations'] = array(0 => 'Rook Sample');
$config['site']['newchar_towns'] = array(3, 5, 4);
// sample, if all players should spawn in one city (city with ID 4):          $config['site']['newchar_towns'] = array(4);
// list of vocations on ots
$vocation_name[0] = array(0 => 'None', 1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); 
$vocation_name[1] = array(1 => 'Master Sorcerer', 2 => 'Elder Druid', 3 => 'Royal Paladin', 4 => 'Elite Knight'); 
// list of towns on ots
$towns_list = array(1 => "Ab'dendriel", 2 => "Kazordoon", 3 => "Thais", 4 => "Venore", 5 => "Carlin", 6 => 'Ankrahmun', 7 => 'Darashia', 8 => 'Port Hope', 9 => 'Edron', 10 => 'GM Island', 11 => 'Greenshore', 12 => 'Cormaya', 13 => 'Rookgaard', 14 => 'Isle of the King', 15 => 'Liberty Bay', 16 => 'Svargrond', 17 => 'Rookgaard Premium'); // list of towns, id => 'name'
 
Ponieważ masz stare characters.php a zapewne używasz tfs 0.3.4
W characters.php znajdź
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Profession:</TD><TD>'.$config_vocations[$player->getVocation()].'</TD></TR>';

I zamień to na:
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Profession:</TD><TD>'.$vocation_name[$player->getPromotion()][$player->getVocation()].'</TD></TR>';
 
Back
Top