• 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!

Temple Spawn Location

Polarbear72

Member
Joined
Mar 3, 2013
Messages
63
Solutions
1
Reaction score
5
Location
USA
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:
Solution
Znote 1.6
Set this:
Code:
    // 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,
    );
to:
Code:
    // 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' => 0,
        'y' => 0,
        'z' => 0,
    );
OTS will teleport player to town temple on first login, as position will be invalid.
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?
What acc. maker are you using?
 
Znote 1.6
Set this:
Code:
    // 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,
    );
to:
Code:
    // 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' => 0,
        'y' => 0,
        'z' => 0,
    );
OTS will teleport player to town temple on first login, as position will be invalid.
 
Solution
That worked perfect thank you.

I tried to just leave that blank and it crashed the website. Not sure why I didn't think to try and put all 0
 
Back
Top