176 $town = $_POST['town'];
177 verify_number($town, 'Town', 11);
177 verify_number($town, 'Town', 11);
Attachments
-
image0.jpg64.4 KB · Views: 38 · VirusTotal
me towns "Honrus,Acropole,Papremis" can you send me the correct code?You need to configure towns.
In config.php - towns.
// town list used when creating character
// won't be displayed if there is only one item (rookgaard for example)
'character_towns' => array(1),
// characters lenght
// This is the minimum and the maximum length that a player can create a character. It is highly recommend the maximum lenght be 21.
'character_name_min_length' => 4,
'character_name_max_length' => 21,
// list of towns
// if you use TFS 1.3 with support for 'towns' table in database, then you can ignore this - it will be configured automatically (generated from your .OTBM map)
'towns' => array(
0 => 'No town',
1 => 'Sample town'
),
// list of towns
'towns' => array(
0 => 'No town',
1 => 'Honrus',
2 => 'Acropole',
3 => 'Papremis',
),
// list of towns
'towns' => array(
0 => 'No town',
1 => 'Venore',
2 => 'Thais',
51 => 'Dawnport',
52 => 'Feyrist',
),
this would depend on what your town numbers are in your map editor
Code:// list of towns 'towns' => array( 0 => 'No town', 1 => 'Honrus', 2 => 'Acropole', 3 => 'Papremis', ),
on a real map.
View attachment 43105
Code:// list of towns 'towns' => array( 0 => 'No town', 1 => 'Venore', 2 => 'Thais', 51 => 'Dawnport', 52 => 'Feyrist', ),
@edit.
I forgot how ugly the player editor looks, I had made some changes a while back. I must remember to work on the newest version and update it.