Table: quest_template
...
Time in seconds that the player has to complete this quest.
RequiredClasses
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 allowed to get the quest. 0 means the quest is accessible for all races. Field value is a decimal value which must transform to an 8 bits binary in order to be understandable. In binary form, each different bit represents a different race. They're assigned as follows :
...
Mist of Pandaria and all Expansions after:
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.
...