本文整理汇总了C++中Transporter::AddPlayer方法的典型用法代码示例。如果您正苦于以下问题:C++ Transporter::AddPlayer方法的具体用法?C++ Transporter::AddPlayer怎么用?C++ Transporter::AddPlayer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Transporter
的用法示例。
在下文中一共展示了Transporter::AddPlayer方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FullLogin
void WorldSession::FullLogin(Player * plr)
{
Log.Debug("WorldSession", "Fully loading player %u", plr->GetLowGUID());
SetPlayer(plr);
m_MoverWoWGuid.Init(plr->GetGUID());
// copy to movement array
movement_packet[0] = m_MoverWoWGuid.GetNewGuidMask();
memcpy(&movement_packet[1], m_MoverWoWGuid.GetNewGuid(), m_MoverWoWGuid.GetNewGuidLen());
#ifndef USING_BIG_ENDIAN
StackWorldPacket<20> datab(CMSG_DUNGEON_DIFFICULTY);
#else
WorldPacket datab(CMSG_DUNGEON_DIFFICULTY, 20);
#endif
datab << plr->iInstanceType;
datab << uint32(0x01);
datab << uint32(0x00);
SendPacket(&datab);
/* world preload */
packetSMSG_LOGIN_VERIFY_WORLD vwpck;
vwpck.MapId = plr->GetMapId();
vwpck.O = plr->GetOrientation();
vwpck.X = plr->GetPositionX();
vwpck.Y = plr->GetPositionY();
vwpck.Z = plr->GetPositionZ();
OutPacket( SMSG_LOGIN_VERIFY_WORLD, sizeof(packetSMSG_LOGIN_VERIFY_WORLD), &vwpck );
// send voicechat state - active/inactive
/*
{SERVER} Packet: (0x03C7) UNKNOWN PacketSize = 2
|------------------------------------------------|----------------|
|00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |0123456789ABCDEF|
|------------------------------------------------|----------------|
|02 01 |.. |
-------------------------------------------------------------------
*/
#ifdef VOICE_CHAT
datab.Initialize(SMSG_VOICE_SYSTEM_STATUS);
datab << uint8(2) << uint8(sVoiceChatHandler.CanUseVoiceChat() ? 1 : 0);
SendPacket(&datab);
#else
datab.Initialize(SMSG_VOICE_SYSTEM_STATUS);
datab << uint8(2) << uint8(0);
#endif
plr->UpdateAttackSpeed();
/*if(plr->getLevel()>70)
plr->SetUInt32Value(UNIT_FIELD_LEVEL,70);*/
// enable trigger cheat by default
plr->triggerpass_cheat = HasGMPermissions();
// Make sure our name exists (for premade system)
PlayerInfo * info = objmgr.GetPlayerInfo(plr->GetLowGUID());
if(info == 0)
{
info = new PlayerInfo;
info->cl = plr->getClass();
info->gender = plr->getGender();
info->guid = plr->GetLowGUID();
info->name = strdup(plr->GetName());
info->lastLevel = plr->getLevel();
info->lastOnline = UNIXTIME;
info->lastZone = plr->GetZoneId();
info->race = plr->getRace();
info->team = plr->GetTeam();
info->guild=NULL;
info->guildRank=NULL;
info->guildMember=NULL;
info->m_Group=0;
info->subGroup=0;
objmgr.AddPlayerInfo(info);
}
plr->m_playerInfo = info;
if(plr->m_playerInfo->guild)
{
plr->m_uint32Values[PLAYER_GUILDID] = plr->m_playerInfo->guild->GetGuildId();
plr->m_uint32Values[PLAYER_GUILDRANK] = plr->m_playerInfo->guildRank->iId;
}
info->m_loggedInPlayer = plr;
// account data == UI config
#ifndef USING_BIG_ENDIAN
StackWorldPacket<128> data(SMSG_ACCOUNT_DATA_MD5);
#else
WorldPacket data(SMSG_ACCOUNT_DATA_MD5, 128);
#endif
MD5Hash md5hash;
for (int i = 0; i < 8; i++)
{
AccountDataEntry* acct_data = GetAccountData(i);
if (!acct_data->data)
{
//.........这里部分代码省略.........
示例2: FullLogin
void WorldSession::FullLogin(Player* plr)
{
DEBUG_LOG("WorldSession", "Fully loading player %u", plr->GetLowGUID());
SetPlayer(plr);
m_MoverWoWGuid.Init(plr->GetGUID());
// copy to movement array
plr->movement_packet[0] = m_MoverWoWGuid.GetNewGuidMask();
memcpy(&plr->movement_packet[1], m_MoverWoWGuid.GetNewGuid(), m_MoverWoWGuid.GetNewGuidLen());
WorldPacket datab(MSG_SET_DUNGEON_DIFFICULTY, 20);
datab << plr->iInstanceType;
datab << uint32(0x01);
datab << uint32(0x00);
SendPacket(&datab);
WorldPacket datac(MSG_SET_RAID_DIFFICULTY, 20);
datac << plr->iRaidType;
datac << uint32(0x01);
datac << uint32(0x00);
SendPacket(&datac);
// Send first line of MOTD
WorldPacket datat(SMSG_MOTD, sizeof(sWorld.GetMotd()) + 4);
datat << uint32(0x04);
datat << sWorld.GetMotd();
SendPacket(&datat);
/* world preload */
packetSMSG_LOGIN_VERIFY_WORLD vwpck;
vwpck.MapId = plr->GetMapId();
vwpck.O = plr->GetOrientation();
vwpck.X = plr->GetPositionX();
vwpck.Y = plr->GetPositionY();
vwpck.Z = plr->GetPositionZ();
OutPacket( SMSG_LOGIN_VERIFY_WORLD, sizeof(packetSMSG_LOGIN_VERIFY_WORLD), &vwpck );
//////////////////////////////////////////////////////////////////////////////////////////////////////
// send voicechat state - active/inactive
//
// {SERVER} Packet: (0x03C7) UNKNOWN PacketSize = 2
// |------------------------------------------------|----------------|
// |00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |0123456789ABCDEF|
// |------------------------------------------------|----------------|
// |02 01 |.. |
// -------------------------------------------------------------------
//
//
// Old packetdump is OLD. This is probably from 2.2.0 (that was the patch when it was added to wow)!
//
//////////////////////////////////////////////////////////////////////////////////////////////////////
plr->UpdateAttackSpeed();
// Make sure our name exists (for premade system)
PlayerInfo * info = objmgr.GetPlayerInfo(plr->GetLowGUID());
if(info == NULL)
{
info = new PlayerInfo;
memset(info, 0, sizeof(PlayerInfo));
info->cl = plr->getClass();
info->gender = plr->getGender();
info->guid = plr->GetLowGUID();
info->name = strdup(plr->GetName());
info->lastLevel = plr->getLevel();
info->lastOnline = UNIXTIME;
info->lastZone = plr->GetZoneId();
info->race = plr->getRace();
info->team = plr->GetTeam();
objmgr.AddPlayerInfo(info);
}
plr->m_playerInfo = info;
if(plr->m_playerInfo->guild)
{
plr->m_uint32Values[PLAYER_GUILDID] = plr->m_playerInfo->guild->GetGuildId();
plr->m_uint32Values[PLAYER_GUILDRANK] = plr->m_playerInfo->guildRank->iId;
}
for(uint32 z = 0; z < NUM_ARENA_TEAM_TYPES; ++z)
{
if(_player->m_playerInfo->arenaTeam[z] != NULL)
{
_player->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (z*7), _player->m_playerInfo->arenaTeam[z]->m_id);
if(_player->m_playerInfo->arenaTeam[z]->m_leader == _player->GetLowGUID())
_player->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (z*7) + 1, 0);
else
_player->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (z*7) + 1, 1);
}
}
info->m_loggedInPlayer = plr;
// account data == UI config
if(sWorld.m_useAccountData)
{
WorldPacket data(SMSG_ACCOUNT_DATA_TIMES, 4+1+4+8*4);
MD5Hash md5hash;
data << uint32(UNIXTIME) << uint8(1) << uint32(0xEA);
for (int i = 0; i < 8; i++)
//.........这里部分代码省略.........
示例3: FullLogin
//.........这里部分代码省略.........
datab << uint8(2) << uint8(sVoiceChatHandler.CanUseVoiceChat() ? 1 : 0);
SendPacket(&datab);
#else
datab.Initialize(SMSG_VOICE_SYSTEM_STATUS);
datab << uint8(2) << uint8(0);
#endif
plr->UpdateAttackSpeed();
/*if(plr->getLevel()>PLAYER_LEVEL_CAP_70)
plr->SetUInt32Value(UNIT_FIELD_LEVEL,PLAYER_LEVEL_CAP_70);*/
// enable trigger cheat by default
// plr->TriggerpassCheat = HasGMPermissions();
// Make sure our name exists (for premade system)
PlayerInfo * info = objmgr.GetPlayerInfo(plr->GetLowGUID());
if(info == 0)
{
info = new PlayerInfo;
info->cl = plr->getClass();
info->gender = plr->getGender();
info->guid = plr->GetLowGUID();
info->name = strdup(plr->GetName());
info->lastLevel = plr->getLevel();
info->lastOnline = UNIXTIME;
info->lastZone = plr->GetZoneId();
info->race = plr->getRace();
info->team = plr->GetTeam();
info->guild=NULL;
info->guildRank=NULL;
info->guildMember=NULL;
info->m_Group=0;
info->subGroup=0;
objmgr.AddPlayerInfo(info);
}
plr->m_playerInfo = info;
if(plr->m_playerInfo->guild)
{
plr->m_uint32Values[PLAYER_GUILDID] = plr->m_playerInfo->guild->GetGuildId();
plr->m_uint32Values[PLAYER_GUILDRANK] = plr->m_playerInfo->guildRank->iId;
}
info->m_loggedInPlayer = plr;
// account data == UI config
#ifndef USING_BIG_ENDIAN
StackWorldPacket<128> data(SMSG_ACCOUNT_DATA_MD5);
#else
WorldPacket data(SMSG_ACCOUNT_DATA_MD5, 128);
#endif
MD5Hash md5hash;
for (int i = 0; i < 8; i++)
{
AccountDataEntry* acct_data = GetAccountData(i);
if (!acct_data->data)
{
data << uint64(0) << uint64(0); // Nothing.
continue;
}
md5hash.Initialize();
md5hash.UpdateData((const uint8*)acct_data->data, acct_data->sz);
md5hash.Finalize();
示例4: FullLogin
void WorldSession::FullLogin(Player* plr)
{
sLog.Debug("WorldSession", "Fully loading player %u", plr->GetLowGUID());
SetPlayer(plr);
m_MoverWoWGuid.Init(plr->GetGUID());
/* world preload */
packetSMSG_LOGIN_VERIFY_WORLD vwpck;
vwpck.MapId = plr->GetMapId();
vwpck.O = plr->GetOrientation();
vwpck.X = plr->GetPositionX();
vwpck.Y = plr->GetPositionY();
vwpck.Z = plr->GetPositionZ();
OutPacket( SMSG_LOGIN_VERIFY_WORLD, sizeof(packetSMSG_LOGIN_VERIFY_WORLD), &vwpck );
// send voicechat state - active/inactive
/*
{SERVER} Packet: (0x03C7) UNKNOWN PacketSize = 2
|------------------------------------------------|----------------|
|00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |0123456789ABCDEF|
|------------------------------------------------|----------------|
|02 01 |.. |
-------------------------------------------------------------------
*/
WorldPacket datab(SMSG_FEATURE_SYSTEM_STATUS, 2);
datab << uint8(2) << uint8(0);
SendPacket(&datab);
datab.Initialize(SMSG_LEARNED_DANCE_MOVES, 8);
datab << uint32(0);
datab << uint32(0);
SendPacket(&datab);
plr->UpdateStats();
// Anti max level hack.
if(sWorld.LevelCap_Custom_All && (plr->getLevel() > sWorld.LevelCap_Custom_All))
plr->SetUInt32Value(UNIT_FIELD_LEVEL, sWorld.LevelCap_Custom_All);
// Enable certain GM abilities on login.
if(HasGMPermissions())
{
plr->bGMTagOn = true;
plr->m_isGmInvisible = true;
plr->m_invisible = true;
plr->bInvincible = true;
if(CanUseCommand('z'))
{
plr->SetFlag(PLAYER_FLAGS, PLAYER_FLAG_DEVELOPER);
plr->triggerpass_cheat = true; // Enable for admins automatically.
}
else
plr->SetFlag(PLAYER_FLAGS, PLAYER_FLAG_GM);
}
// Make sure our name exists (for premade system)
PlayerInfo * info = objmgr.GetPlayerInfo(plr->GetLowGUID());
if(info == NULL)
{
info = new PlayerInfo;
memset(info, 0, sizeof(PlayerInfo));
info->_class = plr->getClass();
info->gender = plr->getGender();
info->guid = plr->GetLowGUID();
info->name = strdup(plr->GetName());
info->lastLevel = plr->getLevel();
info->lastOnline = UNIXTIME;
info->lastZone = plr->GetZoneId();
info->race = plr->getRace();
info->team = plr->GetTeam();
objmgr.AddPlayerInfo(info);
}
plr->m_playerInfo = info;
if(plr->m_playerInfo->GuildId)
{
plr->m_uint32Values[PLAYER_GUILDID] = plr->m_playerInfo->GuildId;
plr->m_uint32Values[PLAYER_GUILDRANK] = plr->m_playerInfo->GuildRank;
}
for(uint32 z = 0; z < NUM_ARENA_TEAM_TYPES; ++z)
{
if(plr->m_playerInfo->arenaTeam[z] != NULL)
{
plr->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (z*6), plr->m_playerInfo->arenaTeam[z]->m_id);
if(plr->m_playerInfo->arenaTeam[z]->m_leader == plr->GetLowGUID())
plr->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (z*6) + 1, 0);
else
plr->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (z*6) + 1, 1);
}
}
info->m_loggedInPlayer = plr;
// account data == UI config
if(sWorld.m_useAccountData)
{
WorldPacket data(SMSG_ACCOUNT_DATA_TIMES, 4+1+4+8*4);
MD5Hash md5hash;
//.........这里部分代码省略.........
示例5: FullLogin
void WorldSession::FullLogin(Player* plr)
{
DEBUG_LOG("WorldSession", "Fully loading player %u", plr->GetLowGUID());
SetPlayer(plr);
m_MoverWoWGuid.Init(plr->GetGUID());
// copy to movement array
plr->movement_packet[0] = m_MoverWoWGuid.GetNewGuidMask();
memcpy(&plr->movement_packet[1], m_MoverWoWGuid.GetNewGuid(), m_MoverWoWGuid.GetNewGuidLen());
/* world preload */
packetSMSG_LOGIN_VERIFY_WORLD vwpck;
vwpck.MapId = plr->GetMapId();
vwpck.O = plr->GetOrientation();
vwpck.X = plr->GetPositionX();
vwpck.Y = plr->GetPositionY();
vwpck.Z = plr->GetPositionZ();
OutPacket( SMSG_LOGIN_VERIFY_WORLD, sizeof(packetSMSG_LOGIN_VERIFY_WORLD), &vwpck );
// send voicechat state - active/inactive
/*
{SERVER} Packet: (0x03C7) UNKNOWN PacketSize = 2
|------------------------------------------------|----------------|
|00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |0123456789ABCDEF|
|------------------------------------------------|----------------|
|02 01 |.. |
-------------------------------------------------------------------
*/
WorldPacket datab;
datab.Initialize(SMSG_FEATURE_SYSTEM_STATUS);
datab << uint8(2) << uint8(0);
SendPacket(&datab);
datab.Initialize(SMSG_LEARNED_DANCE_MOVES);
datab << uint32(0);
datab << uint32(0);
SendPacket(&datab);
plr->UpdateAttackSpeed();
// Anti max level hack.
if(sWorld.LevelCap_Custom_All && (plr->getLevel() > sWorld.LevelCap_Custom_All))
plr->SetUInt32Value(UNIT_FIELD_LEVEL, sWorld.LevelCap_Custom_All);
// Enable certain GM abilities on login.
if(HasGMPermissions())
{
plr->bGMTagOn = true;
plr->m_isGmInvisible = true;
plr->m_invisible = true;
if(CanUseCommand('z'))
{
plr->SetFlag(PLAYER_FLAGS, PLAYER_FLAG_DEVELOPER);
plr->triggerpass_cheat = true; // Enable for admins automatically.
}
else
plr->SetFlag(PLAYER_FLAGS, PLAYER_FLAG_GM);
}
// Make sure our name exists (for premade system)
PlayerInfo * info = objmgr.GetPlayerInfo(plr->GetLowGUID());
if(info == NULL)
{
info = new PlayerInfo;
memset(info, 0, sizeof(PlayerInfo));
info->cl = plr->getClass();
info->gender = plr->getGender();
info->guid = plr->GetLowGUID();
info->name = strdup(plr->GetName());
info->lastLevel = plr->getLevel();
info->lastOnline = UNIXTIME;
info->lastZone = plr->GetZoneId();
info->race = plr->getRace();
info->team = plr->GetTeam();
objmgr.AddPlayerInfo(info);
}
plr->m_playerInfo = info;
if(plr->m_playerInfo->guild)
{
plr->m_uint32Values[PLAYER_GUILDID] = plr->m_playerInfo->guild->GetGuildId();
plr->m_uint32Values[PLAYER_GUILDRANK] = plr->m_playerInfo->guildRank->iId;
}
for(uint32 z = 0; z < NUM_ARENA_TEAM_TYPES; ++z)
{
if(plr->m_playerInfo->arenaTeam[z] != NULL)
{
plr->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (z*6), plr->m_playerInfo->arenaTeam[z]->m_id);
if(plr->m_playerInfo->arenaTeam[z]->m_leader == plr->GetLowGUID())
plr->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (z*6) + 1, 0);
else
plr->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (z*6) + 1, 1);
}
}
info->m_loggedInPlayer = plr;
// account data == UI config
//.........这里部分代码省略.........
示例6: FullLogin
void WorldSession::FullLogin(Player* plr)
{
DEBUG_LOG("WorldSession", "Fully loading player %u", plr->GetLowGUID());
SetPlayer(plr);
m_MoverWoWGuid.Init(plr->GetGUID());
// copy to movement array
//movement_packet[0] = m_MoverWoWGuid.GetNewGuidMask();
//memcpy(&movement_packet[1], m_MoverWoWGuid.GetNewGuid(), m_MoverWoWGuid.GetNewGuidLen());
WorldPacket datab(MSG_SET_DUNGEON_DIFFICULTY, 20);
datab << plr->iInstanceType;
datab << uint32(0x01);
datab << uint32(0x00);
SendPacket(&datab);
WorldPacket datat(SMSG_MOTD, 50);
datat << uint32(0x04);
datat << sWorld.GetMotd();
SendPacket(&datat);
/* world preload */
packetSMSG_LOGIN_VERIFY_WORLD vwpck;
vwpck.MapId = plr->GetMapId();
vwpck.O = plr->GetOrientation();
vwpck.X = plr->GetPositionX();
vwpck.Y = plr->GetPositionY();
vwpck.Z = plr->GetPositionZ();
OutPacket( SMSG_LOGIN_VERIFY_WORLD, sizeof(packetSMSG_LOGIN_VERIFY_WORLD), &vwpck );
// send voicechat state - active/inactive
/*
{SERVER} Packet: (0x03C7) UNKNOWN PacketSize = 2
|------------------------------------------------|----------------|
|00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |0123456789ABCDEF|
|------------------------------------------------|----------------|
|02 01 |.. |
-------------------------------------------------------------------
*/
#ifdef VOICE_CHAT
datab.Initialize(SMSG_FEATURE_SYSTEM_STATUS);
datab << uint8(2) << uint8(sVoiceChatHandler.CanUseVoiceChat() ? 1 : 0);
SendPacket(&datab);
#else
datab.Initialize(SMSG_FEATURE_SYSTEM_STATUS);
datab << uint8(2) << uint8(0);
#endif
plr->UpdateAttackSpeed();
/*if(plr->getLevel()>70)
plr->SetUInt32Value(UNIT_FIELD_LEVEL,70);*/
// Enable trigger cheat by default
//plr->triggerpass_cheat = HasGMPermissions();
// Make sure our name exists (for premade system)
PlayerInfo * info = objmgr.GetPlayerInfo(plr->GetLowGUID());
if(info == 0)
{
info = new PlayerInfo;
memset(info, 0, sizeof(PlayerInfo));
info->cl = plr->getClass();
info->gender = plr->getGender();
info->guid = plr->GetLowGUID();
info->name = strdup(plr->GetName());
info->lastLevel = plr->getLevel();
info->lastOnline = UNIXTIME;
info->lastZone = plr->GetZoneId();
info->race = plr->getRace();
info->team = plr->GetTeam();
objmgr.AddPlayerInfo(info);
}
plr->m_playerInfo = info;
if(plr->m_playerInfo->guild)
{
plr->m_uint32Values[PLAYER_GUILDID] = plr->m_playerInfo->guild->GetGuildId();
plr->m_uint32Values[PLAYER_GUILDRANK] = plr->m_playerInfo->guildRank->iId;
}
for(uint32 z = 0; z < NUM_ARENA_TEAM_TYPES; ++z)
{
if(_player->m_playerInfo->arenaTeam[z] != NULL)
{
_player->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (z*7), _player->m_playerInfo->arenaTeam[z]->m_id);
if(_player->m_playerInfo->arenaTeam[z]->m_leader == _player->GetLowGUID())
_player->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (z*7) + 1, 0);
else
_player->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (z*7) + 1, 1);
}
}
info->m_loggedInPlayer = plr;
// account data == UI config
SendAccountDataTimes(PER_CHARACTER_CACHE_MASK);
_player->ResetTitansGrip();
// Set TIME OF LOGIN
//.........这里部分代码省略.........
示例7: FullLogin
//.........这里部分代码省略.........
datab << uint8(0);
SendPacket(&datab);
WorldPacket dataldm(SMSG_LEARNED_DANCE_MOVES, 4 + 4);
dataldm << uint32(0);
dataldm << uint32(0);
SendPacket(&dataldm);
plr->UpdateAttackSpeed();
// Make sure our name exists (for premade system)
PlayerInfo* info = objmgr.GetPlayerInfo(plr->GetLowGUID());
if(info == NULL)
{
info = new PlayerInfo;
info->cl = plr->getClass();
info->gender = plr->getGender();
info->guid = plr->GetLowGUID();
info->name = strdup(plr->GetName());
info->lastLevel = plr->getLevel();
info->lastOnline = UNIXTIME;
info->lastZone = plr->GetZoneId();
info->race = plr->getRace();
info->team = plr->GetTeam();
info->guild = NULL;
info->guildRank = NULL;
info->guildMember = NULL;
info->m_Group = NULL;
info->subGroup = 0;
objmgr.AddPlayerInfo(info);
}
plr->m_playerInfo = info;
if(plr->m_playerInfo->guild)
{
plr->SetGuildId(plr->m_playerInfo->guild->GetGuildId());
plr->SetGuildRank(plr->m_playerInfo->guildRank->iId);
}
info->m_loggedInPlayer = plr;
// account data == UI config
SendAccountDataTimes(PER_CHARACTER_CACHE_MASK);
// Set TIME OF LOGIN
CharacterDatabase.Execute("UPDATE characters SET online = 1 WHERE guid = %u" , plr->GetLowGUID());
bool enter_world = true;
// Find our transporter and add us if we're on one.
if(plr->transporter_info.guid != 0)
{
Transporter* pTrans = objmgr.GetTransporter(Arcemu::Util::GUID_LOPART(plr->transporter_info.guid));
if(pTrans)
{
if(plr->IsDead())
{
plr->ResurrectPlayer();
plr->SetHealth(plr->GetMaxHealth());
plr->SetPower(POWER_TYPE_MANA, plr->GetMaxPower(POWER_TYPE_MANA));
}
float c_tposx = pTrans->GetPositionX() + plr->transporter_info.x;