• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Vocations]

sonata

New Member
Joined
Jan 26, 2009
Messages
84
Reaction score
0
Anyone know how to config vocations.xml for new vocs + spells for them.
 
Last edited:
Here ya go put this in vocations.xml but look first if the Voc Id's are free caus some times the 9.10.11.12 are god gm tutor and couseller u can change that easy so put this in vocations.xml:
Code:
	<vocation id="9" name="Super Sorcerer" description="a Super Sorcerer" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="50" gainmanaticks="2" gainmanaamount="50" manamultiplier="1.1" attackspeed="1700" soulmax="200" gainsoulticks="15" fromvoc="5">
		<formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.5"/>
		<skill id="1" multiplier="2.0"/>
		<skill id="2" multiplier="2.0"/>
		<skill id="3" multiplier="2.0"/>
		<skill id="4" multiplier="2.0"/>
		<skill id="5" multiplier="1.5"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	<vocation id="10" name="Super Druid" description="an Super Druid" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="50" gainmanaticks="2" gainmanaamount="50" manamultiplier="1.1" attackspeed="1700" soulmax="200" gainsoulticks="15" fromvoc="6">
		<formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.5"/>
		<skill id="1" multiplier="1.8"/>
		<skill id="2" multiplier="1.8"/>
		<skill id="3" multiplier="1.8"/>
		<skill id="4" multiplier="1.8"/>
		<skill id="5" multiplier="1.5"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	<vocation id="11" name="Super Paladin" description="a Super Paladin" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="50" gainmanaticks="2" gainmanaamount="50" manamultiplier="1.4" attackspeed="1700" soulmax="200" gainsoulticks="15" fromvoc="7">
		<formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.2"/>
		<skill id="1" multiplier="1.2"/>
		<skill id="2" multiplier="1.2"/>
		<skill id="3" multiplier="1.2"/>
		<skill id="4" multiplier="1.1"/>
		<skill id="5" multiplier="1.1"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>
	<vocation id="12" name="Super Knight" description="an Super Knight" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="2" gainmanaamount="50" manamultiplier="3.0" attackspeed="1700" soulmax="200" gainsoulticks="15" fromvoc="8">
		<formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/>
		<skill id="0" multiplier="1.1"/>
		<skill id="1" multiplier="1.1"/>
		<skill id="2" multiplier="1.1"/>
		<skill id="3" multiplier="1.1"/>
		<skill id="4" multiplier="1.4"/>
		<skill id="5" multiplier="1.1"/>
		<skill id="6" multiplier="1.1"/>
	</vocation>

and when u are making spells put down like this:
Code:
		<instant name="Fire Wave" words="exevo flam hur" lvl="18" mana="25" direction="1" exhaustion="2000" needlearn="0" script="attack/fire wave.lua">
		<vocation name="Sorcerer"/>
                <vocation name="Master Sorcerer"/>
		<vocation name="Super Sorcerer"/>
	</instant>

Hope this helps you.
 
Hello. What if I want some spells to be used only by Super Sorcerer?
If i remove:
<vocation name="Sorcerer"/>
<vocation name="Master Sorcerer"/>
system still sees spells fo master sorcerer (1 voc down) like a elite knigh sees spells for knight
 
Hello. What if I want some spells to be used only by Super Sorcerer?
If i remove:
<vocation name="Sorcerer"/>
<vocation name="Master Sorcerer"/>
system still sees spells fo master sorcerer (1 voc down) like a elite knigh sees spells for knight
In vocations.xml where it says
<vocation id="12" name="Super Knight" description="an Super Knight" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="2" gainmanaamount="50" manamultiplier="3.0" attackspeed="1700" soulmax="200" gainsoulticks="15" fromvoc="8">
Change the from to the same number as the vocation id
<vocation id="12" name="Super Knight" description="an Super Knight" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="2" gainmanaamount="50" manamultiplier="3.0" attackspeed="1700" soulmax="200" gainsoulticks="15" fromvoc="12">
 
Change the from to the same number as the vocation id
Thank you so much for the answer but now it says in game:
"23:06 You see yourself. You are ."
And I cannot use any spells. :(
/edit only main vocations works like knight, sorc, druid, pal... nothing above them - with higher id :( :(

When I try to log on a knight its ok, but when i log on elite knight server says:
[Warning - Vocations::getVocation] Vocation 4294967295 not found.
and then script changes my number 4 in database vocation table to 0 :(
 
Last edited:
Back
Top