mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
Added CMSG_WORLD_STATE_UI_TIMER_UPDATE handler.
This commit is contained in:
parent
e67d38648f
commit
6bf8eb346d
4 changed files with 36 additions and 23 deletions
|
|
@ -975,7 +975,7 @@ void WorldSession::HandleRequestAccountData(WorldPacket& recv_data)
|
|||
|
||||
dest.resize(destSize);
|
||||
|
||||
WorldPacket data (SMSG_UPDATE_ACCOUNT_DATA, 8+4+4+4+destSize);
|
||||
WorldPacket data(SMSG_UPDATE_ACCOUNT_DATA, 8+4+4+4+destSize);
|
||||
data << uint64(_player->GetGUID()); // player guid
|
||||
data << uint32(type); // type (0-7)
|
||||
data << uint32(adata->Time); // unix time
|
||||
|
|
@ -1023,7 +1023,7 @@ void WorldSession::HandleSetActionButtonOpcode(WorldPacket& recv_data)
|
|||
sLog.outError( "MISC: Unknown action button type %u for action %u into button %u", type, action, button );
|
||||
return;
|
||||
}
|
||||
GetPlayer()->addActionButton(button,action,type);
|
||||
GetPlayer()->addActionButton(button, action, type);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1450,7 +1450,7 @@ void WorldSession::HandleTimeSyncResp( WorldPacket & recv_data )
|
|||
recv_data >> counter >> time_;
|
||||
|
||||
// time_ seems always more than getMSTime()
|
||||
uint32 diff = getMSTimeDiff(getMSTime(),time_);
|
||||
uint32 diff = getMSTimeDiff(getMSTime(), time_);
|
||||
|
||||
sLog.outDebug("response sent: counter %u, time %u (HEX: %X), ms. time %u, diff %u", counter, time_, time_, getMSTime(), diff);
|
||||
}
|
||||
|
|
@ -1627,3 +1627,13 @@ void WorldSession::HandleQueryInspectAchievements( WorldPacket & recv_data )
|
|||
if(Player *player = objmgr.GetPlayer(guid))
|
||||
player->GetAchievementMgr().SendRespondInspectAchievements(_player);
|
||||
}
|
||||
|
||||
void WorldSession::HandleWorldStateUITimerUpdate(WorldPacket& recv_data)
|
||||
{
|
||||
// empty opcode
|
||||
sLog.outDebug("WORLD: CMSG_WORLD_STATE_UI_TIMER_UPDATE");
|
||||
|
||||
WorldPacket data(SMSG_WORLD_STATE_UI_TIMER_UPDATE, 4);
|
||||
data << uint32(time(NULL));
|
||||
SendPacket(&data);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1284,17 +1284,18 @@ OpcodeHandler opcodeTable[NUM_MSG_TYPES] =
|
|||
/*0x4E7*/ { "CMSG_UNKNOWN_1255", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||
/*0x4E8*/ { "SMSG_UNKNOWN_1256", STATUS_NEVER, &WorldSession::Handle_ServerSide },
|
||||
/*0x4E9*/ { "UMSG_UNKNOWN_1257", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||
/*0x4EA*/ { "MSG_SET_RAID_DIFFICULTY", STATUS_LOGGEDIN, &WorldSession::HandleSetRaidDifficultyOpcode },
|
||||
/*0x4EB*/ { "UMSG_UNKNOWN_1259", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||
/*0x4EC*/ { "SMSG_TOGGLE_XP_GAIN", STATUS_NEVER, &WorldSession::Handle_ServerSide },
|
||||
/*0x4ED*/ { "SMSG_UNKNOWN_1261", STATUS_NEVER, &WorldSession::Handle_ServerSide },
|
||||
/*0x4EA*/ { "UMSG_UNKNOWN_1258", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||
/*0x4EB*/ { "MSG_SET_RAID_DIFFICULTY", STATUS_LOGGEDIN, &WorldSession::HandleSetRaidDifficultyOpcode },
|
||||
/*0x4EC*/ { "UMSG_UNKNOWN_1260", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||
/*0x4ED*/ { "SMSG_TOGGLE_XP_GAIN", STATUS_NEVER, &WorldSession::Handle_ServerSide },
|
||||
/*0x4EE*/ { "SMSG_UNKNOWN_1262", STATUS_NEVER, &WorldSession::Handle_ServerSide },
|
||||
/*0x4EF*/ { "CMSG_UNKNOWN_1263", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||
/*0x4F0*/ { "SMSG_UNKNOWN_1264", STATUS_NEVER, &WorldSession::Handle_ServerSide },
|
||||
/*0x4F1*/ { "UMSG_UNKNOWN_1265", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||
/*0x4EF*/ { "SMSG_UNKNOWN_1263", STATUS_NEVER, &WorldSession::Handle_ServerSide },
|
||||
/*0x4F0*/ { "CMSG_UNKNOWN_1264", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||
/*0x4F1*/ { "SMSG_UNKNOWN_1265", STATUS_NEVER, &WorldSession::Handle_ServerSide },
|
||||
/*0x4F2*/ { "UMSG_UNKNOWN_1266", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||
/*0x4F3*/ { "UMSG_UNKNOWN_1267", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||
/*0x4F4*/ { "UMSG_UNKNOWN_1268", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||
/*0x4F5*/ { "UMSG_UNKNOWN_1269", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||
/*0x4F6*/ { "UMSG_UNKNOWN_1270", STATUS_LOGGEDIN, &WorldSession::Handle_NULL },
|
||||
/*0x4F6*/ { "CMSG_WORLD_STATE_UI_TIMER_UPDATE", STATUS_LOGGEDIN, &WorldSession::HandleWorldStateUITimerUpdate },
|
||||
/*0x4F7*/ { "SMSG_WORLD_STATE_UI_TIMER_UPDATE", STATUS_NEVER, &WorldSession::Handle_ServerSide },
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1275,8 +1275,8 @@ enum Opcodes
|
|||
SMSG_EQUIPMENT_SET_USE_RESULT = 0x4D6, // SMSG, UseEquipmentSetResult?
|
||||
UMSG_UNKNOWN_1239 = 0x4D7, // not found 3.2
|
||||
SMSG_UNKNOWN_1240 = 0x4D8, // SMSG, uint64, string
|
||||
CMSG_UNKNOWN_1241 = 0x4D9, // lua: CreateCharacter (PFC client response)
|
||||
SMSG_UNKNOWN_1242 = 0x4DA, // response to 1241 (PFC server response)
|
||||
CMSG_CHAR_FACTION_CHANGE = 0x4D9, // lua: CreateCharacter (PFC client response)
|
||||
SMSG_CHAR_FACTION_CHANGE = 0x4DA, // response to 1241 (PFC server response)
|
||||
UMSG_UNKNOWN_1243 = 0x4DB, // not found 3.2
|
||||
UMSG_UNKNOWN_1244 = 0x4DC, // not found 3.2
|
||||
UMSG_UNKNOWN_1245 = 0x4DD, // not found 3.2
|
||||
|
|
@ -1292,20 +1292,21 @@ enum Opcodes
|
|||
CMSG_UNKNOWN_1255 = 0x4E7, // lua: BattlefieldMgrExitRequest
|
||||
SMSG_UNKNOWN_1256 = 0x4E8, // uint32, uint32
|
||||
UMSG_UNKNOWN_1257 = 0x4E9, // not found 3.2
|
||||
MSG_SET_RAID_DIFFICULTY = 0x4EA, // lua: SetRaidDificulty
|
||||
UMSG_UNKNOWN_1259 = 0x4EB, // not found 3.2
|
||||
SMSG_TOGGLE_XP_GAIN = 0x4EC, // enable/disable XP gain console message
|
||||
SMSG_UNKNOWN_1261 = 0x4ED,
|
||||
UMSG_UNKNOWN_1258 = 0x4EA, // not found 3.2
|
||||
MSG_SET_RAID_DIFFICULTY = 0x4EB, // lua: SetRaidDifficulty
|
||||
UMSG_UNKNOWN_1260 = 0x4EC, // not found 3.2
|
||||
SMSG_TOGGLE_XP_GAIN = 0x4ED, // enable/disable XP gain console message
|
||||
SMSG_UNKNOWN_1262 = 0x4EE,
|
||||
CMSG_UNKNOWN_1263 = 0x4EF, // lua: GMResponseResolve
|
||||
SMSG_UNKNOWN_1264 = 0x4F0,
|
||||
UMSG_UNKNOWN_1265 = 0x4F1, // not found 3.2
|
||||
SMSG_UNKNOWN_1263 = 0x4EF,
|
||||
CMSG_UNKNOWN_1264 = 0x4F0, // lua: GMResponseResolve
|
||||
SMSG_UNKNOWN_1265 = 0x4F1,
|
||||
UMSG_UNKNOWN_1266 = 0x4F2, // not found 3.2
|
||||
UMSG_UNKNOWN_1267 = 0x4F3, // not found 3.2
|
||||
UMSG_UNKNOWN_1268 = 0x4F4, // not found 3.2
|
||||
UMSG_UNKNOWN_1269 = 0x4F5,
|
||||
UMSG_UNKNOWN_1270 = 0x4F6,
|
||||
NUM_MSG_TYPES = 0x4F7
|
||||
UMSG_UNKNOWN_1269 = 0x4F5, // not found 3.2
|
||||
CMSG_WORLD_STATE_UI_TIMER_UPDATE = 0x4F6,
|
||||
SMSG_WORLD_STATE_UI_TIMER_UPDATE = 0x4F7,
|
||||
NUM_MSG_TYPES = 0x4F8
|
||||
};
|
||||
|
||||
/// Player state
|
||||
|
|
|
|||
|
|
@ -712,6 +712,7 @@ class MANGOS_DLL_SPEC WorldSession
|
|||
void HandleEquipmentSetSave(WorldPacket& recv_data);
|
||||
void HandleEquipmentSetDelete(WorldPacket& recv_data);
|
||||
void HandleEquipmentSetUse(WorldPacket& recv_data);
|
||||
void HandleWorldStateUITimerUpdate(WorldPacket& recv_data);
|
||||
private:
|
||||
// private trade methods
|
||||
void moveItems(Item* myItems[], Item* hisItems[]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue