[DiscordArchive] could practically copy this player.cpp into mine so that the bug should be gone?
[DiscordArchive] could practically copy this player.cpp into mine so that the bug should be gone?
Archived author: Krutok • Posted: 2022-07-31T13:49:44.392000+00:00
Original source
could practically copy this player.cpp into mine so that the bug should be gone?
Archived author: Tea • Posted: 2022-07-31T13:51:45.489000+00:00
Original source
if you copy the entire file, you will break all other custom changes that fork has on top of our code
Archived author: Krutok • Posted: 2022-07-31T13:55:03.723000+00:00
Original source
No, I just mean the one line of code:
change:
if (m_session->HasPermission(rbac::RBAC_PERM_USE_START_GM_LEVEL))
{
uint32 gm_level = std::max(sWorld->getIntConfig(CONFIG_START_GM_LEVEL), sWorld->getIntConfig(CONFIG_START_DEATH_KNIGHT_PLAYER_LEVEL));
if (gm_level > start_level)
start_level = gm_level;
}
with
if (m_session->HasPermission(rbac::RBAC_PERM_USE_START_GM_LEVEL))
{
uint32 gm_level = GetClass() != CLASS_DEATH_KNIGHT
? sWorld->getIntConfig(CONFIG_START_GM_LEVEL)
: std::max(sWorld->getIntConfig(CONFIG_START_GM_LEVEL), sWorld->getIntConfig(CONFIG_START_DEATH_KNIGHT_PLAYER_LEVEL));
if (gm_level > start_level)
start_level = gm_level;
}
Archived author: Tea • Posted: 2022-07-31T13:55:20.040000+00:00
Original source
yes, you should be able to change just that line
Archived author: Krutok • Posted: 2022-07-31T13:56:32.672000+00:00
Original source
this should not destroy the custom codes
Archived author: Krutok • Posted: 2022-07-31T14:05:27.743000+00:00
Original source
fix works new chars start at level 1
Archived author: Krutok • Posted: 2022-07-31T14:20:22.871000+00:00
Original source
but i have another question, why can't you create accounts in the game but only in the console?