• 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 doesn't work replace these lines(861 until the end of 863):

Code:
                   // $player->setPosX($char_to_copy->getPosX());
                   // $player->setPosY($char_to_copy->getPosY());
                   // $player->setPosZ($char_to_copy->getPosZ());

by:

Code:
                    $player->setPosX(0);
                    $player->setPosY(0);
                    $player->setPosZ(0);
 
lol... test it

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
 
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?
 
Back
Top