1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 15:17:46 +00:00
sapphire/src/common/Network/PacketDef/Ipcs.h

412 lines
13 KiB
C
Raw Normal View History

#ifndef _CORE_NETWORK_PACKETS_IPCS_H
#define _CORE_NETWORK_PACKETS_IPCS_H
2018-06-02 13:38:00 +02:00
#include <stdint.h>
namespace Sapphire::Network::Packets
{
2018-11-01 23:56:43 +01:00
////////////////////////////////////////////////////////////////////////////////
/// 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,
};
2018-11-01 23:56:43 +01:00
/**
* Client IPC Lobby Type Codes.
*/
enum ClientLobbyIpcType : uint16_t
{
ReqCharList = 0x0003,
ReqEnterWorld = 0x0004,
ClientVersionInfo = 0x0005,
2018-11-01 23:56:43 +01:00
ReqCharDelete = 0x000A,
ReqCharCreate = 0x000B,
};
2018-11-01 23:56:43 +01:00
////////////////////////////////////////////////////////////////////////////////
/// Zone Connection IPC Codes
/**
* Server IPC Zone Type Codes.
*/
enum ServerZoneIpcType : uint16_t
{
2020-04-07 20:53:12 +09:00
Ping = 0x017A, // updated 5.25
Init = 0x03B9, // updated 5.25
2018-11-01 23:56:43 +01:00
2020-04-07 20:53:12 +09:00
ActorFreeSpawn = 0x0194, // updated 5.25
InitZone = 0x01CD, // updated 5.25
2018-11-01 23:56:43 +01:00
2020-04-07 20:53:12 +09:00
EffectResult = 0x030F, // updated 5.25
ActorControl = 0x01DD, // updated 5.25
ActorControlSelf = 0x0165, // updated 5.25
ActorControlTarget = 0x01EB, // updated 5.25
2019-10-29 20:23:06 +11:00
/*!
* @brief Used when resting
*/
2020-04-07 20:53:12 +09:00
UpdateHpMpTp = 0x00F8, // updated 5.25
2018-11-01 23:56:43 +01:00
///////////////////////////////////////////////////
2020-05-01 20:19:10 +09:00
ChatBanned = 0xF06B,
2020-04-14 21:14:23 +09:00
Playtime = 0x0286, // updated 5.25
2020-04-07 20:53:12 +09:00
Logout = 0x00CD, // updated 5.25
2020-04-14 21:14:23 +09:00
CFNotify = 0x0145, // updated 5.25
2018-11-01 23:56:43 +01:00
CFMemberStatus = 0x0079,
CFDutyInfo = 0x007A,
CFPlayerInNeed = 0xF07F,
2020-04-14 21:14:23 +09:00
CFPreferredRole = 0x0186, // added 5.25
2020-05-01 20:19:10 +09:00
CFCancel = 0x00B7, // updated 5.25
SocialRequestError = 0xF0AD,
2018-11-01 23:56:43 +01:00
CFRegistered = 0x00B8, // updated 4.1
SocialRequestResponse = 0x00BB, // updated 4.1
CancelAllianceForming = 0x00C6, // updated 4.2
LogMessage = 0x00D0,
2020-04-14 21:14:23 +09:00
Chat = 0x0161, // updated 5.25
2019-04-26 17:47:59 +10:00
2020-05-01 20:19:10 +09:00
WorldVisitList = 0xF0FE, // added 4.5
2019-04-26 17:47:59 +10:00
2020-04-07 20:53:12 +09:00
SocialList = 0x0269, // updated 5.25
2020-03-18 00:58:07 +09:00
ExamineSearchInfo = 0x032B, // updated 5.21 hotfix
2020-04-14 21:14:23 +09:00
UpdateSearchInfo = 0x00B3, // updated 5.25
2020-04-07 20:53:12 +09:00
InitSearchInfo = 0x0347, // updated 5.25
2018-11-01 23:56:43 +01:00
ExamineSearchComment = 0x0102, // updated 4.1
2019-06-28 18:25:24 +10:00
ServerNoticeShort = 0x0115, // updated 5.0
2020-04-07 20:53:12 +09:00
ServerNotice = 0x00E9, // updated 5.25
SetOnlineStatus = 0x0381, // updated 5.25
2020-05-01 20:19:10 +09:00
CountdownInitiate = 0x0237, // updated 5.25
2020-01-01 22:05:49 +09:00
CountdownCancel = 0x00D9, // updated 5.18
2019-10-29 21:14:44 +11:00
PlayerAddedToBlacklist = 0x033F, // updated 5.1
PlayerRemovedFromBlacklist = 0x0385, // updated 5.1
2020-04-07 20:53:12 +09:00
BlackList = 0x027A, // updated 5.25
2020-04-07 20:53:12 +09:00
LinkshellList = 0x00A9, // updated 5.25
2018-02-04 16:40:29 +11:00
2020-05-01 20:19:10 +09:00
MailDeleteRequest = 0xF12B, // updated 5.0
2019-06-30 18:32:44 +10:00
// 12D - 137 - constant gap between 4.5x -> 5.0
2019-06-28 20:32:42 +10:00
ReqMoogleMailList = 0x0138, // updated 5.0
ReqMoogleMailLetter = 0x0139, // updated 5.0
MailLetterNotification = 0x013A, // updated 5.0
2017-10-10 23:48:02 +02:00
2020-03-18 00:58:07 +09:00
MarketTaxRates = 0x034C, // updated 5.21 hotfix
2020-02-19 16:46:00 +09:00
MarketBoardItemListingCount = 0x030A, // updated 5.2
MarketBoardItemListing = 0x023E, // updated 5.2
MarketBoardItemListingHistory = 0x03C0, // updated 5.2
2020-03-11 05:11:58 +09:00
MarketBoardSearchResult = 0x01DD, // updated 5.21
2018-12-02 23:26:21 +11:00
CharaFreeCompanyTag = 0x013B, // updated 4.5
FreeCompanyBoardMsg = 0x013C, // updated 4.5
2020-05-01 20:19:10 +09:00
FreeCompanyInfo = 0xF13D, // updated 4.5
ExamineFreeCompanyInfo = 0xF13E, // updated 4.5
2020-05-01 20:19:10 +09:00
FreeCompanyUpdateShortMessage = 0xF157, // added 5.0
2020-04-07 20:53:12 +09:00
StatusEffectList = 0x01D7, // updated 5.25
2020-01-01 22:05:49 +09:00
EurekaStatusEffectList = 0x0167, // updated 5.18
BossStatusEffectList = 0x0312, // added 5.1
2020-04-07 20:53:12 +09:00
Effect = 0x0087, // updated 5.25
AoeEffect8 = 0x01A6, // updated 5.25
2020-03-18 00:58:07 +09:00
AoeEffect16 = 0x02A2, // updated 5.21 hotfix
AoeEffect24 = 0x01FD, // updated 5.21 hotfix
AoeEffect32 = 0x0376, // updated 5.21 hotfix
2020-04-07 20:53:12 +09:00
PersistantEffect = 0x032E, // updated 5.25
2018-09-18 20:56:12 +10:00
GCAffiliation = 0xF16F, // updated 5.0
2018-05-26 09:25:56 +02:00
2020-04-07 20:53:12 +09:00
PlayerSpawn = 0x00B9, // updated 5.25
NpcSpawn = 0x038D, // updated 5.25
2020-01-01 22:05:49 +09:00
NpcSpawn2 = 0x010C, // ( Bigger statuseffectlist? ) updated 5.18
2020-04-07 20:53:12 +09:00
ActorMove = 0x0290, // updated 5.25
2019-01-19 22:56:07 +01:00
2020-04-07 20:53:12 +09:00
ActorSetPos = 0x028E, // updated 5.25
2020-04-07 20:53:12 +09:00
ActorCast = 0x00C4, // updated 5.25
2020-01-01 22:05:49 +09:00
SomeCustomiseChangePacketProbably = 0x00CD, // added 5.18
2019-11-12 10:26:36 -08:00
2020-01-01 22:05:49 +09:00
PartyList = 0x0287, // updated 5.18
2020-04-07 20:53:12 +09:00
HateRank = 0x012E, // updated 5.25
HateList = 0x02C4, // updated 5.25
ObjectSpawn = 0x00D2, // updated 5.25
2020-01-01 22:05:49 +09:00
ObjectDespawn = 0x034B, // updated 5.18
2020-04-07 20:53:12 +09:00
UpdateClassInfo = 0x00DC, // updated 5.25
2019-06-28 18:25:24 +10:00
SilentSetClassJob = 0x018E, // updated 5.0 - seems to be the case, not sure if it's actually used for anything
2020-04-07 20:53:12 +09:00
PlayerSetup = 0x0071, // updated 5.25
PlayerStats = 0x007C, // updated 5.25
ActorOwner = 0x0149, // updated 5.25
PlayerStateFlags = 0x0125, // updated 5.25
PlayerClassInfo = 0x034F, // updated 5.25
CharaVisualEffect = 0x0258, // updated 5.25
ModelEquip = 0x01E5, // updated 5.25
2020-03-18 00:58:07 +09:00
Examine = 0x036E, // updated 5.21 hotfix
2020-04-14 21:14:23 +09:00
CharaNameReq = 0x0145, // updated 5.25
2019-01-19 22:56:07 +01:00
// nb: see #565 on github
UpdateRetainerItemSalePrice = 0x019F, // updated 5.0
RetainerInformation = 0x0169, // updated 5.25
SetLevelSync = 0x1186, // not updated for 4.4, not sure what it is anymore
2018-09-18 20:20:25 +10:00
2020-04-07 20:53:12 +09:00
ItemInfo = 0x02AA, // updated 5.25
ContainerInfo = 0x02A8, // updated 5.25
InventoryTransactionFinish = 0x0193, // updated 5.25
InventoryTransaction = 0x0119, // updated 5.25
CurrencyCrystalInfo = 0x018A, // updated 5.25
2019-01-19 22:56:07 +01:00
2020-04-07 20:53:12 +09:00
InventoryActionAck = 0x01AE, // updated 5.25
UpdateInventorySlot = 0x0151, // updated 5.25
2018-09-18 20:20:25 +10:00
2020-05-01 20:19:10 +09:00
HuntingLogEntry = 0xF1B3, // updated 5.0
2019-03-24 16:08:08 +01:00
2020-04-07 20:53:12 +09:00
EventPlay = 0x02C3, // updated 5.25
EventPlay4 = 0x029A, // updated 5.25
2020-01-02 14:42:58 +11:00
EventPlay8 = 0x0119, // updated 5.18
EventPlay16 = 0x01FB, // updated 5.18
2020-05-01 20:19:10 +09:00
EventPlay32 = 0x02D9, // updated 5.25
2020-01-02 14:42:58 +11:00
EventPlay64 = 0x00E5, // updated 5.18
EventPlay128 = 0x02BE, // updated 5.18
2020-04-07 20:53:12 +09:00
EventPlay255 = 0x01AC, // updated 5.25
2018-06-02 18:09:29 +02:00
2020-04-07 20:53:12 +09:00
EventStart = 0x0360, // updated 5.25
EventFinish = 0x0239, // updated 5.25
2018-11-01 23:56:43 +01:00
EventLinkshell = 0x1169,
2020-04-07 20:53:12 +09:00
QuestActiveList = 0x0391, // updated 5.25
QuestUpdate = 0x0352, // updated 5.25
QuestCompleteList = 0x0231, // updated 5.25
2017-08-27 02:03:27 +02:00
2020-04-07 20:53:12 +09:00
QuestFinish = 0x02B6, // updated 5.25
2019-06-28 21:15:22 +10:00
MSQTrackerComplete = 0x01D6, // updated 5.0
2019-01-08 20:36:31 +11:00
MSQTrackerProgress = 0xF1CD, // updated 4.5 ? this actually looks like the two opcodes have been combined, see #474
2017-08-27 02:03:27 +02:00
2020-04-07 20:53:12 +09:00
QuestMessage = 0x0093, // updated 5.25
2020-04-07 20:53:12 +09:00
QuestTracker = 0x00AD, // updated 5.25
2020-04-07 20:53:12 +09:00
Mount = 0x02BE, // updated 5.25
2018-06-02 18:09:29 +02:00
2020-01-02 15:10:04 +11:00
DirectorVars = 0x00E6, // updated 5.18
SomeDirectorUnk1 = 0x0084, // updated 5.18
SomeDirectorUnk2 = 0xF0C1, // updated 5.18
2020-03-18 00:58:07 +09:00
SomeDirectorUnk4 = 0x01F3, // updated 5.21 hotfix
2020-01-02 15:10:04 +11:00
SomeDirectorUnk8 = 0x028A, // updated 5.18
SomeDirectorUnk16 = 0x028C, // updated 5.18
2020-05-01 20:19:10 +09:00
DirectorPopUp = 0xF162, // updated 5.18 - display dialogue pop-ups in duties and FATEs, for example, Teraflare's countdown
2020-01-02 15:10:04 +11:00
DirectorPopUp4 = 0x0214, // updated 5.18
DirectorPopUp8 = 0x00F8, // updated 5.18
2019-01-01 23:37:32 +11:00
CFAvailableContents = 0xF1FD, // updated 4.2
2020-04-07 20:53:12 +09:00
WeatherChange = 0x0157, // updated 5.25
2019-10-31 12:41:12 +11:00
PlayerTitleList = 0x037D, // updated 5.1
2020-04-14 21:14:23 +09:00
Discovery = 0x0173, // updated 5.25
2019-10-31 12:41:12 +11:00
EorzeaTimeOffset = 0x03B8, // updated 5.1
2018-06-02 18:09:29 +02:00
2020-04-07 20:53:12 +09:00
EquipDisplayFlags = 0x010D, // updated 5.25
/// Housing //////////////////////////////////////
2019-06-28 21:15:22 +10:00
LandSetInitialize = 0x0234, // updated 5.0
LandUpdate = 0x0235, // updated 5.0
YardObjectSpawn = 0x0236, // updated 5.0
HousingIndoorInitialize = 0x0237, // updated 5.0
LandPriceUpdate = 0x0238, // updated 5.0
2020-05-01 20:19:10 +09:00
LandInfoSign = 0x037F, // updated 5.25
2019-06-28 21:15:22 +10:00
LandRename = 0x023A, // updated 5.0
HousingEstateGreeting = 0x023B, // updated 5.0
HousingUpdateLandFlagsSlot = 0x023C, // updated 5.0
2020-04-07 20:53:12 +09:00
HousingLandFlags = 0x0177, // updated 5.25
2019-06-28 21:15:22 +10:00
HousingShowEstateGuestAccess = 0x023E, // updated 5.0
2020-05-01 20:19:10 +09:00
HousingObjectInitialize = 0x0333, // updated 5.25
2019-06-28 21:15:22 +10:00
HousingInternalObjectSpawn = 0x241, // updated 5.0
2020-05-01 20:19:10 +09:00
HousingWardInfo = 0x01D1, // updated 5.25
2019-06-28 21:15:22 +10:00
HousingObjectMove = 0x0244, // updated 5.0
SharedEstateSettingsResponse = 0x0245, // updated 4.5
LandUpdateHouseName = 0x0257, // updated 4.5
2018-11-28 00:05:57 +11:00
LandSetMap = 0x025B, // updated 4.5
//////////////////////////////////////////////////
2018-11-01 23:56:43 +01:00
DuelChallenge = 0x0277, // 4.2; this is responsible for opening the ui
PerformNote = 0x0286, // updated 4.3
2020-04-07 20:53:12 +09:00
PrepareZoning = 0x03B3, // updated 5.25
ActorGauge = 0x007D, // updated 5.25
2018-07-15 23:59:15 +02:00
2019-10-10 22:58:59 +02:00
// daily quest info -> without them sent, login will take longer...
2020-04-07 20:53:12 +09:00
DailyQuests = 0x031E, // updated 5.25
DailyQuestRepeatFlags = 0x00A7, // updated 5.25
/// Doman Mahjong //////////////////////////////////////
2019-06-30 20:47:39 +10:00
MahjongOpenGui = 0x02A4, // only available in mahjong instance
MahjongNextRound = 0x02BD, // initial hands(baipai), # of riichi(wat), winds, honba, score and stuff
MahjongPlayerAction = 0x02BE, // tsumo(as in drawing a tile) called chi/pon/kan/riichi
MahjongEndRoundTsumo = 0x02BF, // called tsumo
MahjongEndRoundRon = 0x2C0, // called ron or double ron (waiting for action must be flagged from discard packet to call)
MahjongTileDiscard = 0x02C1, // giri (discarding a tile.) chi(1)/pon(2)/kan(4)/ron(8) flags etc..
MahjongPlayersInfo = 0x02C2, // actor id, name, rating and stuff..
// 2C3 and 2C4 are currently unknown
MahjongEndRoundDraw = 0x02C5, // self explanatory
MahjongEndGame = 0x02C6, // finished oorasu(all-last) round; shows a result screen.
2018-11-01 23:56:43 +01:00
};
2018-11-01 23:56:43 +01:00
/**
* Client IPC Zone Type Codes.
*/
enum ClientZoneIpcType : uint16_t
{
2020-04-07 20:53:12 +09:00
PingHandler = 0x017A, // updated 5.25
InitHandler = 0x03B9, // updated 5.25
2020-04-07 20:53:12 +09:00
FinishLoadingHandler = 0x008A, // updated 5.25
2020-05-01 20:19:10 +09:00
CFCommenceHandler = 0x0228, // updated 5.25
2020-05-01 20:19:10 +09:00
CFCancelHandler = 0x013E, // updated 5.25
CFRegisterDuty = 0x0180, // updated 5.25
CFRegisterRoulette = 0x0395, // updated 5.25
PlayTimeHandler = 0x02FE, // updated 5.25
2020-04-07 20:53:12 +09:00
LogoutHandler = 0x00B7, // updated 5.25
2019-10-31 12:04:50 +11:00
CancelLogout = 0x008F, // updated 5.1
2018-11-01 23:56:43 +01:00
CFDutyInfoHandler = 0x0078, // updated 4.2
2018-11-01 23:56:43 +01:00
SocialReqSendHandler = 0x00AE, // updated 4.1
CreateCrossWorldLS = 0x00AF, // updated 4.3
2020-04-07 20:53:12 +09:00
ChatHandler = 0x0189, // updated 5.25
2020-04-07 20:53:12 +09:00
SocialListHandler = 0x0371, // updated 5.25
2020-04-14 21:14:23 +09:00
SetSearchInfoHandler = 0x00FA, // updated 5.25
2020-04-07 20:53:12 +09:00
ReqSearchInfoHandler = 0x0366, // updated 5.25
2019-06-28 20:32:42 +10:00
ReqExamineSearchCommentHandler = 0x00E7, // updated 5.0
2019-06-30 20:06:14 +10:00
ReqRemovePlayerFromBlacklist = 0x00F1, // updated 5.0
2020-04-07 20:53:12 +09:00
BlackListHandler = 0x0354, // updated 5.25
2019-06-30 20:06:14 +10:00
PlayerSearchHandler = 0x00F4, // updated 5.0
2020-04-07 20:53:12 +09:00
LinkshellListHandler = 0x01D4, // updated 5.25
2019-01-08 22:50:16 +11:00
MarketBoardRequestItemListingInfo = 0x0102, // updated 4.5
MarketBoardRequestItemListings = 0x0103, // updated 4.5
MarketBoardSearch = 0x0107, // updated 4.5
2018-12-02 23:26:21 +11:00
2019-01-08 20:36:31 +11:00
ReqExamineFcInfo = 0x0113, // updated 4.1
2018-11-01 23:56:43 +01:00
FcInfoReqHandler = 0x011A, // updated 4.2
FreeCompanyUpdateShortMessageHandler = 0x0123, // added 5.0
2018-11-01 23:56:43 +01:00
ReqMarketWishList = 0x012C, // updated 4.3
2018-11-01 23:56:43 +01:00
ReqJoinNoviceNetwork = 0x0129, // updated 4.2
2020-05-01 20:19:10 +09:00
ReqCountdownInitiate = 0x009A, // updated 5.25
ReqCountdownCancel = 0x0244, // updated 5.25
2020-04-07 20:53:12 +09:00
ZoneLineHandler = 0x0214, // updated 5.25
ClientTrigger = 0x017D, // updated 5.25
2020-04-14 21:14:23 +09:00
DiscoveryHandler = 0x02C8, // updated 5.25
2018-02-25 15:16:42 +11:00
PlaceFieldMarkerPreset = 0x023F, // updated 5.25
PlaceFieldMarker = 0x01BA, // updated 5.25
2020-04-07 20:53:12 +09:00
SkillHandler = 0x0241, // updated 5.25
GMCommand1 = 0x01EC, // updated 5.25
GMCommand2 = 0x0368, // updated 5.25
2020-03-18 00:58:07 +09:00
AoESkillHandler = 0x0364, // updated 5.21 hotfix
2018-02-04 16:40:29 +11:00
2020-04-07 20:53:12 +09:00
UpdatePositionHandler = 0x014D, // updated 5.25
2020-04-07 20:53:12 +09:00
InventoryModifyHandler = 0x0179, // updated 5.25
2019-11-12 10:26:36 -08:00
2019-07-21 17:54:19 +10:00
InventoryEquipRecommendedItems = 0x0149, // updated 5.0
2018-07-06 20:32:36 +10:00
2019-06-28 21:06:23 +10:00
ReqPlaceHousingItem = 0x014B, // updated 5.0
2019-10-28 22:18:23 +01:00
BuildPresetHandler = 0x0150, // updated 5.0
2018-12-26 18:11:18 +11:00
2020-04-07 20:53:12 +09:00
TalkEventHandler = 0x030F, // updated 5.25
EmoteEventHandler = 0x01DD, // updated 5.25
WithinRangeEventHandler = 0x0165, // updated 5.25
OutOfRangeEventHandler = 0x01EB, // updated 5.25
EnterTeriEventHandler = 0x00F8, // updated 5.25
2019-06-28 21:06:23 +10:00
ShopEventHandler = 0x0156, // updated 5.0
2020-04-07 20:53:12 +09:00
ReturnEventHandler = 0x00BB, // updated 5.25
TradeReturnEventHandler = 0x03B6, // updated 5.25
TradeMultipleReturnEventHander = 0x02B0, // updated 5.25
2019-03-17 22:26:14 +01:00
LinkshellEventHandler = 0x016B, // updated 4.5
LinkshellEventHandler1 = 0x016C, // updated 4.5
2020-04-07 20:53:12 +09:00
ReqEquipDisplayFlagsChange = 0x0202, // updated 5.25
2019-06-28 21:06:23 +10:00
2019-10-31 12:04:50 +11:00
LandRenameHandler = 0xF177, // updated 5.0
2019-06-28 21:06:23 +10:00
HousingUpdateHouseGreeting = 0x0178, // updated 5.0
2020-05-01 20:19:10 +09:00
HousingUpdateObjectPosition = 0x0159, // updated 5.25
2018-11-11 14:27:39 +01:00
2019-06-28 21:06:23 +10:00
SetSharedEstateSettings = 0x017B, // updated 5.0
2017-08-23 23:58:14 +02:00
2020-03-26 14:21:05 +01:00
UpdatePositionInstance = 0x0080, // updated 5.21 hotfix
2019-07-14 17:34:55 +10:00
2018-11-01 23:56:43 +01:00
PerformNoteHandler = 0x029B, // updated 4.3
2020-05-22 14:07:05 +09:00
WorldInteractionHandler = 0x0285, // updated 5.25
ShopMessage = 0x00C1, // updated 5.25
LootMessage = 0x00B1, // updated 5.25
2018-11-01 23:56:43 +01:00
};
2018-11-01 23:56:43 +01:00
////////////////////////////////////////////////////////////////////////////////
/// Chat Connection IPC Codes
/**
* Server IPC Chat Type Codes.
*/
enum ServerChatIpcType : uint16_t
{
Tell = 0x0064, // updated for sb
TellErrNotFound = 0x0066,
2019-08-07 21:42:38 -07:00
FreeCompanyEvent = 0x012C, // added 5.0
2018-11-01 23:56:43 +01:00
};
2018-11-01 23:56:43 +01:00
/**
* Client IPC Chat Type Codes.
*/
enum ClientChatIpcType : uint16_t
{
TellReq = 0x0064,
};
2018-11-01 23:56:43 +01:00
}
#endif /*_CORE_NETWORK_PACKETS_IPCS_H*/