diff --git a/src/game/CharacterHandler.cpp b/src/game/CharacterHandler.cpp index d3b54a453..33de7950f 100644 --- a/src/game/CharacterHandler.cpp +++ b/src/game/CharacterHandler.cpp @@ -462,6 +462,8 @@ void WorldSession::HandleCharCreateOpcode( WorldPacket & recv_data ) if ((have_same_race && skipCinematics == CINEMATICS_SKIP_SAME_RACE) || skipCinematics == CINEMATICS_SKIP_ALL) pNewChar->setCinematic(1); // not show intro + pNewChar->SetAtLoginFlag(AT_LOGIN_FIRST); // First login + // Player created, save it now pNewChar->SaveToDB(); charcount += 1; @@ -774,6 +776,9 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder *holder) SendNotification(LANG_RESET_TALENTS); } + if (pCurrChar->HasAtLoginFlag(AT_LOGIN_FIRST)) + pCurrChar->RemoveAtLoginFlag(AT_LOGIN_FIRST); + // show time before shutdown if shutdown planned. if(sWorld.IsShutdowning()) sWorld.ShutdownMsg(true,pCurrChar); diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 836db1ecf..8cfe60a8a 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -1507,7 +1507,8 @@ bool Player::BuildEnumData( QueryResult * result, WorldPacket * p_data ) *p_data << uint32(char_flags); // character flags // character customize flags *p_data << uint32(atLoginFlags & AT_LOGIN_CUSTOMIZE ? CHAR_CUSTOMIZE_FLAG_CUSTOMIZE : CHAR_CUSTOMIZE_FLAG_NONE); - *p_data << uint8(1); // unknown + // First login + *p_data << uint8(atLoginFlags & AT_LOGIN_FIRST ? 1 : 0); // Pets info { diff --git a/src/game/Player.h b/src/game/Player.h index e1dc55e85..398ff21aa 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -572,6 +572,7 @@ enum AtLoginFlags AT_LOGIN_RESET_TALENTS = 0x04, AT_LOGIN_CUSTOMIZE = 0x08, AT_LOGIN_RESET_PET_TALENTS = 0x10, + AT_LOGIN_FIRST = 0x20, }; typedef std::map QuestStatusMap; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 1ba847847..36f7d52df 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9307" + #define REVISION_NR "9308" #endif // __REVISION_NR_H__