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

AAC Znote AAC no vocation

T

Tinkz

Guest
Hi!

I'm trying to change the mana value that a no vocation receives when he first logs into the game.

Right now when a new character is made and he log in, he has mana 5 which is incorrect. He should instead start with 0 mana.

@Znote

PHP:
// Available character vocation users can create.
    $config['available_vocations'] = array(0);

    // Available towns (specify town ids, etc: (1, 2, 3); to display 3 town options (town id 1, 2 and 3).
    $config['available_towns'] = array(11);

    $config['player'] = array(
        'base' => array(
            'level' => 8,
            'health' => 185,
            'mana' => 40,
            'cap' => 470,
            'soul' => 100
        ),
        // health, mana cap etc are calculated with $config['vocations_gain'] and 'base' values of $config['player']
        'create' => array(
            'level' => 1,
            'novocation' => array( // vocation id 0 (No vocation) special settings
                'level' => 1, // Level
                'forceTown' => true,
                'townId' => 11
            ),
            '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
            )
        )
    );
 
Solution
T
Issue Fixed.

By adding the correct player base which is

PHP:
    $config['player'] = array(
        'base' => array(
            'level' => 8,
            'health' => 185,
            'mana' => 35,
            'cap' => 470,
            'soul' => 100
        ),
Issue Fixed.

By adding the correct player base which is

PHP:
    $config['player'] = array(
        'base' => array(
            'level' => 8,
            'health' => 185,
            'mana' => 35,
            'cap' => 470,
            'soul' => 100
        ),
 
Solution
Relevant parts in config.php for character creation and hp/mana/cap alculations.
PHP:
// Vocation IDs, names and which vocation ID they got promoted from
$config['vocations'] = array(
    0 => array(
        'name' => 'No vocation',
        'fromVoc' => false
    ),
    1 => array(
        'name' => 'Sorcerer',
        'fromVoc' => false
    ),
    2 => array(
        'name' => 'Druid',
        'fromVoc' => false
    ),
    3 => array(
        'name' => 'Paladin',
        'fromVoc' => false
    ),
    4 => array(
        'name' => 'Knight',
        'fromVoc' => false
    ),
    5 => array(
        'name' => 'Master Sorcerer',
        'fromVoc' => 1
    ),
    6 => array(
        'name' => 'Elder Druid',
        'fromVoc' => 2
    ),
    7 => array(
        'name' => 'Royal Paladin',
        'fromVoc' => 3
    ),
    8 => array(
        'name' => 'Elite Knight',
        'fromVoc' => 4
    )
);
PHP:
// Available character vocation users can create.
$config['available_vocations'] = array(1, 2, 3, 4);
PHP:
$config['vocations_gain'] = array(
    0 => array(
        'hp' => 5,
        'mp' => 5,
        'cap' => 10
    ),
    1 => array(
        'hp' => 5,
        'mp' => 30,
        'cap' => 10
    ),
    2 => array(
        'hp' => 5,
        'mp' => 30,
        'cap' => 10
    ),
    3 => array(
        'hp' => 10,
        'mp' => 15,
        'cap' => 20
    ),
    4 => array(
        'hp' => 15,
        'mp' => 5,
        'cap' => 25
    ),
    5 => array(
        'hp' => 5,
        'mp' => 30,
        'cap' => 10
    ),
    6 => array(
        'hp' => 5,
        'mp' => 30,
        'cap' => 10
    ),
    7 => array(
        'hp' => 10,
        'mp' => 15,
        'cap' => 20
    ),
    8 => array(
        'hp' => 15,
        'mp' => 5,
        'cap' => 25
    ),
);

PHP:
$config['player'] = array(
    'base' => array(
        'level' => 8,
        'health' => 185,
        'mana' => 40,
        'cap' => 470,
        'soul' => 100
    ),

PHP:
// 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, // Level
        'forceTown' => true,
        'townId' => 30
    ),

And for towns:
PHP:
// Town ids and names: (In RME map editor, open map, click CTRL + T to view towns, their names and their IDs.
// townID => 'townName' etc: ['3'=>'Thais']
$config['towns'] = array(
    1 => 'Venore',
    2 => 'Thais',
    3 => 'Kazordoon',
    4 => 'Carlin',
    5 => "Ab'Dendriel",
    6 => 'Rookgaard',
    7 => 'Liberty Bay',
    8 => 'Port Hope',
    9 => 'Ankrahmun',
    10 => 'Darashia',
    11 => 'Edron',
    12 => 'Svargrond',
    13 => 'Yalahar',
    14 => 'Farmine',
    28 => 'Gray Beach',
    29 => 'Roshamuul',
    30 => 'Rookgaard Tutorial Island',
    31 => 'Isle of Solitude',
    32 => 'Island Of Destiny',
    33 => 'Rathleton'
);
PHP:
// Available towns (specify town ids, etc: (1, 2, 3); to display 3 town options (town id 1, 2 and 3).
$config['available_towns'] = array(1, 2, 4, 5);
 
Back
Top