1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-25 02:57:45 +00:00

Merge pull request #1 from JeidoUran/Messy6.08

more 6.08 work
This commit is contained in:
Reyli 2022-02-08 18:22:39 -06:00 committed by GitHub
commit a719880870
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 17 deletions

View file

@ -22,20 +22,21 @@ namespace Sapphire::Common
const int32_t INVALID_GAME_OBJECT_ID = 0xE0000000;
const uint64_t INVALID_GAME_OBJECT_ID64 = 0xE0000000;
const uint16_t MAX_PLAYER_LEVEL = 80;
const uint16_t MAX_PLAYER_LEVEL = 90;
const uint8_t CURRENT_EXPANSION_ID = 4;
const uint8_t CLASSJOB_TOTAL = 38;
const uint8_t CLASSJOB_TOTAL = 40;
const uint8_t CLASSJOB_SLOTS = 30;
const uint8_t TOWN_COUNT = 6;
const uint8_t TOWN_COUNT = 7;
/*!
* @brief The maximum length (in ms) of a combo before it is canceled/voided.
*
* The client has a combo timer of about 12 seconds, with a 0.5 second grace on top for latency considerations.
* Changed to 15 seconds in Shadowbringers, then 30 seconds in Endwalker.
*/
const uint16_t MAX_COMBO_LENGTH = 12500;
const uint16_t MAX_COMBO_LENGTH = 30000;
struct FFXIVARR_POSITION3_U16
{

View file

@ -43,8 +43,8 @@ namespace Sapphire::Network::Packets
*/
enum ServerZoneIpcType : uint16_t
{
Ping = 0x02A8, // updated 5.58 hotfix
Init = 0x0182, // updated 5.58 hotfix
Ping = 0x00FA, // updated 6.08
Init = 0x0182, // updated 6.08
ActorFreeSpawn = 0x0082, // updated 6.08
InitZone = 0x01EB, // updated 6.08
@ -176,8 +176,8 @@ namespace Sapphire::Network::Packets
SetLevelSync = 0x1186, // not updated for 4.4, not sure what it is anymore
ItemInfo = 0x01CC, // updated 5.58 hotfix
ContainerInfo = 0x025C, // updated 5.58 hotfix
ItemInfo = 0x02A9, // updated 6.08
ContainerInfo = 0x037A, // updated 6.08
InventoryTransactionFinish = 0x0176, // updated 5.58 hotfix
InventoryTransaction = 0x027F, // updated 5.58 hotfix
CurrencyCrystalInfo = 0x0345, // updated 5.58 hotfix
@ -329,8 +329,8 @@ namespace Sapphire::Network::Packets
CFCancelHandler = 0x02B2, // updated 5.58 hotfix
CFRegisterDuty = 0x01BD, // updated 5.58 hotfix
CFRegisterRoulette = 0x037A, // updated 5.58 hotfix
PlayTimeHandler = 0x02B7, // updated 5.58 hotfix
LogoutHandler = 0x00A0, // updated 5.58 hotfix
PlayTimeHandler = 0x0279, // updated 6.08
LogoutHandler = 0x0125, // updated 6.08
CancelLogout = 0x01AC, // updated 5.58 hotfix
CFDutyInfoHandler = 0xF078, // updated 4.2
@ -380,8 +380,8 @@ namespace Sapphire::Network::Packets
PlaceFieldMarkerPreset = 0x026D, // updated 5.58 hotfix
PlaceFieldMarker = 0x0371, // updated 5.58 hotfix
SkillHandler = 0x008E, // updated 6.08
GMCommand1 = 0x0272, // updated 5.58 hotfix
GMCommand2 = 0x00E9, // updated 5.58 hotfix
GMCommand1 = 0x0290, // updated 6.08
GMCommand2 = 0x0203, // updated 6.08
AoESkillHandler = 0x0152, // updated 5.58 hotfix
UpdatePositionHandler = 0x0147, // updated 6.08

View file

@ -1130,21 +1130,21 @@ namespace Sapphire::Entity
uint16_t m_activeTitle;
uint8_t m_titleList[48];
uint8_t m_howTo[34];
uint8_t m_minions[55];
uint8_t m_howTo[35];
uint8_t m_minions[56];
uint8_t m_mountGuide[29];
uint8_t m_homePoint;
uint8_t m_startTown;
uint16_t m_townWarpFstFlags;
uint8_t m_questCompleteFlags[487];
uint8_t m_discovery[445];
uint8_t m_discovery[464];
uint32_t m_playTime;
uint16_t m_classArray[ Common::CLASSJOB_SLOTS ];
uint32_t m_expArray[ Common::CLASSJOB_SLOTS ];
uint8_t m_aetheryte[21];
uint8_t m_unlocks[64];
uint8_t m_orchestrion[40];
uint8_t m_orchestrion[40]; //[64] in PlayerSetup, but setting it to that value crashes world on login
uint8_t m_openingSequence;

View file

@ -19,7 +19,7 @@
using namespace Sapphire::Math;
using namespace Sapphire::Entity;
const int levelTable[81][6] =
const int levelTable[91][6] =
{
// MAIN,SUB,DIV,HP,ELMT,THREAT
{ 1, 1, 1, 1, 1, 1 },
@ -106,6 +106,19 @@ const int levelTable[81][6] =
{ 330, 376, 3034, 3600, 295, 466 },
{ 335, 378, 3164, 3600, 295, 466 },
{ 340, 380, 3300, 3600, 569, 569 },
// todo: add proper endwalker values - hp/elmt/threat
// copypasta from shb right now
{ 296, 365, 2263, 3600, 295, 466 },
{ 300, 366, 2360, 3600, 295, 466 },
{ 305, 367, 2461, 3600, 295, 466 },
{ 310, 368, 2566, 3600, 295, 466 },
{ 315, 370, 2676, 3600, 295, 466 },
{ 320, 372, 2790, 3600, 295, 466 },
{ 325, 374, 2910, 3600, 295, 466 },
{ 330, 376, 3034, 3600, 295, 466 },
{ 335, 378, 3164, 3600, 295, 466 },
{ 340, 380, 3300, 3600, 569, 569 },
};
std::random_device CalcStats::dev;