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

Lua Different Attributes on Items Dependant on vocation

SnowFox

New Member
Joined
May 18, 2008
Messages
264
Reaction score
0
Is it possible to make A item have differerent attributes for EACH vocation?
An example:
So it might give +5 swording if their a knight, but if their a sorcerer it will give +3 magic?
 
too bad that if item is scripted attributes from abilities struct doesnt work

you can transform to proper copy onEquip, each copy have attributes for one vocation
but I dont like this solution
 
it be cool if you could source edit and make it that in items.xml, there were a new type of attribute like this:
XML:
	<item id="2197" article="a" name="stone skin amulet">
                <voc_att key="sorcerer" key2="magiclevel" value="3" />
or
                <attribute voc="knight" key="skillSword" value="5" />
		<attribute key="weight" value="760" />
		<attribute key="slotType" value="necklace" />
		<attribute key="charges" value="5" />
		<attribute key="showcharges" value="1" />
		<attribute key="absorbPercentPhysical" value="80" />
		<attribute key="absorbPercentDeath" value="80" />
		<attribute key="showattributes" value="1" />
	</item>
Attribute>Voc>Knight-Sorcerer-Paladin-Druid-EliteKnight-MasterSorcerer-RoyalPaladin-ElderDruid
 
Last edited:
onequip do script which checks voc and adds skill depending on voc
ondeequip it does the opposite, it removes the bonus skills

simple.
 
Back
Top