View Full Version : Enable Only One Class?

10-17-2014, 06:07 AM
Is there a way to restrict players to creating only one class? There's a lot of threads about increasing the max class count, but if I were to only allow one class to be played, how would I go about that?

10-17-2014, 08:00 AM
This can easily be done server-side by removing entries in the 'playercreateinfo' table, if you want it to also show up nicely client-side you either have to edit GlueXML's charactercreate.lua/xml or edit charbaseinfo.dbc and distribute a patch.

10-17-2014, 02:32 PM
Also it's can be in world configuration.

10-17-2014, 09:25 PM
Figured it out, and I'm using cMaNGOS 3.3.5a.

>ChrClasses.dbc in server files unchanged
>ChrClasses.dbc in my patch-T.mpq has had all rows except for Warrior's deleted
>CharacterCreate.lua has had MAX_CLASSES_PER_RACE set to 1
>CharacterCreate.xml has had all ClassButtons except for 1 deleted, and ClassButton 1 aligned to x=0, y=-483
>shareddefines.h in src\game has had all of the entries except for Warrior under CLASSMASK_PLAYABLE deleted


I also renamed Warrior to Adventurer, replaced UI-CHARACTERCREATE.blp (i think thats the name, im away from the computer atm) with one that only holds a single custom icon where Warrior's was placed, and set the resource type in both ChrClasses.dbc files to 0, making them use mana.

10-17-2014, 11:30 PM
Thanks for sharing your solution for future reference, marking.