• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Enable Only One Class?

Status
Not open for further replies.

NotHawthorne

Insane Member
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?
 

Jameyboor

Retired Staff
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.
 

NotHawthorne

Insane Member
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

iX4W8nb.jpg


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.
 
Status
Not open for further replies.
Top