I love that you update this with a solution when no other wants to give it or maybe don't have one. Thanks! :-)
Quote from: "mathex"I love that you update this with a solution when no other wants to give it or maybe don't have one. Thanks! :-)Hopefully more people take the example.
The thing about Humans and Orcs is called bitmasking.Mjollna did a pretty good guide on it in detail, quite handy to know, not just for WoW modding, but general developing knowledge.http://modcraft.io/viewtopic.php?f=26&t=846
uint32 start_level = getClass() != CLASS_DEATH_KNIGHT ? sWorld->getIntConfig(CONFIG_START_PLAYER_LEVEL) : sWorld->getIntConfig(CONFIG_START_HEROIC_PLAYER_LEVEL); if (m_session->HasPermission(RBAC_PERM_USE_START_GM_LEVEL)) { uint32 gm_level = sWorld->getIntConfig(CONFIG_START_GM_LEVEL); if (gm_level > start_level) start_level = gm_level; }
What do you even mean by "heroic"? Deathknights are completely like all others.
# StartHeroicPlayerLevel# Description: Staring level for heroic class characters after creation.# Range: 1-MaxPlayerLevel# Default: 55StartHeroicPlayerLevel = 200
uint32 start_level = getClass() != CLASS_DEATH_KNIGHT || CLASS_BATTLEMAGE ? sWorld->getIntConfig(CONFIG_START_PLAYER_LEVEL) : sWorld->getIntConfig(CONFIG_START_HEROIC_PLAYER_LEVEL); if (m_session->HasPermission(RBAC_PERM_USE_START_GM_LEVEL)) { uint32 gm_level = sWorld->getIntConfig(CONFIG_START_GM_LEVEL); if (gm_level > start_level) start_level = gm_level; }