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

znote aac vocations

Yaboihunna

New Member
Joined
Mar 27, 2019
Messages
136
Reaction score
3
how can i make instead of choosing vocation druid for instance choose elder druid in website??
 
Solution
In config.php, see vocation setup:

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(...
In config.php, see vocation setup:

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
        )
    );
Above vocations are default values. 1-4 is sorc -> knight, 5->8 is master sorc -> elite knight (promoted versions of 1 -> 4).

Then look at create character configs in config.php:
PHP:
    // ---------------- \\
    // Create Character \\
    // ---------------- \\
    // Max characters on each account:
    $config['max_characters'] = 7;
    // Available character vocation users can create.
    $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).
    $config['available_towns'] = array(1, 2, 4, 5);
    $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' => 8,
            'novocation' => array( // vocation id 0 (No vocation) special settings
                'level' => 1, // Level
                'forceTown' => true,
                'townId' => 30
            ),
            '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
            )
        )
    );
    // Minimum allowed character name letters. Etc 4 letters: "Kåre".
    $config['minL'] = 3;
    // Maximum allowed character name letters. Etc 20 letters: "Bobkåreolesofiesberg"
    $config['maxL'] = 20;
    // Maximum allowed character name words. Etc 2 words = "Bob Kåre", 3 words: "Bob Arne Kåre" as max char name words.
    $config['maxW'] = 3;

Take note of the configuration for "available_vocations":
PHP:
    // Available character vocation users can create.
    $config['available_vocations'] = array(1, 2, 3, 4);

These IDs 1,2,3,4 references the first vocation snippet where you configure their names and fromvoc attributes. Change these to 5,6,7,8 to allow users to pick the promoted counterparts. (if using default vocation setup).

If you use custom vocations, see server/data/XML/vocations.xml and update Znote AAC config with correct ID and names and fromvoc attributes of your servers custom vocations, to make the website use correct naming and vocation categorisation as your server in-game.

If you want players to start at level 50 instead of 8, don't touch the player "base" value (which is 8 by default), unless you have modified the "no-voc/rookguard" cipsoft style, but edit the below "create" values from level 8 to 50. And configure the starting skills and outfit below.

Note that the skills configuration array by default is for 0 -> 4 (novoc -> knight), you need to add or change these ids to 5-8, or whatever you have in config 'available_vocations' for them to take effect on the players you create.
 
Last edited:
Solution
Back
Top