Automatically load towns from .OTBM file

Takes up to 10 seconds for otservbr on my PC
Taken from old Smart AAC - class SpawnsReader.php
This commit is contained in:
slawkens
2020-10-09 00:12:07 +02:00
parent ae7350e3a0
commit a52396008d
3 changed files with 117 additions and 27 deletions

View File

@@ -165,7 +165,9 @@ $config = array(
'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)
// if you use TFS 1.3 with support for 'towns' table in database, then you can ignore this - it will be configured automatically (from MySQL database - Table - towns)
// otherwise it will try to load from your .OTBM map file
// if you don't see towns on website, then you need to fill this out
'towns' => array(
0 => 'No town',
1 => 'Sample town'