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

Modern aac - new vocation does'nt show up

Mooosie

mistofdeath.com
Premium User
Joined
Aug 2, 2008
Messages
742
Solutions
2
Reaction score
52
Location
Sweden
I have a server with one extra promotion (After the second, master sorcerer, etc...)
When i view a character profile on modern aac then it's supposed to show the vocation of the character, as i said i have made a new vocation on the server, now when a player gets the third vocation the row where the vocation is displayed is empty.

How do i do so that it displayes the name of the vocation (the new ones, (third))?
 
What do you mean by hand?

This is what I've done in config.php

PHP:
/*List of vocation that exists on server*/
$config['server_vocations'] = array(0=>"None", 1=>"Sorcerer", 2=>"Druid", 3=>"Paladin", 4=>"Knight", 5=>"Master Sorcerer", 6=>"Elder Druid", 7=>"Royal Paladin", 8=>"Elite Knight", 9=>"Epic Wizard", 10=>"Epic Mage", 11=>"Epic Archer", 12=>"Epic Warrior");

/*List of promotions, the key is vocation without promotion*/
$config['promotions'] = array(1=>"Master Sorcerer", 2=>"Elder Druid", 3=>"Royal Paladin", 4=>"Elite Knight", 5=>"Epic Wizard", 6=>"Epic Mage", 7=>"Epic Archer", 8=>"Epic Warrior");

I've also removed the extra vocations/promotions in 1 but nothing changed.
 
Solution:

1. Go to Xampp\htdocs\system\application\libraries\system.php.
2. Go to line 279 or ctrl + f : function getVocationName($voc, $promotion) {.
3. Replace line 279 to 292 or function getVocationName($voc, $promotion) { with:


PHP:
 function getVocationName($voc, $promotion) {
	require("config.php");
	if($promotion == 0) {
		return @$config['server_vocations'][$voc];
	}
		if($promotion == 1) {
		return @$config['server_vocations'][15][$voc];
	}
		if($promotion == 2) {
		return @$config['server_vocations'][20][$voc];
	}
	else {
		return @$config['promotions'][$voc];
	}

4. in config.php, go to line 28 or ctrl + f:
PHP:
/*List of vocation that exists on server*/
and replace it with:


PHP:
/*List of vocation that exists on server*/
$config['server_vocations'] = array(0=>"None", 1=>"Sorcerer", 2=>"Druid", 3=>"Paladin", 4=>"Knight");
$config['server_vocations'][15] = array(1=>"Master Sorcerer", 2=>"Elder Druid", 3=>"Royal Paladin", 4=>"Elite Knight");
$config['server_vocations'][20] = array(1=>"Epic Sorcerer", 2=>"Epic Druid", 3=>"Epic Paladin", 4=>"Epic Knight");

You're done!
 
Last edited:
Back
Top