This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] Make races/classes unavailable  (Read 1868 times)

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
[QUESTION] Make races/classes unavailable
« 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]
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION] Make races/classes unavailable
« Reply #1 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."
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Make races/classes unavailable
« Reply #2 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Scytheria23

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 49
    • View Profile
Re: [QUESTION] Make races/classes unavailable
« Reply #3 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION] Make races/classes unavailable
« Reply #4 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 :).
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Make races/classes unavailable
« Reply #5 on: November 13, 2015, 03:34:23 am »
Charbaseinfo. It's the dbc containing possible race/class combinations.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION] Make races/classes unavailable
« Reply #6 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Make races/classes unavailable
« Reply #7 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION] Make races/classes unavailable
« Reply #8 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 ;).
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Make races/classes unavailable
« Reply #9 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".
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

noc

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 121
    • View Profile
Re: [QUESTION] Make races/classes unavailable
« Reply #10 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.