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

[Gesior] How to put Towns to Select.

Tovar

Brak V
Joined
Jul 26, 2008
Messages
347
Reaction score
8
Well i made this thread because i was trying to add Towns when u will create a character, but it don't appear, i search on the forum and nothing... I know where i need change this but nothing happened if i change... there is my changes... can u bring me a little help with this please? ^_^

Original is:

PHP:
// sample, if rook only:             $config['site']['newchar_vocations'][0] = array(0 => 'Rook Sample');
$config['site']['newchar_towns'][0] = array(5);
$config['site']['newchar_towns'][1] = array(5);
// sample, if all players should spawn in one city (city with ID 4):          
$config['site']['newchar_towns'] = array(4);


my attempts:

PHP:
// sample, if rook only:             $config['site']['newchar_vocations'][0] = array(0 => 'Rook Sample');
$config['site']['newchar_towns'][0] = array(5 => 'Thais', 2 => 'Carlin', 3 => "Ab'dendriel", 6 => 'Venore', 4 => 'Kazordoon');
$config['site']['newchar_towns'][1] = array(5 => 'Thais', 2 => 'Carlin', 3 => "Ab'dendriel", 6 => 'Venore', 4 => 'Kazordoon');
// sample, if all players should spawn in one city (city with ID 4):          
$config['site']['newchar_towns'] = array(5 => 'Thais', 2 => 'Carlin', 3 => "Ab'dendriel", 6 => 'Venore', 4 => 'Kazordoon');


PHP:
$config['site']['newchar_towns'][0] = array(5, 2, 3, 6, 4);

nothing happen when i try to make a character, the thing "SELECT YOUR CITY DONT APPEAR" :X
 
If it still doesn't work for some reason, in accountmanagement.php:
Code:
				    $player->setTownId([B][COLOR="Red"]$newchar_town[/COLOR][/B]);
 
Code:
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in E:\OTSERVER\xampp\htdocs\accountmanagement.php on line 109

Parse error: syntax error, unexpected '/' in E:\OTSERVER\xampp\htdocs\accountmanagement.php on line 109
man, I didn't tested it, I only made this:

$player->setTownId($newchar_town);

Other errors except it... it's aren't with me
 
Just make everything normal again. And:

PHP:
$config['site']['newchar_towns'][0] = array(1);

to
PHP:
$config['site']['newchar_towns'][0] = array(1,2,3,4);

1-2-3-4 there will be example

PHP:
// list of towns on ots
$towns_list[0] = array(1 => 'Yalahar', 2 => 'Carlin', 3 => 'Abdendriel', 4 => 'Kazordoon', ~~~~~

Understand?

This does not work. I get no errors. I know all towns are correct and no new towns appears in create new char menu.
 
@ up
Actually it depends on if you use acc manager or just homepage. For the acc manager, the level is set in config.lua. If you use AAC, then you must edit your samples, cuz all new chars made on AAC will be equal to the samples.
 
Back
Top