mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9308] Fix SMSG_CHAR_ENUM opcode
Signed-off-by: Lightguard <Lightguard@tauri.hu>
This commit is contained in:
parent
0c8fccbd47
commit
cb33736a5a
4 changed files with 9 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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<uint32, QuestStatusData> QuestStatusMap;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9307"
|
||||
#define REVISION_NR "9308"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue