• 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

Toggee

New Member
Joined
May 28, 2025
Messages
11
Reaction score
1
Hi.

so i cant get promoted vocations to show on my website..


I think the problem is in the Database cuz the vocation id never change. only the promotion get set from a 0 to a 1 or 2 depending on if the char is only promoted once or twice.

i want it so you can see on the site witch promotion "stage" you are in --> Druid --> Elder Druid --> Super Druid.







$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
)

);
 
Hi.

so i cant get promoted vocations to show on my website..


I think the problem is in the Database cuz the vocation id never change. only the promotion get set from a 0 to a 1 or 2 depending on if the char is only promoted once or twice.

i want it so you can see on the site witch promotion "stage" you are in --> Druid --> Elder Druid --> Super Druid.







$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
)

);

Data/XML on your server, last line of your $config on znote:
Code:
 8 => array( <--- 8 because is vocation ID 8 on data/xml

            'name' => 'Elite Knight', <--- Name of vocation from data XML

            'fromVoc' => 4 <---- fromVoc on data/xml

        )


LUA:
<vocation id="8" clientid="1" name="Elite Knight" description="an elite knight" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="4">

Add a new one on data/xml/vocations.xml , then setup the new one
Code:
 9 => array( <--- 9 because is vocation ID 9 on data/xml

            'name' => 'Super Druid', <--- Name of vocation from data XML

            'fromVoc' => 6 <---- fromVoc on data/xml

        )

Then setup a new vocation.


Code:
<vocation id="9" clientid="5" name="Super Druid" description="a super druid" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="200" gainsoulticks="15" fromvoc="6" noPongKickTime="40">

And edit values.

This will add a new vocation, but is not all, you should edit everything that this new vocation will be able to use, spells, items (movements) things like bosses mechanic if they are scripted by vocation name, player lua, exercise weapons if you have and much more.
 
The problem is that a druid is vocation 2
and promotion 0 Elder druid is vocation id 2 and promotion 1 and an super druid is still vocation id 2 and a promotion 2 in my database how do i solve that ? Xd
 
Back
Top