From fd7a688b10a8eb20d77b3657b30767c169a1affe Mon Sep 17 00:00:00 2001 From: NotAdam Date: Tue, 18 Sep 2018 20:20:25 +1000 Subject: [PATCH] opcode updates - part 1 #383 --- src/common/Network/PacketDef/Ipcs.h | 50 +++++++++---------- src/servers/sapphire_lobby/GameConnection.cpp | 4 +- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/common/Network/PacketDef/Ipcs.h b/src/common/Network/PacketDef/Ipcs.h index 263fb39d..1cc19abf 100644 --- a/src/common/Network/PacketDef/Ipcs.h +++ b/src/common/Network/PacketDef/Ipcs.h @@ -119,34 +119,34 @@ enum ServerZoneIpcType : ActorMove = 0x0174, // updated 4.3 ActorSetPos = 0x0176, // updated 4.3 - ActorCast = 0x0178, // updated 4.3 + ActorCast = 0x0174, // updated 4.4 - PartyList = 0x017A, // updated 4.3 - HateList = 0x017B, // updated 4.3 + PartyList = 0x0176, // updated 4.4 + HateList = 0x0177, // updated 4.4 - ObjectSpawn = 0x017D, // updated 4.3 - ObjectDespawn = 0x017E, // updated 4.3 + ObjectSpawn = 0x0179, // updated 4.4 + ObjectDespawn = 0x017A, // updated 4.4 - SetLevelSync = 0x017F, // updated 4.3 - SilentSetClassJob = 0x0180, // updated 4.3 - seems to be the case, not sure if it's actually used for anything + SetLevelSync = 0x017B, // updated 4.4 + SilentSetClassJob = 0x017C, // updated 4.4 - seems to be the case, not sure if it's actually used for anything - InitUI = 0x0181, // updated 4.3 - PlayerStats = 0x0182, // updated 4.3 - ActorOwner = 0x0183, // updated 4.3 ? - PlayerStateFlags = 0x0184, // updated 4.3 - PlayerClassInfo = 0x0185, // updated 4.3 - ModelEquip = 0x0186, // updated 4.3 - Examine = 0x0187, // updated 4.3 - CharaNameReq = 0x0189, // updated 4.3 - UpdateClassInfo = 0x018A, // updated 4.3 + InitUI = 0x017D, // updated 4.4 + PlayerStats = 0x017E, // updated 4.4 + ActorOwner = 0x017F, // updated 4.4 ? + PlayerStateFlags = 0x0180, // updated 4.4 + PlayerClassInfo = 0x0181, // updated 4.4 + ModelEquip = 0x0182, // updated 4.4 + Examine = 0x0183, // updated 4.4 + CharaNameReq = 0x0185, // updated 4.4 + UpdateClassInfo = 0x0186, // updated 4.4 - ItemInfo = 0x0190, // updated 4.3 - ContainerInfo = 0x0192, // updated 4.3 - InventoryTransactionFinish = 0x0193, // updated 4.3 - InventoryTransaction = 0x0194, // updated 4.3 - CurrencyCrystalInfo = 0x0195, // updated 4.3 - InventoryActionAck = 0x0197, // updated 4.3 - UpdateInventorySlot = 0x0198, // updated 4.3 + ItemInfo = 0x018C, // updated 4.4 + ContainerInfo = 0x018D, // updated 4.4 + InventoryTransactionFinish = 0x018E, // updated 4.4 + InventoryTransaction = 0x018F, // updated 4.4 + CurrencyCrystalInfo = 0x0190, // updated 4.4 + InventoryActionAck = 0x0193, // updated 4.4 + UpdateInventorySlot = 0x0194, // updated 4.4 EventPlay = 0x01A6, // updated 4.3 EventOpenGilShop = 0x01AD, // updated 4.3 @@ -197,8 +197,8 @@ enum ServerZoneIpcType : // Unknown IPC types that still need to be sent // TODO: figure all these out properly - IPCTYPE_UNK_320 = 0x024C, // updated 4.3 - IPCTYPE_UNK_322 = 0x024E, // updated 4.3 + IPCTYPE_UNK_320 = 0x0248, // updated 4.4 + IPCTYPE_UNK_322 = 0x024B, // updated 4.4 }; diff --git a/src/servers/sapphire_lobby/GameConnection.cpp b/src/servers/sapphire_lobby/GameConnection.cpp index f5fccb94..ce47eee1 100644 --- a/src/servers/sapphire_lobby/GameConnection.cpp +++ b/src/servers/sapphire_lobby/GameConnection.cpp @@ -465,8 +465,8 @@ void Core::Network::GameConnection::generateEncryptionKey( uint32_t key, const s m_baseKey[ 2 ] = 0x34; m_baseKey[ 3 ] = 0x12; memcpy( m_baseKey + 0x04, &key, 4 ); - m_baseKey[ 8 ] = 0xCC; - m_baseKey[ 9 ] = 0x10; + m_baseKey[ 8 ] = 0x30; + m_baseKey[ 9 ] = 0x11; memcpy( ( char* ) m_baseKey + 0x0C, keyPhrase.c_str(), keyPhrase.size() ); Core::Util::md5( m_baseKey, m_encKey, 0x2C ); }