Forum > Serverside Modding
[TrinityCore 335] How To Make A Class Heroic?
(1/2) > >>
spiderwaseem:
Hello everyone!
I've created a new class and I was wondering, how is it possible to set the class as a heroic class? I'd like to do this for 2 reasons:
1) The class is supposed to be a Heroic Class, special. 2) I need to set a level limitation to be able to play the class.
My main goal is somehow to make this heroic class (Class ID: 12) different from the DK heroic because DK requires a level 55, while my new class will require another level 90 character in order to play or create the class.
Is this a client-side or server-side, or maybe even both? I'm running on TrinityCore 3.3.5a. If anyone has any ideas, it's appreciated.
Thanks, Deathorous.
Ascathos:
Heroic classes are basically handled server side with client being told you shall not play. So server is your first way to go. Basically copy paste everything that dk does.
schlumpf:
Client knows about stuff though to forbid creation etc.
Ascathos:
A ChrClasses flag iirc, ye
spiderwaseem:
Alright, that makes it easier to determine what to do in a way. However, any ideas where I should be looking into the core in specific?
The only file I could think of is player.cpp. Doing a quick search to "Heroic", I found some interesting results such as the following:
--- Code: --- // set starting level 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::RBAC_PERM_USE_START_GM_LEVEL)) { uint32 gm_level = sWorld->getIntConfig(CONFIG_START_GM_LEVEL); if (gm_level > start_level) start_level = gm_level; }
SetUInt32Value(UNIT_FIELD_LEVEL, start_level);
InitRunes();
SetUInt32Value(PLAYER_FIELD_COINAGE, sWorld->getIntConfig(CONFIG_START_PLAYER_MONEY)); SetHonorPoints(sWorld->getIntConfig(CONFIG_START_HONOR_POINTS)); SetArenaPoints(sWorld->getIntConfig(CONFIG_START_ARENA_POINTS));
--- End code ---
There's a lot more but this would be very long. Anyhow, looking into the code above it also specifies something about Death Knights in resemblance to it being a heroic class on a starting level. I'm not exactly sure how to do this yet, but I feel like I could be getting somewhere.
Any other files beside player.cpp you believe I should be looking into?
Thanks for the responses! :)
Navigation
[0] Message Index
[#] Next page
|