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

[Request] VIP Vocations

exique

Natala-ot.com
Joined
Sep 28, 2008
Messages
1,673
Reaction score
25
Location
Sweden
This is a request for VIP Vocations.
Like a vocation that you can buy from a special npc :p
And so they could use all weapons.
HelP! :)
 
Mmmm.. i think it work with other promotion higher than elite knight, master sorcerer, etc...

Just create other promotions (other vocations with id 9, 10, 11, 12 - (id 9 from voc 5), (id 10 from voc 6).. etc)

later, copy your promotion npc and create other one... and change this line:
Lua:
local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'})
	node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 2, text = 'Congratulations! You are now promoted.'})
	node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})

promoion = 2, -- second promotion.
 
How do I change them and where? XD (The vocation ids and so one?)
Is it easy enough to be vocation.xml?
 
Last edited:
Ok let's go
In file vocations.xml, add: ( this is your next vocation to VIP )
Code:
	<vocation id="9" name="Epic Master Sorcerer" description="an epic master sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="5" lessloss="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="Epic Elder Druid" description="an epic elder druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="6" lessloss="5">
		<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="Epic Royal Paladin" description="an epic royal paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="7" lessloss="5">
		<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="Epic Elite Knight" description="an epic elite knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="8" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="8" lessloss="5">
		<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>

Next one, NPC to sell promotion to this vocations:
Code:
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

local node1 = keywordHandler:addKeyword({'promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'})
	node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 2, text = 'Congratulations! You are now promoted.'})
	node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})
	
npcHandler:addModule(FocusModule:new())
This is all. Good luck ; ]
 
data/xml/vocations.xml

after:
Lua:
	<vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="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>

Add: (for example, these are my own vocations)
Lua:
	<vocation id="9" name="Grand Master" description="a grand master" needpremium="1" gaincap="15" gainhp="7" gainmana="45" gainhpticks="6" gainhpamount="15" gainmanaticks="3" gainmanaamount="15" manamultiplier="1.1" attackspeed="1600" soulmax="200" gainsoulticks="21" fromvoc="5" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.1" magDamage="1.1" magHealingDamage="1.1" 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="Soul Wizard" description="a soul wizard" needpremium="1" gaincap="15" gainhp="7" gainmana="45" gainhpticks="6" gainhpamount="15" gainmanaticks="3" gainmanaamount="15" manamultiplier="1.1" attackspeed="1600" soulmax="200" gainsoulticks="21" fromvoc="6" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.1" magDamage="1.1" magHealingDamage="1.1" 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="Bullseye" description="a bullseye" needpremium="1" gaincap="30" gainhp="15" gainmana="21" gainhpticks="4" gainhpamount="15" gainmanaticks="4" gainmanaamount="15" manamultiplier="1.4" attackspeed="1600" soulmax="200" gainsoulticks="21" fromvoc="7" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.1" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.1" 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="Blade Master" description="a blade master" needpremium="1" gaincap="37" gainhp="21" gainmana="7" gainhpticks="4" gainhpamount="15" gainmanaticks="6" gainmanaamount="15" manamultiplier="3.0" attackspeed="1600" soulmax="200" gainsoulticks="21" fromvoc="8" lessloss="30">
		<formula meleeDamage="1.1" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.1" 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>

Code:
vocation id="9" --id vocation
name="Grand Master" --vocation name
description="a grand master" --description for vocation (when you click a player -> You see Test(150). He is a [B]grand master[/B])
needprem="1" --1 yes, 0 no
fromvoc=5" --vocation that will be promoted (5 = Master Sorcerer, so.. grand master is the promotion of master sorcerer)
 
Use for vocations.
Example in spells:
Code:
	<instant name="Whirlwind Throw" words="exori hur" lvl="15" mana="40" prem="1" range="5" needtarget="1" blockwalls="1" needweapon="1" exhaustion="2000" needlearn="0" event="script" value="attack/whirlwind throw.lua">
		<vocation name="Here name your VIP Vocation"/>
	</instant>
 
I need to do that for each spell + weapon + runes?! :D

It's easy, just search in notepad++

example:
Sorcerer -> Master Sorcerer -> VIP Sorcerer
Druid -> Elder Druid -> VIP Druid
Paladin -> Royal Paladin -> VIP Paladin
Knight -> Elite Knight -> VIP Knight.

To make all sorcerer spells working for VIP sorcerers,
Notepad++ -> ctrl+f -> replace
Lua:
 <vocation name="Master Sorcerer"/>

with
Lua:
 <vocation name="Master Sorcerer"/>
<vocation name="VIP Sorcerer"/>
All sorcerer spells will now works for VIP sorcerers.
And do the same with druid, knight, paladin.
 
It's easy, just search in notepad++

example:
Sorcerer -> Master Sorcerer -> VIP Sorcerer
Druid -> Elder Druid -> VIP Druid
Paladin -> Royal Paladin -> VIP Paladin
Knight -> Elite Knight -> VIP Knight.

To make all sorcerer spells working for VIP sorcerers,
Notepad++ -> ctrl+f -> replace
Lua:
 <vocation name="Master Sorcerer"/>

with
Lua:
 <vocation name="Master Sorcerer"/>
<vocation name="VIP Sorcerer"/>
All sorcerer spells will now works for VIP sorcerers.
And do the same with druid, knight, paladin.

Didnt work to do that way xd I can only fit on line
 
Back
Top