2017-08-22 17:29:03 +02:00
|
|
|
#ifndef _CORE_NETWORK_PACKETS_IPCS_H
|
|
|
|
#define _CORE_NETWORK_PACKETS_IPCS_H
|
|
|
|
|
|
|
|
#include<stdint.h>
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
namespace Network {
|
|
|
|
namespace Packets {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// Lobby Connection IPC Codes
|
|
|
|
/**
|
|
|
|
* Server IPC Lobby Type Codes.
|
|
|
|
*/
|
|
|
|
enum ServerLobbyIpcType : uint16_t
|
|
|
|
{
|
|
|
|
LobbyError = 0x0002,
|
|
|
|
LobbyServiceAccountList = 0x000C,
|
|
|
|
LobbyCharList = 0x000D,
|
|
|
|
LobbyCharCreate = 0x000E,
|
|
|
|
LobbyEnterWorld = 0x000F,
|
|
|
|
LobbyServerList = 0x0015,
|
|
|
|
LobbyRetainerList = 0x0017,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Client IPC Lobby Type Codes.
|
|
|
|
*/
|
|
|
|
enum ClientLobbyIpcType : uint16_t
|
|
|
|
{
|
|
|
|
ReqCharList = 0x0003,
|
|
|
|
ReqEnterWorld = 0x0004,
|
|
|
|
ReqServiceAccountList = 0x0005,
|
|
|
|
|
|
|
|
ReqCharDelete = 0x000A,
|
|
|
|
ReqCharCreate = 0x000B,
|
|
|
|
};
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// Zone Connection IPC Codes
|
|
|
|
/**
|
|
|
|
* Server IPC Zone Type Codes.
|
|
|
|
*/
|
|
|
|
enum ServerZoneIpcType : uint16_t
|
|
|
|
{
|
2018-02-02 18:34:20 +01:00
|
|
|
|
|
|
|
// static opcode ( the ones that rarely if ever change )
|
2017-10-10 18:51:17 +02:00
|
|
|
Ping = 0x0065,
|
|
|
|
Init = 0x0066,
|
2018-02-02 18:34:20 +01:00
|
|
|
|
|
|
|
ActorSpawn = 0x0190, // DEPRECATED
|
|
|
|
ActorFreeSpawn = 0x0191,
|
|
|
|
InitZone = 0x019A,
|
|
|
|
|
|
|
|
AddStatusEffect = 0x0141,
|
|
|
|
ActorControl142 = 0x0142,
|
|
|
|
ActorControl143 = 0x0143,
|
|
|
|
ActorControl144 = 0x0144,
|
|
|
|
UpdateHpMpTp = 0x0145,
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////
|
|
|
|
|
2017-09-10 14:02:16 +09:00
|
|
|
ChatBanned = 0x006B,
|
2017-10-10 18:51:17 +02:00
|
|
|
Logout = 0x0077,
|
2017-08-28 18:36:51 +02:00
|
|
|
CFNotify = 0x0078,
|
|
|
|
CFMemberStatus = 0x0079,
|
|
|
|
CFDutyInfo = 0x007A,
|
|
|
|
CFPlayerInNeed = 0x007F,
|
|
|
|
|
2017-08-22 17:29:03 +02:00
|
|
|
SocialRequestError = 0x00AD,
|
2018-02-02 18:34:20 +01:00
|
|
|
|
2018-02-01 20:28:04 +11:00
|
|
|
Playtime = 0x00DF, // updated 4.2
|
2017-10-10 18:51:17 +02:00
|
|
|
CFRegistered = 0x00B8, // updated 4.1
|
2017-10-15 01:43:57 +02:00
|
|
|
SocialRequestResponse = 0x00BB, // updated 4.1
|
2018-02-02 18:34:20 +01:00
|
|
|
Chat = 0x00E1, // updated 4.2
|
2018-01-31 19:20:30 +01:00
|
|
|
SocialList = 0x00E7, // updated 4.2
|
2018-02-02 18:34:20 +01:00
|
|
|
|
2018-01-31 19:20:30 +01:00
|
|
|
UpdateSearchInfo = 0x00EA, // updated 4.2
|
|
|
|
InitSearchInfo = 0x00EB, // updated 4.2
|
2018-02-02 18:34:20 +01:00
|
|
|
|
2018-01-31 17:48:12 +01:00
|
|
|
ServerNotice = 0x00F0, // updated 4.2
|
2018-01-30 21:20:22 +09:00
|
|
|
SetOnlineStatus = 0x00F1, // updated 4.2
|
2017-10-15 01:43:57 +02:00
|
|
|
|
2018-02-04 16:40:29 +11:00
|
|
|
CountdownInitiate = 0x00FB, // updated 4.2
|
|
|
|
CountdownCancel = 0x00FC, // updated 4.2
|
|
|
|
|
2018-01-31 19:20:30 +01:00
|
|
|
BlackList = 0x00FF, // updated 4.2
|
2017-10-10 23:48:02 +02:00
|
|
|
|
2018-02-02 18:34:20 +01:00
|
|
|
LogMessage = 0x00D0,
|
|
|
|
|
2018-01-31 19:20:30 +01:00
|
|
|
LinkshellList = 0x0106, // updated 4.2
|
2018-02-04 16:40:29 +11:00
|
|
|
SetCharacterFCInfo = 0x0114, // updated 4.2
|
2018-01-31 18:57:04 +01:00
|
|
|
StatusEffectList = 0x0125, // updated 4.2
|
2018-01-31 08:22:08 +01:00
|
|
|
Effect = 0x0128, // updated 4.2
|
2018-02-08 19:41:27 +11:00
|
|
|
PersistantEffect = 0x013B, // updated 4.2
|
2018-02-04 14:16:09 +01:00
|
|
|
|
|
|
|
GCAffiliation = 0xCCFC, // OUTDATED
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2018-01-30 19:41:13 +09:00
|
|
|
PlayerSpawn = 0x015C, // updated 4.2
|
|
|
|
NpcSpawn = 0x015D, // updated 4.2
|
2018-01-31 08:22:08 +01:00
|
|
|
ActorMove = 0x015E, // updated 4.2
|
2018-02-01 22:06:02 +11:00
|
|
|
ActorSetPos = 0x0160, // updated 4.2
|
2018-01-31 08:22:08 +01:00
|
|
|
ActorCast = 0x0162, // updated 4.2
|
2018-01-30 19:41:13 +09:00
|
|
|
HateList = 0x0165, // updated 4.2
|
2018-02-10 21:51:02 +11:00
|
|
|
ObjectSpawn = 0x0167, // updated 4.2
|
2018-01-30 19:41:13 +09:00
|
|
|
UpdateClassInfo = 0x0169, // updated 4.2
|
|
|
|
InitUI = 0x016B, // updated 4.2
|
2018-01-31 19:20:30 +01:00
|
|
|
|
2018-02-02 18:34:20 +01:00
|
|
|
ActorOwner = 0x016D, // updated 4.2 ?
|
2018-01-31 19:20:30 +01:00
|
|
|
|
2018-01-30 19:41:13 +09:00
|
|
|
PlayerStats = 0x016C, // updated 4.2
|
2018-01-30 21:20:22 +09:00
|
|
|
PlayerStateFlags = 0x016E, // updated 4.2
|
2018-01-30 19:41:13 +09:00
|
|
|
PlayerClassInfo = 0x016F, // updated 4.2
|
2018-01-31 08:22:08 +01:00
|
|
|
ModelEquip = 0x0170, // updated 4.2
|
2017-10-15 01:43:57 +02:00
|
|
|
|
2018-01-30 21:20:22 +09:00
|
|
|
ItemInfo = 0x017A, // updated 4.2
|
|
|
|
ContainerInfo = 0x017B, // updated 4.2
|
|
|
|
InventoryTransactionFinish = 0x017C, // updated 4.2
|
|
|
|
InventoryTransaction = 0x017D, // updated 4.2
|
2018-01-30 22:50:40 +01:00
|
|
|
CurrencyCrystalInfo = 0x017E, // updated 4.2
|
2018-02-02 18:34:20 +01:00
|
|
|
|
|
|
|
InventoryActionAck = 0x0180, // updated 4.2 ?
|
2018-02-02 01:23:12 +11:00
|
|
|
UpdateInventorySlot = 0x0181, // updated 4.2
|
2017-10-15 01:43:57 +02:00
|
|
|
|
2018-01-31 18:57:04 +01:00
|
|
|
EventPlay = 0x018E, // updated 4.2
|
2018-02-02 18:34:20 +01:00
|
|
|
|
2018-01-31 18:57:04 +01:00
|
|
|
EventStart = 0x0198, // updated 4.2
|
|
|
|
EventFinish = 0x0199, // updated 4.2
|
2017-08-27 02:03:27 +02:00
|
|
|
|
2017-10-10 18:57:24 +02:00
|
|
|
EventLinkshell = 0x1169,
|
2017-08-27 02:03:27 +02:00
|
|
|
|
2018-01-31 19:20:30 +01:00
|
|
|
QuestMessage = 0x01B8, // updated 4.2
|
2018-02-02 18:34:20 +01:00
|
|
|
QuestTracker = 0x01BD, // updated 4.2
|
2017-10-15 01:43:57 +02:00
|
|
|
|
2018-02-03 01:51:46 +01:00
|
|
|
QuestFinish = 0x01B0, // updated 4.2
|
|
|
|
MSQTrackerComplete = 0x01B1, // updated 4.2
|
|
|
|
MSQTrackerProgress = 0x01B2, // updated 4.2
|
2018-02-02 18:34:20 +01:00
|
|
|
|
|
|
|
QuestActiveList = 0x01AD, // updated 4.2
|
|
|
|
|
|
|
|
QuestUpdate = 0x01AE, // updated 4.2
|
|
|
|
QuestCompleteList = 0x01AF, // updated 4.2
|
|
|
|
|
2018-01-31 18:57:04 +01:00
|
|
|
Mount = 0x01CD, // updated 4.2
|
2018-02-02 18:34:20 +01:00
|
|
|
|
2018-02-07 00:00:48 +01:00
|
|
|
DirectorVars = 0x01CF, // updated 4.2
|
|
|
|
|
2018-01-31 18:57:04 +01:00
|
|
|
WeatherChange = 0x01EA, // updated 4.2
|
|
|
|
PlayerTitleList = 0x01EB, // updated 4.2
|
|
|
|
Discovery = 0x01EC, // updated 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2018-02-03 19:42:42 +11:00
|
|
|
EorzeaTimeOffset = 0x01EE, // updated 4.2
|
2017-08-28 18:36:51 +02:00
|
|
|
|
2018-02-01 20:28:04 +11:00
|
|
|
EquipDisplayFlags = 0x01FA, // updated 4.2
|
2017-10-05 20:24:58 +02:00
|
|
|
|
2018-02-06 00:01:23 +01:00
|
|
|
CFAvailableContents = 0x01FD, // updated 4.2
|
2017-08-28 18:36:51 +02:00
|
|
|
|
2018-01-30 21:20:22 +09:00
|
|
|
PrepareZoning = 0x027C, // updated 4.2
|
2018-01-31 08:22:08 +01:00
|
|
|
ActorGauge = 0x027D, // updated 4.2
|
2018-02-02 18:34:20 +01:00
|
|
|
|
|
|
|
PerformNote = 0x0286, // updated 4.2
|
|
|
|
|
2017-08-22 17:29:03 +02:00
|
|
|
// Unknown IPC types that still need to be sent
|
|
|
|
// TODO: figure all these out properly
|
2018-01-31 18:57:04 +01:00
|
|
|
IPCTYPE_UNK_320 = 0x0235, // updated 4.2
|
|
|
|
IPCTYPE_UNK_322 = 0x0237, // updated 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// TODO: Include structures for the individual packet segment types
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Client IPC Zone Type Codes.
|
|
|
|
*/
|
|
|
|
enum ClientZoneIpcType : uint16_t
|
|
|
|
{
|
|
|
|
|
2018-01-31 18:57:04 +01:00
|
|
|
PingHandler = 0x0065, // unchanged 4.2
|
|
|
|
InitHandler = 0x0066, // unchanged 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2018-01-31 18:57:04 +01:00
|
|
|
FinishLoadingHandler = 0x0069, // unchanged 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
|
|
|
CFCommenceHandler = 0x006F,
|
2018-02-02 18:34:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2017-08-22 17:29:03 +02:00
|
|
|
CFRegisterDuty = 0x0071,
|
|
|
|
CFRegisterRoulette = 0x0072,
|
2018-01-31 18:57:04 +01:00
|
|
|
PlayTimeHandler = 0x0073, // unchanged 4.2
|
|
|
|
LogoutHandler = 0x0074, // unchanged 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2018-01-31 17:24:44 +01:00
|
|
|
CFDutyInfoHandler = 0x0078, // updated 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2017-10-10 18:51:17 +02:00
|
|
|
SocialReqSendHandler = 0x00AE, // updated 4.1
|
2018-02-02 18:34:20 +01:00
|
|
|
|
|
|
|
ChatHandler = 0x00C7, // updated 4.2
|
|
|
|
|
2018-01-31 17:24:44 +01:00
|
|
|
SocialListHandler = 0x00CF, // updated 4.2
|
|
|
|
ReqSearchInfoHandler = 0x00D4, // updated 4.2
|
2018-02-02 18:34:20 +01:00
|
|
|
SetSearchInfoHandler = 0x00D2, // updated 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2018-01-31 17:24:44 +01:00
|
|
|
BlackListHandler = 0x00E0, // updated 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2018-01-31 17:24:44 +01:00
|
|
|
LinkshellListHandler = 0x00E8, // updated 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2018-02-01 20:28:04 +11:00
|
|
|
FcInfoReqHandler = 0x011A, // updated 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2018-02-04 17:21:35 +11:00
|
|
|
ReqCountdownInitiate = 0x012C, // updated 4.2
|
|
|
|
ReqCountdownCancel = 0x012D, // updated 4.2
|
2018-02-04 16:40:29 +11:00
|
|
|
|
2018-01-31 08:22:08 +01:00
|
|
|
ZoneLineHandler = 0x0130, // updated 4.2
|
2018-01-30 19:40:42 +09:00
|
|
|
ActionHandler = 0x0131, // updated 4.2
|
2018-01-31 08:22:08 +01:00
|
|
|
DiscoveryHandler = 0x0132, // updated 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2018-01-31 08:28:14 +01:00
|
|
|
SkillHandler = 0x0134, // updated 4.2
|
|
|
|
GMCommand1 = 0x0135, // updated 4.2
|
|
|
|
GMCommand2 = 0x0136, // updated 4.2
|
2018-01-30 19:45:39 +09:00
|
|
|
UpdatePositionHandler = 0x0138, // updated 4.2
|
|
|
|
UpdatePositionInstance = 0x0177, // updated 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2018-01-31 18:02:23 +01:00
|
|
|
InventoryModifyHandler = 0x013F, // updated 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2018-01-31 18:57:04 +01:00
|
|
|
TalkEventHandler = 0x0148, // updated 4.2
|
|
|
|
EmoteEventHandler = 0x0149, // updated 4.2
|
|
|
|
WithinRangeEventHandler = 0x014A, // updated 4.2
|
|
|
|
OutOfRangeEventHandler = 0x014B, // updated 4.2
|
|
|
|
EnterTeriEventHandler = 0x014C, // updated 4.2
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2018-02-22 22:15:32 +01:00
|
|
|
ReturnEventHandler = 0x0151, // updated 4.2
|
|
|
|
TradeReturnEventHandler = 0x0152, // updated 4.2
|
2017-08-23 23:58:14 +02:00
|
|
|
|
2017-08-22 17:29:03 +02:00
|
|
|
|
2017-10-10 18:51:17 +02:00
|
|
|
LinkshellEventHandler = 0x0144, // updated 4.1 ??
|
|
|
|
LinkshellEventHandler1 = 0x0145, // updated 4.1 ??
|
2017-08-23 23:58:14 +02:00
|
|
|
|
2018-02-02 18:34:20 +01:00
|
|
|
PerformNoteHandler = 0x0160,
|
|
|
|
|
2018-01-31 18:57:04 +01:00
|
|
|
ReqEquipDisplayFlagsChange = 0x016C, // updated 4.2
|
2017-10-05 20:24:58 +02:00
|
|
|
|
2018-02-02 18:34:20 +01:00
|
|
|
|
2017-08-22 17:29:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// Chat Connection IPC Codes
|
|
|
|
/**
|
|
|
|
* Server IPC Chat Type Codes.
|
|
|
|
*/
|
|
|
|
enum ServerChatIpcType : uint16_t
|
|
|
|
{
|
2017-08-22 21:36:20 +02:00
|
|
|
Tell = 0x0064, // updated for sb
|
2017-08-22 23:53:20 +02:00
|
|
|
TellErrNotFound = 0x0066,
|
2017-08-22 17:29:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Client IPC Chat Type Codes.
|
|
|
|
*/
|
|
|
|
enum ClientChatIpcType : uint16_t
|
|
|
|
{
|
2017-08-22 21:36:20 +02:00
|
|
|
TellReq = 0x0064,
|
2017-08-22 17:29:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} /* Packets */
|
|
|
|
} /* Network */
|
|
|
|
} /* Core */
|
|
|
|
|
|
|
|
#endif /*_CORE_NETWORK_PACKETS_IPCS_H*/
|