• 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
 
PHP:
$towns_list[0] = array(1 => 'Yalahar', 2 => 'Carlin', 3 => "Ab'dendriel", 4 => 'Kazordoon', 5 => 'Thais'); // list of towns, id => 'name', $towns_list[0] - for world id 0

...

$config['site']['newchar_towns'][0] = array(1,2,3,4,5);
:)))
 
i know but to where?... i change the town id and the cordenates to "0", and they always appear on thais...
 
u guys dont understand me, i want when some1 will create a character they choose to where want born... but i test it... when i choose carlin, venore, or whatever, they always appear on THAIS. i cannot change the town because then they will appear just i another... then always will be carlin or always venore... -.-
 
Read my post...

I've edited this @up*up

Change default location (Druid Sample etc.) in your OTS DB to an "incorrect" one, then ppl will spawn in temple positions .

Or just install "fresh" db_schema (MySQL) and execute:

Code:
UPDATE `players` SET `x` = '1', `y` = '1', `z` = '1'
 
nothing, and remember that i change it to cordenates x0 y0 z0 and nothingm i think 0,0,0 is a incorrect location or not?
 
i change to 0, but they always appear on thais, how i need put the town ids?, 1,2,3,4? 1 to carlin, 2 venore, 3 thais etc..? i can put more than one town_id in the database ?
 
aaa ok try find this in config/config.php
Code:
$config['site']['newchar_towns'] = array([B][COLOR="Red"]5[/COLOR][/B]);
Change 5 to other townid number :S
 
Nothing, no changes :O "Incredible"

look my config.

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



// list of vocations on ots (world 0)
$vocation_name[0][0] = array(0 => 'None', 1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); // id => 'name' , $vocation_name[0] - promotion level 0, $vocation_name[0] - for world ID 0
$vocation_name[0][1] = array(1 => 'Master Sorcerer', 2 => 'Elder Druid', 3 => 'Royal Paladin', 4 => 'Elite Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[0] - for world ID 0
// list of vocations on ots (world 1)
$vocation_name[1][0] = array(0 => 'None', 1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); // id => 'name' , $vocation_name[0] - promotion level 0, $vocation_name[1] - for world ID 1
$vocation_name[1][1] = array(1 => 'Master Sorcerer', 2 => 'Elder Druid', 3 => 'Royal Paladin', 4 => 'Elite Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[1] - for world ID 1

// list of towns on ots
$towns_list[0] = array(6 => 'Venore', 2 => 'Carlin', 3 => "Ab'dendriel", 4 => 'Kazordoon', 5 => 'Thais'); // list of towns, id => 'name', $towns_list[0] - for world id 0 
$towns_list[1] = array(0 => 'Thais'); // list of towns, id => 'name', $towns_list[0] - for world id 1
 
Try
Code:
// sample, if rook only:             $config['site']['newchar_vocations'][0] = array(0 => 'Rook Sample');
$config['site']['newchar_towns'][0] = array(6,2,3,4,5);
$config['site']['newchar_towns'][1] = array(6,2,3,4,5);
// sample, if all players should spawn in one city (city with ID 4):          
[B][COLOR="Red"]$config['site']['newchar_towns'] = array(3);[/COLOR][/B]



// list of vocations on ots (world 0)
$vocation_name[0][0] = array(0 => 'None', 1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); // id => 'name' , $vocation_name[0] - promotion level 0, $vocation_name[0] - for world ID 0
$vocation_name[0][1] = array(1 => 'Master Sorcerer', 2 => 'Elder Druid', 3 => 'Royal Paladin', 4 => 'Elite Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[0] - for world ID 0
// list of vocations on ots (world 1)
$vocation_name[1][0] = array(0 => 'None', 1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); // id => 'name' , $vocation_name[0] - promotion level 0, $vocation_name[1] - for world ID 1
$vocation_name[1][1] = array(1 => 'Master Sorcerer', 2 => 'Elder Druid', 3 => 'Royal Paladin', 4 => 'Elite Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[1] - for world ID 1

// list of towns on ots
$towns_list[0] = array(6 => 'Venore', 2 => 'Carlin', 3 => "Ab'dendriel", 4 => 'Kazordoon', 5 => 'Thais'); // list of towns, id => 'name', $towns_list[0] - for world id 0 
$towns_list[1] = array(0 => 'Thais'); // list of towns, id => 'name', $towns_list[0] - for world id 1
 
aaaaaa i dont know then xd

PHP:
UPDATE `players` SET `town_id` = "3" WHERE `name` = "Sorcerer Sample";
UPDATE `players` SET `town_id` = "3" WHERE `name` = "Druid Sample";
UPDATE `players` SET `town_id` = "3" WHERE `name` = "Paladin Sample";
UPDATE `players` SET `town_id` = "3" WHERE `name` = "Knight Sample";
fail?!?!?1
 
Back
Top