Polarbear72
Member
Ok, so when someone creates a new character they have 3 options of towns to choose from, however they always spawn in what was previously a rookguard area that no longer exists. How can I fix it so they actually spawn at the town of their choice instead of this specific spot everytime?
Lua:
// Town ids and names: (In RME map editor, open map, click CTRL + T to view towns, their names and their IDs.
// townID => 'townName' ex: [1 => 'Rookgaard']
$config['towns'] = array(
1 => 'Trekolt',
2 => 'Rhyves',
3 => 'Varak',
4 => 'Jorvik',
5 => 'Alanian Desert',
6 => 'Ivy Falls',
);
// -- HOUSE AUCTION SYSTEM! (TFS 1.x ONLY)
$config['houseConfig'] = array(
'HouseListDefaultTown' => 8, // Default town id to display when visting house list page page.
'minimumBidSQM' => 200, // Minimum bid cost on auction (per SQM)
'auctionPeriod' => 24 * 60 * 60, // 24 hours auction time.
'housesPerPlayer' => 1,
'requirePremium' => false,
'levelToBuyHouse' => 8,
// Instant buy with shop points
'shopPoints' => array(
'enabled' => true,
// SQM count => points cost
'cost' => array(
1 => 10,
25 => 15,
60 => 25,
100 => 30,
200 => 40,
300 => 50,
),
),
);
// Leave on black square in map and player should get teleported to their selected town.
// If chars get buggy set this position to a beginner location to force players there.
$config['default_pos'] = array(
'x' => 95,
'y' => 117,
'z' => 7,
);
$config['war_status'] = array(
0 => 'Pending',
1 => 'Accepted',
2 => 'Rejected',
3 => 'Canceled',
4 => 'Ended by kill limit',
5 => 'Ended',
);
/* -- SUB PAGES --
Some custom layouts/templates have custom pages, they can use
this sub page functionality for that.
*/
$config['allowSubPages'] = true;
// ---------------- \\
// Create Character \\
// ---------------- \\
// Max characters on each account:
$config['max_characters'] = 7;
// Available character vocation users can choose (specify vocation ID).
$config['available_vocations'] = array(1, 2, 3, 4);
// Available towns (specify town ids, etc: (1, 2, 3); to display 3 town options (town id 1, 2 and 3).
// Town IDs are the ones from $config['towns'] array
$config['available_towns'] = array(2, 5, 6);
$config['player'] = array(
'base' => array(
'level' => 8,
'health' => 185,
'mana' => 90,
'cap' => 470,
'soul' => 100
),
// Health, mana cap etc are calculated with $config['vocations_gain'] and 'base' values of $config['player']
'create' => array(
'level' => 8,
'novocation' => array( // Vocation id 0 (No vocation) special settings
'level' => 1,
'forceTown' => false,
'townId' => 1
),
'skills' => array( // See $config['vocations'] for proper vocation names of these IDs
// No vocation
0 => array(
'magic' => 0,
'fist' => 10,
'club' => 10,
'axe' => 10,
'sword' => 10,
'dist' => 10,
'shield' => 10,
'fishing' => 10,
),
// Sorcerer
1 => array(
'magic' => 0,
'fist' => 10,
'club' => 10,
'axe' => 10,
'sword' => 10,
'dist' => 10,
'shield' => 10,
'fishing' => 10,
),
// Druid
2 => array(
'magic' => 0,
'fist' => 10,
'club' => 10,
'axe' => 10,
'sword' => 10,
'dist' => 10,
'shield' => 10,
'fishing' => 10,
),
// Paladin
3 => array(
'magic' => 0,
'fist' => 10,
'club' => 10,
'axe' => 10,
'sword' => 10,
'dist' => 10,
'shield' => 10,
'fishing' => 10,
),
// Knight
4 => array(
'magic' => 0,
'fist' => 10,
'club' => 10,
'axe' => 10,
'sword' => 10,
'dist' => 10,
'shield' => 10,
'fishing' => 10,
),
),
'male_outfit' => array(
'id' => 128,
'head' => 78,
'body' => 68,
'legs' => 58,
'feet' => 76
),
'female_outfit' => array(
'id' => 136,
'head' => 78,
'body' => 68,
'legs' => 58,
'feet' => 76
)
)
);
Last edited: