Table: quest_template
...
Classes required to get the quest. 0 means the quest is available for all classes.
This field is a bitmask, you can combine class values. See ChrClasses.dbc
...
AllowableRaces
Races required to get the quest. 0 means the is available for all races. Field's value is a decimal value that must be transform to a 8 bits binary in order to be understandable. In binary form, each different bit represent a different race. They're assigned as follow :
...
Mist of Pandaria and after Expansions:
33555378 (33554432 + 256 + 128 + 32 + 16 + 2 + 512) = Horde
18875469 (16777216 + 2097152 + 1024 + 64 + 8 + 4 + 1) = Alliance
RequiredSkillId
Skill required to know to accept the quest. See SkillIne.dbc
0 means no skill is required.
...