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

Solved Vocation info

EvilSkillz

Back
Joined
Jul 12, 2012
Messages
1,810
Solutions
2
Reaction score
386
Location
Egypt - Cairo
hello otland ..

in old tfs 0.4 there is vocation.lua file in libs folder that define vocations

in new tfs -- if i need to create as many vocations will it work without add new vocations in somewhere else

for example the known vocs are 4 with their prom..

i need to add many vocs and their prom and even higher prom ... so all i need to change vocations.xml or should i edit another files !
 
Solution
vocations.lua didn't define anything, it was just helper functions to check for a specific vocation type
all you have to change when you want to add a vocation is vocations.xml
if you need to check if someone is a specific vocation, use
Lua:
table.contains({vocid1, vocid2, ...}, player:getVocation():getId())
vocations.lua didn't define anything, it was just helper functions to check for a specific vocation type
all you have to change when you want to add a vocation is vocations.xml
if you need to check if someone is a specific vocation, use
Lua:
table.contains({vocid1, vocid2, ...}, player:getVocation():getId())
 
Solution
Back
Top