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

[NPC Help] Promotion Npc Confusion

Solarium

New Member
Joined
Jul 18, 2009
Messages
30
Reaction score
0
Hello Everyone, ok so i used the search function and found an npc that could promote me high then ex. Elite Knight, so i got it
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
 
function onCreatureAppear(cid)			npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid)		npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)		npcHandler:onCreatureSay(cid, type, msg) end
function onThink()				npcHandler:onThink() end
 
local node2 = keywordHandler:addKeyword({'epic'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can epicize you for 0 gold coins. Do you want me to promote you again?'})
	node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 0, level = 50, promotion = 1, text = 'Congratulations! You are now epicized.'})
	node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})
 
 
npcHandler:addModule(FocusModule:new())
and i tested it and it changed me to my one out of 3 new knight vocations, so i thought maybe if i just change
Code:
promotion = 1,
to
Code:
promotion = 2,
then it would go to the 2nd option of the choices, but it didnt work, could anyone please help me? thank you :)
 
Hello Everyone, ok so i used the search function and found an npc that could promote me high then ex. Elite Knight, so i got it
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
 
function onCreatureAppear(cid)			npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid)		npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)		npcHandler:onCreatureSay(cid, type, msg) end
function onThink()				npcHandler:onThink() end
 
local node2 = keywordHandler:addKeyword({'epic'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can epicize you for 0 gold coins. Do you want me to promote you again?'})
	node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 0, level = 50, promotion = 1, text = 'Congratulations! You are now epicized.'})
	node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})
 
 
npcHandler:addModule(FocusModule:new())
and i tested it and it changed me to my one out of 3 new knight vocations, so i thought maybe if i just change
Code:
promotion = 1,
to
Code:
promotion = 2,
then it would go to the 2nd option of the choices, but it didnt work, could anyone please help me? thank you :)

I don't know if I'm fulling understanding what the problem is, but chaging
Code:
promotion = 1
to
Code:
promotion = 2
should work...

Can you post your vocations.xml please ? Maybe the problem is in there, not in the npc script
 
ok heres my vocation.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
	<vocation id="0" name="None" description="none" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0">
		<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="1" name="Kings Mage" description="a king's mage" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="1">
		<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="2" name="Kings Monk" description="a king's monk" gaincap="10" gainhp="5" gainmana="50" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="2">
		<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="3" name="Kings Archer" description="a king's archer" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="5" gainmanaticks="4" gainmanaamount="5" manamultiplier="1.4" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="3">
		<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="4" name="Kings Knight" description="a king's knight" gaincap="25" gainhp="25" gainmana="10" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="5" manamultiplier="3.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="4">
		<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>
	<vocation id="5" name="Wizard" description="a wizard" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="1">
		<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="6" name="Priest" description="a priest" gaincap="10" gainhp="15" gainmana="115" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="2">
		<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="7" name="White Paladin" description="a white paladin" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="3">
		<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="8" name="White Guard" description="a white guard" gaincap="25" gainhp="45" gainmana="15" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="4">
		<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>
		<vocation id="9" name="Energy Wizard" description="an energy wizard" gaincap="15" gainhp="25" gainmana="75" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" 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="Fire Wizard" description="a fire wizard" gaincap="15" gainhp="25" gainmana="75" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" 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="11" name="Ice Wizard" description="an ice wizard" gaincap="15" gainhp="25" gainmana="75" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" 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="12" name="Shaman" description="a shaman" gaincap="10" gainhp="10" gainmana="40" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" 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="13" name="Healer" description="a healer" gaincap="10" gainhp="25" gainmana="145" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" 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="14" name="Blood Druid" description="a blood druid" gaincap="10" gainhp="10" gainmana="40" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" 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="15" name="Rogue" description="a rogue" gaincap="25" gainhp="10" gainmana="25" gainhpticks="6" gainhpamount="20" gainmanaticks="6" gainmanaamount="20" manamultiplier="1.4" attackspeed="2550" 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="16" name="Sharpshooter" description="a sharpshooter" gaincap="25" gainhp="10" gainmana="25" gainhpticks="6" gainhpamount="20" gainmanaticks="6" gainmanaamount="20" manamultiplier="1.4" attackspeed="2550" 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="17" name="Sniper" description="a sniper" gaincap="25" gainhp="10" gainmana="25" gainhpticks="6" gainhpamount="20" gainmanaticks="6" gainmanaamount="20" manamultiplier="1.4" attackspeed="2550" 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="18" name="Demon Knight" description="a demon knight" gaincap="35" gainhp="70" gainmana="25" gainhpticks="4" gainhpamount="20" gainmanaticks="8" gainmanaamount="20" manamultiplier="3.0" attackspeed="3500" 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>
		<vocation id="19" name="Berzerker" description="a berzerker" gaincap="35" gainhp="65" gainmana="15" gainhpticks="4" gainhpamount="20" gainmanaticks="8" gainmanaamount="20" manamultiplier="3.0" attackspeed="3500" 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>
		<vocation id="20" name="Titan" description="a titan" gaincap="35" gainhp="75" gainmana="20" gainhpticks="4" gainhpamount="20" gainmanaticks="8" gainmanaamount="20" manamultiplier="3.0" attackspeed="1500" 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>
			<vocation id="21" name="Ultimate Energy Wizard" description="an ultimate energy wizard" gaincap="25" gainhp="60" gainmana="125" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" soulmax="200" gainsoulticks="15" fromvoc="9">
		<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="22" name="Ultimate Fire Wizard" description="an ultimate fire wizard" gaincap="25" gainhp="60" gainmana="125" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" soulmax="200" gainsoulticks="15" fromvoc="10">
		<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="23" name="Ultimate Ice Wizard" description="an ultimate ice wizard" gaincap="25" gainhp="60" gainmana="125" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" soulmax="200" gainsoulticks="15" fromvoc="11">
		<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="24" name="Master Shaman" description="a master shaman" gaincap="25" gainhp="15" gainmana="50" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="12">
		<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="25" name="Master Healer" description="a master healer" gaincap="25" gainhp="40" gainmana="275" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="13">
		<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="26" name="Master Blood Druid" description="a master blood druid" gaincap="25" gainhp="15" gainmana="50" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="14">
		<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="27" name="Royal Rogue" description="a royal rogue" gaincap="35" gainhp="25" gainmana="45" gainhpticks="6" gainhpamount="20" gainmanaticks="6" gainmanaamount="20" manamultiplier="1.4" attackspeed="2550" soulmax="200" gainsoulticks="15" fromvoc="15">
		<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="28" name="Royal Sharpshooter" description="a royal sharpshooter" gaincap="35" gainhp="25" gainmana="45" gainhpticks="6" gainhpamount="20" gainmanaticks="6" gainmanaamount="20" manamultiplier="1.4" attackspeed="2550" soulmax="200" gainsoulticks="15" fromvoc="16">
		<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="29" name="Royal Sniper" description="a royal sniper" gaincap="35" gainhp="25" gainmana="45" gainhpticks="6" gainhpamount="20" gainmanaticks="6" gainmanaamount="20" manamultiplier="1.4" attackspeed="2550" soulmax="200" gainsoulticks="15" fromvoc="17">
		<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="30" name="Elite Demon Knight" description="an elite demon knight" gaincap="55" gainhp="120" gainmana="60" gainhpticks="4" gainhpamount="20" gainmanaticks="8" gainmanaamount="20" manamultiplier="3.0" attackspeed="3500" soulmax="200" gainsoulticks="15" fromvoc="18">
		<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>
			<vocation id="31" name="Elite Berzerker" description="an elite berzerker" gaincap="115" gainhp="40" gainmana="20" gainhpticks="4" gainhpamount="20" gainmanaticks="8" gainmanaamount="20" manamultiplier="3.0" attackspeed="3500" soulmax="200" gainsoulticks="15" fromvoc="19">
		<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>
			<vocation id="32" name="Elite Titan" description="an elite titan" gaincap="55" gainhp="125" gainmana="55" gainhpticks="4" gainhpamount="20" gainmanaticks="8" gainmanaamount="20" manamultiplier="3.0" attackspeed="3500" soulmax="200" gainsoulticks="15" fromvoc="20">
		<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>
</vocations>
 
ok heres my vocation.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
	<vocation id="0" name="None" description="none" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0">
		<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="1" name="Kings Mage" description="a king's mage" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="1">
		<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="2" name="Kings Monk" description="a king's monk" gaincap="10" gainhp="5" gainmana="50" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="2">
		<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="3" name="Kings Archer" description="a king's archer" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="5" gainmanaticks="4" gainmanaamount="5" manamultiplier="1.4" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="3">
		<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="4" name="Kings Knight" description="a king's knight" gaincap="25" gainhp="25" gainmana="10" gainhpticks="3" gainhpamount="5" gainmanaticks="6" gainmanaamount="5" manamultiplier="3.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="4">
		<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>
	<vocation id="5" name="Wizard" description="a wizard" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="1">
		<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="6" name="Priest" description="a priest" gaincap="10" gainhp="15" gainmana="115" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="2">
		<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="7" name="White Paladin" description="a white paladin" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="3">
		<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="8" name="White Guard" description="a white guard" gaincap="25" gainhp="45" gainmana="15" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="4">
		<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>
		<vocation id="9" name="Energy Wizard" description="an energy wizard" gaincap="15" gainhp="25" gainmana="75" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" 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="Fire Wizard" description="a fire wizard" gaincap="15" gainhp="25" gainmana="75" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" 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="11" name="Ice Wizard" description="an ice wizard" gaincap="15" gainhp="25" gainmana="75" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" 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="12" name="Shaman" description="a shaman" gaincap="10" gainhp="10" gainmana="40" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" 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="13" name="Healer" description="a healer" gaincap="10" gainhp="25" gainmana="145" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" 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="14" name="Blood Druid" description="a blood druid" gaincap="10" gainhp="10" gainmana="40" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" 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="15" name="Rogue" description="a rogue" gaincap="25" gainhp="10" gainmana="25" gainhpticks="6" gainhpamount="20" gainmanaticks="6" gainmanaamount="20" manamultiplier="1.4" attackspeed="2550" 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="16" name="Sharpshooter" description="a sharpshooter" gaincap="25" gainhp="10" gainmana="25" gainhpticks="6" gainhpamount="20" gainmanaticks="6" gainmanaamount="20" manamultiplier="1.4" attackspeed="2550" 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="17" name="Sniper" description="a sniper" gaincap="25" gainhp="10" gainmana="25" gainhpticks="6" gainhpamount="20" gainmanaticks="6" gainmanaamount="20" manamultiplier="1.4" attackspeed="2550" 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="18" name="Demon Knight" description="a demon knight" gaincap="35" gainhp="70" gainmana="25" gainhpticks="4" gainhpamount="20" gainmanaticks="8" gainmanaamount="20" manamultiplier="3.0" attackspeed="3500" 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>
		<vocation id="19" name="Berzerker" description="a berzerker" gaincap="35" gainhp="65" gainmana="15" gainhpticks="4" gainhpamount="20" gainmanaticks="8" gainmanaamount="20" manamultiplier="3.0" attackspeed="3500" 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>
		<vocation id="20" name="Titan" description="a titan" gaincap="35" gainhp="75" gainmana="20" gainhpticks="4" gainhpamount="20" gainmanaticks="8" gainmanaamount="20" manamultiplier="3.0" attackspeed="1500" 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>
			<vocation id="21" name="Ultimate Energy Wizard" description="an ultimate energy wizard" gaincap="25" gainhp="60" gainmana="125" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" soulmax="200" gainsoulticks="15" fromvoc="9">
		<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="22" name="Ultimate Fire Wizard" description="an ultimate fire wizard" gaincap="25" gainhp="60" gainmana="125" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" soulmax="200" gainsoulticks="15" fromvoc="10">
		<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="23" name="Ultimate Ice Wizard" description="an ultimate ice wizard" gaincap="25" gainhp="60" gainmana="125" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" soulmax="200" gainsoulticks="15" fromvoc="11">
		<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="24" name="Master Shaman" description="a master shaman" gaincap="25" gainhp="15" gainmana="50" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="12">
		<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="25" name="Master Healer" description="a master healer" gaincap="25" gainhp="40" gainmana="275" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="13">
		<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="26" name="Master Blood Druid" description="a master blood druid" gaincap="25" gainhp="15" gainmana="50" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="14">
		<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="27" name="Royal Rogue" description="a royal rogue" gaincap="35" gainhp="25" gainmana="45" gainhpticks="6" gainhpamount="20" gainmanaticks="6" gainmanaamount="20" manamultiplier="1.4" attackspeed="2550" soulmax="200" gainsoulticks="15" fromvoc="15">
		<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="28" name="Royal Sharpshooter" description="a royal sharpshooter" gaincap="35" gainhp="25" gainmana="45" gainhpticks="6" gainhpamount="20" gainmanaticks="6" gainmanaamount="20" manamultiplier="1.4" attackspeed="2550" soulmax="200" gainsoulticks="15" fromvoc="16">
		<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="29" name="Royal Sniper" description="a royal sniper" gaincap="35" gainhp="25" gainmana="45" gainhpticks="6" gainhpamount="20" gainmanaticks="6" gainmanaamount="20" manamultiplier="1.4" attackspeed="2550" soulmax="200" gainsoulticks="15" fromvoc="17">
		<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="30" name="Elite Demon Knight" description="an elite demon knight" gaincap="55" gainhp="120" gainmana="60" gainhpticks="4" gainhpamount="20" gainmanaticks="8" gainmanaamount="20" manamultiplier="3.0" attackspeed="3500" soulmax="200" gainsoulticks="15" fromvoc="18">
		<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>
			<vocation id="31" name="Elite Berzerker" description="an elite berzerker" gaincap="115" gainhp="40" gainmana="20" gainhpticks="4" gainhpamount="20" gainmanaticks="8" gainmanaamount="20" manamultiplier="3.0" attackspeed="3500" soulmax="200" gainsoulticks="15" fromvoc="19">
		<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>
			<vocation id="32" name="Elite Titan" description="an elite titan" gaincap="55" gainhp="125" gainmana="55" gainhpticks="4" gainhpamount="20" gainmanaticks="8" gainmanaamount="20" manamultiplier="3.0" attackspeed="3500" soulmax="200" gainsoulticks="15" fromvoc="20">
		<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>
</vocations>

Yeah, I guees the problem is really with your vocations.xml...
For exemample, from vocations 0 to 4 te code
Code:
fromvoc="x"
x is the number o the id of the vocations...
from vocations 5 to 8 the code is 1 to the promotion of voc 1, 2 to the promotion of the voc 2 etc...

But, when it goes to your own vocations, you have 3 vocations that came from the same one...
That might be causing this problem...
I mean, all the three wizard "Ice" "Fire" & "Energy" are coming from the same vocation...

I don't know if it is possible for 1 vocation to promote to 3 differents vocations...
 
is there no way to be able to script an npc that can go to a certain vocation? cause i dont care how many copys of the promotion.lua and npc.xml i have to make to have an npc to go to any of the promotions
 
is there no way to be able to script an npc that can go to a certain vocation? cause i dont care how many copys of the promotion.lua and npc.xml i have to make to have an npc to go to any of the promotions

Well, then just make that vocation like a "first vocation"..
For example:
Code:
		<vocation id="9" name="Energy Wizard" description="an energy wizard" gaincap="15" gainhp="25" gainmana="75" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="25" manamultiplier="1.1" attackspeed="2500" soulmax="200" gainsoulticks="15" fromvoc="9">
		<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>
note that at
Code:
fromvoc="x"
the number is the same as the vocation id

then, just make a NPC that will change the players voc... Something like this:
Lua:
 elseif msgcontains(msg, "energy wizard") then
		if(doPlayerRemoveMoney(cid, 5000) == true) and getPlayerVocation(cid) == 5 then
		doPlayerSetVocation(cid,9)
                doSendMagicEffect(topos,12) 
                selfSay('Gratz, now you\'re an Energy Wizard.', cid)
      return TRUE
end
It should work just fine...

But, be carefull... If you want to make a vocation even stronger, that comes from energy, fire or ice wizard, don't make it a promotion, because if the player was a Wizard already and not a Kings Mage, when talking to this NPC I posted he would be that second vocation...
So, if you want to have a second upgrade from those "elemental wizards", make a NPC that will look like something like this:
Lua:
 elseif msgcontains(msg, "vocation") then
		if(doPlayerRemoveMoney(cid, 5000) == true) and getPlayerVocation(cid) == 9 or getPlayerVocation(cid) == 10 or getPlayerVocation(cid) == 11 then
		doPlayerSetVocation(cid,x)
                doSendMagicEffect(topos,12) 
                selfSay('Gratz, now you\'re an Vocation.', cid)
      return TRUE
end
and so on...
Just to make this clear:
Code:
elseif msgcontains(msg, "energy wizard") then
energy wizard is the msg the player have to say to get the promotion
Code:
if(doPlayerRemoveMoney(cid, 5000) == true)
5000 is the amount of money needed to have the promotion
Code:
getPlayerVocation(cid) == 5
1 is the id of the vocation the player must be to be promoted
Code:
doPlayerSetVocation(cid,9)
9 is the id of the vocation the player will become
Code:
doSendMagicEffect(topos,12)
just a little effect, you can change the 12 to wahtevr you prefer go to data/libs/000-constant.lua (or maybe just constant in your server) and get the numbers from there
Code:
selfSay('Gratz, now you\'re an Vocation.', cid)
change it to whatever you want the NPC to say...

I'm sorry if this "tutorial" looks stupid, but, it's because I don't know if were gonna understand my script just looking at it, in case you did understand, I'm sorry, just ignore this "tutorial"
Hope this helps and works :D
 
actually this is GREAT! thank you!, and the tutorial helped me to understand it alot better, thank you so much!! Totally repping you man

- - - Updated - - -

ok, so how would the whole npc script look if i was to do that?, would you happen to have that?
 
actually this is GREAT! thank you!, and the tutorial helped me to understand it alot better, thank you so much!! Totally repping you man

- - - Updated - - -

ok, so how would the whole npc script look if i was to do that?, would you happen to have that?

Thanks man, and no problem!
Well I made this script really fast for you... Tell me if it works
Lua:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)			npcHandler:onCreatureAppear(cid)			end
function onCreatureDisappear(cid)		npcHandler:onCreatureDisappear(cid)			end
function onCreatureSay(cid, type, msg)	npcHandler:onCreatureSay(cid, type, msg)	end
function onThink()						npcHandler:onThink()						end

npcHandler:addModule(FocusModule:new())

local configs = {

        msgEnergy = 'I can promote you to an {Energy wizard} for 5000 gold coins. Do you want me to ?',
        msgFire = 'I can promote you to a {Fire wizard} for 5000 gold coins. Do you want me to ?',
        msgIce = "I can promote you to an {Ice wizard} for 5000 gold coins. Do you want me to ?",

        }

        if(not npcHandler:isFocused(cid)) then
                return false
        end

local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid


if msgcontains(msg, "energy wizard") then
	selfSay(configs.msgEnergy, cid)
talkState[talkUser] = 1
	elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
		if(doPlayerRemoveMoney(cid, 5000) == true) and getPlayerVocation(cid) == 5 then
		doPlayerSetVocation(cid,9)
                doSendMagicEffect(topos,12) 
                selfSay('Gratz, now you\'re an Energy Wizard.', cid)
	else
		selfSay('You don\'t have enoguh money.', cid)
	end
	else
		selfSay('Your vocation can\'t become an Energy Wizard', cid)
	end
talkState[talkUser] = 0
end
	elseif(msgcontains(msg, 'no') and talkState[talkUser] == 1) then
		selfSay('Alright. Maybe next time.', cid)
	talkState[talkUser] = 0
end
      return TRUE
end

else if msgcontains(msg, "fire wizard") then
	selfSay(configs.msgFire, cid)
talkState[talkUser] = 2
	elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 2) then
		if(doPlayerRemoveMoney(cid, 5000) == true) and getPlayerVocation(cid) == 5 then
		doPlayerSetVocation(cid,10)
                doSendMagicEffect(topos,12) 
                selfSay('Gratz, now you\'re a Fire Wizard.', cid)
	else
		selfSay('You don\'t have enoguh money.', cid)
	end
	else
		selfSay('Your vocation can\'t become a Fire Wizard', cid)
	end
talkState[talkUser] = 0
end
	elseif(msgcontains(msg, 'no') and talkState[talkUser] == 2) then
		selfSay('Alright. Maybe next time.', cid)
	talkState[talkUser] = 0
end
      return TRUE
end

if msgcontains(msg, "ice wizard") then
	selfSay(configs.msgEnergy, cid)
talkState[talkUser] = 3
	elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 3) then
		if(doPlayerRemoveMoney(cid, 5000) == true) and getPlayerVocation(cid) == 5 then
		doPlayerSetVocation(cid,11)
                doSendMagicEffect(topos,12) 
                selfSay('Gratz, now you\'re an Ice Wizard.', cid)
	else
		selfSay('You don\'t have enoguh money.', cid)
	end
	else
		selfSay('Your vocation can\'t become an Ice Wizard', cid)
	end
talkState[talkUser] = 0
end
	elseif(msgcontains(msg, 'no') and talkState[talkUser] == 3) then
		selfSay('Alright. Maybe next time.', cid)
	talkState[talkUser] = 0
end
      return TRUE
end



npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

I'm not sure if it is working, but it should... I can't test it right now, sorry..
If you have any problem, just tell me


---- EDIT

BTW, I forgot the NPC, lol.. My bad
here it is:
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Promoter" script="data/npc/scripts/wizard_promote.lua" walkinterval="2000" floorchange="0">
<mana now="800" max="800"/>
<health now="200" max="200"/>
<look type="133" head="114" body="119" legs="132" feet="114"/>
<parameters>
       <parameter key="message_greet" value="Hello, |PLAYERNAME|."/>
        <parameter key="message_farewell" value="Farewell, |PLAYERNAME|"/>
		<parameter key="message_walkaway" value="Farewell, |PLAYERNAME|" />
    </parameters>
</npc>

---- EDIT 2
Maybe you don't know how to make it work, so here it goes...

go to data/npcs
make a new .xml file and place it in there: (The .xml file should be the name of the NPC, for example promoter.xml)
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Promoter" script="data/npc/scripts/wizard_promote.lua" walkinterval="2000" floorchange="0">
<mana now="800" max="800"/>
<health now="200" max="200"/>
<look type="133" head="114" body="119" legs="132" feet="114"/>
<parameters>
       <parameter key="message_greet" value="Hello, |PLAYERNAME|."/>
        <parameter key="message_farewell" value="Farewell, |PLAYERNAME|"/>
		<parameter key="message_walkaway" value="Farewell, |PLAYERNAME|" />
    </parameters>
</npc>

Now,
Code:
name="Promoter"
Put the same name as the .xml file

Code:
script="data/npc/scripts/[B]wizard_promote[/B].lua"
change wizard_promote to whatever you want, but leave it as a .lua file.

Ok.. Now go to the scripts folder (data/npc/scripts)
make a new .lua file and name it wizard_promote or whatever you put there..

Place the script I just made you in there, and it should work just fine...



---EDIT 3
Ok, now that I got home and tested that script, it had some bugs, so it is not working, and it was just too simple...
So, I made this one, it's a little better and have no bugs at all
Lua:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end

function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end

local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid


local energy = {
new_voc = 9,
need_level = true,
level = 100,
pay = true,
price = 5000,
need_premium = true
}

local fire = {
new_voc = 10,
need_level = true,
level = 100,
pay = true,
price = 5000,
need_premium = true
}

local ice = {
new_voc = 11,
need_level = true,
level = 100,
pay = true,
price = 5000,
need_premium = true
}

if(msgcontains(msg, 'energy wizard') or msgcontains(msg, 'energy')) then
if(getPlayerVocation(cid) == 5) == FALSE then
selfSay('You\'re not a Wizard, therefore you can\'t become an ' .. getVocationInfo(energy.new_voc).name .. '.', cid)
talkState[talkUser] = 0

else
selfSay('Are you sure you want to become an ' .. getVocationInfo(energy.new_voc).name .. ' for '..energy.price..' gold coins? Remind that you can\'t change you choice later.', cid)
talkState[talkUser] = 1
end

elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
if energy.need_premium == true and not isPremium(cid) then
selfSay('You must be premium to become an ' .. getVocationInfo(energy.new_voc).name .. '.', cid)
talkState[talkUser] = 0

elseif energy.need_level == true and getPlayerLevel(cid) < energy.level then
selfSay('You must be at least level '.. energy.level ..' to become an ' .. getVocationInfo(energy.new_voc).name .. '.', cid)
talkState[talkUser] = 0

elseif energy.pay == true and doPlayerRemoveMoney(cid, energy.price) == TRUE then
doPlayerSetVocation(cid,energy.new_voc)
selfSay('Congratz, you\'re now a ' .. getVocationInfo(energy.new_voc).name .. '.', cid)
doSendMagicEffect(getPlayerPosition(cid), 12)
talkState[talkUser] = 0

else
selfSay('You don\'t have '..energy.price..' gold coins.', cid)
talkState[talkUser] = 0
end



elseif(msgcontains(msg, 'fire wizard') or msgcontains(msg, 'fire')) then
if(getPlayerVocation(cid) == 5) == FALSE then
selfSay('You\'re not a Wizard, therefore you can\'t become a ' .. getVocationInfo(fire.new_voc).name .. '.', cid)
talkState[talkUser] = 0

else
selfSay('Are you sure you want to become a ' .. getVocationInfo(fire.new_voc).name .. ' for '..fire.price..' gold coins? Remind that you can\'t change you choice later.', cid)
talkState[talkUser] = 2
end

elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 2) then
if fire.need_premium == true and not isPremium(cid) then
selfSay('You must be premium to become a ' .. getVocationInfo(fire.new_voc).name .. '.', cid)
talkState[talkUser] = 0

elseif fire.need_level == true and getPlayerLevel(cid) < fire.level then
selfSay('You must be at least level '.. fire.level ..' to become a ' .. getVocationInfo(fire.new_voc).name .. '.', cid)
talkState[talkUser] = 0

elseif fire.pay == true and doPlayerRemoveMoney(cid, fire.price) == TRUE then
doPlayerSetVocation(cid,fire.new_voc)
selfSay('Congratz, you\'re now a ' .. getVocationInfo(fire.new_voc).name .. '.', cid)
doSendMagicEffect(getPlayerPosition(cid), 12)
talkState[talkUser] = 0

else
selfSay('You don\'t have '..fire.price..' gold coins.', cid)
talkState[talkUser] = 0
end




elseif(msgcontains(msg, 'ice wizard') or msgcontains(msg, 'ice')) then
if(getPlayerVocation(cid) == 5) == FALSE then
selfSay('You\'re not a Wizard, therefore you can\'t become an ' .. getVocationInfo(ice.new_voc).name .. '.', cid)
talkState[talkUser] = 0

else
selfSay('Are you sure you want to become an ' .. getVocationInfo(ice.new_voc).name .. ' for '..ice.price..' gold coins? Remind that you can\'t change you choice later.', cid)
talkState[talkUser] = 3
end

elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 3) then
if ice.need_premium == true and not isPremium(cid) then
selfSay('You must be premium to become an ' .. getVocationInfo(ice.new_voc).name .. '.', cid)
talkState[talkUser] = 0

elseif ice.need_level == true and getPlayerLevel(cid) < ice.level then
selfSay('You must be at least level '.. ice.level ..' to become an ' .. getVocationInfo(ice.new_voc).name .. '.', cid)
talkState[talkUser] = 0

elseif ice.pay == true and doPlayerRemoveMoney(cid, ice.price) == TRUE then
doPlayerSetVocation(cid,ice.new_voc)
selfSay('Congratz, you\'re now an ' .. getVocationInfo(ice.new_voc).name .. '.', cid)
doSendMagicEffect(getPlayerPosition(cid), 12)
talkState[talkUser] = 0

else
selfSay('You don\'t have '..ice.price..' gold coins.', cid)
talkState[talkUser] = 0
end




end
return TRUE
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
Last edited:
Back
Top