Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Смердокрыл on November 08, 2015, 11:38:26 am

Title: [QUESTION] Make races/classes unavailable
Post by: Смердокрыл on November 08, 2015, 11:38:26 am
Hey!
I want to make Orcs, Undead, Draenei and Worgen unavailable for players to create. I tried setting their expansion requirement in ChrRaces.dbc to 4, but when I try to create a new char I get this:
[attachment=0:ng9f8be5]WoWScrnShot_110815_133744.jpg[/attachment:ng9f8be5]
Title: Re: [QUESTION] Make races/classes unavailable
Post by: Amaroth on November 08, 2015, 12:29:09 pm
There should be mask for setting race IDs which are to be blocked in worldserver config file.

Another, a little hacky but still working way is to modify world.playercreateinfo DB table. Set coordinates for new characters of race/class combinations to some dungeon. Players won't be able to create such characters, they will get "Error creating character."
Title: Re: [QUESTION] Make races/classes unavailable
Post by: Смердокрыл on November 08, 2015, 01:11:12 pm
Quote from: "Amaroth"
There should be mask for setting race IDs which are to be blocked in worldserver config file.

Another, a little hacky but still working way is to modify world.playercreateinfo DB table. Set coordinates for new characters of race/class combinations to some dungeon. Players won't be able to create such characters, they will get "Error creating character."

I prefer the not-hacky way, but thanks for the info)
I found the needed parameters in worldserver.conf. Do I still need to change stuff in ChrRaces.dbc?
Title: Re: [QUESTION] Make races/classes unavailable
Post by: Scytheria23 on November 11, 2015, 08:28:15 am
I'd suggest looking for a guide to CREATING new race/class combos (there are loads of these around).  All you want to do is the reverse, so these will point you to the files you need to modify.
Title: Re: [QUESTION] Make races/classes unavailable
Post by: Amaroth on November 11, 2015, 01:15:09 pm
Quote from: "Scytheria23"
I'd suggest looking for a guide to CREATING new race/class combos (there are loads of these around).  All you want to do is the reverse, so these will point you to the files you need to modify.
In fact a very good advice. I like it :).
Title: Re: [QUESTION] Make races/classes unavailable
Post by: Ascathos on November 13, 2015, 03:34:23 am
Charbaseinfo. It's the dbc containing possible race/class combinations.
Title: Re: [QUESTION] Make races/classes unavailable
Post by: Amaroth on November 13, 2015, 09:47:49 am
Quote from: "Смердокрыл"
Hey!
I want to make Orcs, Undead, Draenei and Worgen unavailable for players to create.
I supposed he doesn't want them entirely deleted from system, just make them blocked for players, but not for GMs/himself.
Title: Re: [QUESTION] Make races/classes unavailable
Post by: Смердокрыл on November 13, 2015, 12:57:39 pm
Quote from: "Amaroth"
There should be mask for setting race IDs which are to be blocked in worldserver config file
I used this and it does, indeed, block the needed races, but they do not appear grey in the char creation menu, which is what I want.

Also, I wanna rename a race. Not the technical name, meaning one used in helmet models, race models, etc, but the one you see in game. Where do I change that?
Title: Re: [QUESTION] Make races/classes unavailable
Post by: Amaroth on November 13, 2015, 02:06:27 pm
If you really want to have those race/class combinations entirely impossible to be created for whoever who has your patch, then yes, the most clean (and graying :P) method is deleting those race/class combinations from CharBaseInfo.dbc. If you want to have for instance orcs non-playable, just delete all rows with 2 (race ID) in first field - there will be no classes for orcs available and thus orcs won't be available too. Beware, MyDBCEditor can't open this DBC, you need to use Taliis (or maybe some other alternative editor for DBCs).

About names of races, check ChrRaces.dbc. I suppose its pretty obvious that names of races should be stored in DBC shich has "races" in name. Whenever you want to know what is done where, try to open folder with all blizzlike DBCs and search it for all DBCs which have name which says that they might have something to do with things you want to change. Open those DBCs, browse data in them, look into documentation. I doubt you are really doing this when you are asking things like how to change race's name. I don't want to discourage you from asking when you don't know something - it simply saves you time you are otherwise spending waiting for replies ;).
Title: Re: [QUESTION] Make races/classes unavailable
Post by: Смердокрыл on November 13, 2015, 05:14:40 pm
Quote from: "Amaroth"
the most clean (and graying :P) method is deleting those race/class combinations from CharBaseInfo.dbc. If you want to have for instance orcs non-playable, just delete all rows with 2 (race ID) in first field - there will be no classes for orcs available and thus orcs won't be available too.

I tried just setting the expansion requirement for these races to be higher than any account has, but I get some weird xml/lua errors in the client when creating a char.

Quote from: "Amaroth"
About names of races, check ChrRaces.dbc
Tried. Same, "weird xml/lua errors in the client when creating a char".
Title: Re: [QUESTION] Make races/classes unavailable
Post by: noc on November 15, 2015, 10:54:11 am
Quote from: "Смердокрыл"
Hey!
I want to make Orcs, Undead, Draenei and Worgen unavailable for players to create. I tried setting their expansion requirement in ChrRaces.dbc to 4, but when I try to create a new char I get this:
[attachment=0:13eh4oc2]WoWScrnShot_110815_133744.jpg[/attachment:13eh4oc2]

If you want to simply remove the races better change the CharacterCreate.xml accordingly. If the race can not be selected will not be created.

Si vous souhaitez suprimer les races mieux vaut modifier le CharacterCreate.xml en consequence. Si la race ne peut etre selectionnée elle ne sera pas créée.