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

Creating more than 4 base vocations with ACC Maker

jaxNtrigs

New Member
Joined
Nov 3, 2013
Messages
31
Reaction score
1
So I had the issue of the account maker not recognizing the new vocations I made as it is set to 4 vocations to choose from when creating a character. After much searching I finally found out how to do this via lua script.

Step 1: Change your vocations.xml with new vocations.
Example.
vocationid1 = magician
vocationid2 =cleric
vocationid3 = archer
vocationid4 = warrior
vocationid5 = berserker
vocationid6 = rogue
vocationid7 = necromancer
vocationid8 = runist
vocationid9 = arcane magician / prevoc=1
vocationid10 = Glorified Cleric / prevoc2

etc.

Step 2:
Find the file 031-vocations.lua which is in your data folder.
Can type in search bar if your in your main folder that everything is in.

It should look like this.
Code:
function isSorcerer(cid)
    return isInArray({1, 5}, getPlayerVocation(cid))
end

function isDruid(cid)
    return isInArray({2, 6}, getPlayerVocation(cid))
end

function isPaladin(cid)
    return isInArray({3, 7}, getPlayerVocation(cid))
end

function isKnight(cid)
    return isInArray({4, 8}, getPlayerVocation(cid))
end

function isRookie(cid)
    return isInArray({0}, getPlayerVocation(cid))
end

Now basically all you need to do is change all those to correspond with your vocations.xml file.
Example.

Code:
function isMagician(cid)
    return isInArray({1, 5, 13}, getPlayerVocation(cid))
end

Thanks for reading, hope this helps!
 
Back
Top