1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 06:47:45 +00:00

Merge pull request #794 from Skyliegirl33/feature-impl

[3.x] Minor fixes (TP, item level calc, equip flags), added MapUpdate actor controls
This commit is contained in:
Mordred 2022-02-20 23:01:37 +01:00 committed by GitHub
commit 7de3d73e78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 3 deletions

View file

@ -218,7 +218,18 @@ namespace Sapphire::Network::ActorControl
SetFavorite = 0x1FC,
LearnTeleport = 0x1FD,
OpenRecommendationGuide = 0x200,
/*!
* param1 = event type bitmask
* 1 = Quest
* 2 = GuildLeveAssignment
* 4 = GuildOrderGuide
* 8 = TripleTriad
* 16 = CustomTalk
* 32 = PreHandler
*/
BeginMapUpdate = 0x1FF,
FinishMapUpdate = 0x200,
ArmoryErrorMsg = 0x201,
AchievementPopup = 0x203,

View file

@ -1508,6 +1508,7 @@ void Player::sendZonePackets()
sendHuntingLog();
sendStats();
sendStatusUpdate();
// only initialize the UI if the player in fact just logged in.
if( isLogin() )

View file

@ -26,7 +26,7 @@ Sapphire::Item::Item( uint64_t uId, uint32_t catalogId, bool isHq ) :
m_autoAttackDmg = static_cast< float >( m_weaponDmg * m_delayMs ) / 3000;
m_category = static_cast< Common::ItemUICategory >( itemInfo->data().UICategory );
m_slot = itemInfo->data().Slot;
m_itemLevel = itemInfo->data().EquipLevel;
m_itemLevel = itemInfo->data().Level;
m_maxStackSize = itemInfo->data().StackMax;
// EXD TODO: Not sure what this maps to
//m_additionalData = itemInfo->additionalData;

View file

@ -62,7 +62,6 @@ void PlayerMgr::onOnlineStatusChanged( Entity::Player& player, bool updateProfil
void PlayerMgr::onEquipDisplayFlagsChanged( Entity::Player& player )
{
auto& server = Common::Service< World::WorldServer >::ref();
PlayerMgr::sendDebug( player, "EquipDisplayFlag CHANGE: {0}", player.getEquipDisplayFlags() );
auto paramPacket = makeZonePacket< FFXIVIpcConfig >( player.getId() );
paramPacket->data().flag = player.getEquipDisplayFlags();
player.sendToInRangeSet( paramPacket, true );

View file

@ -25,6 +25,7 @@
#include "Forwards.h"
#include <Service.h>
#include <Manager/TerritoryMgr.h>
#include <Manager/PlayerMgr.h>
using namespace Sapphire::Common;
using namespace Sapphire::Network::Packets;
@ -595,6 +596,7 @@ void Sapphire::Network::GameConnection::commandHandler( const Packets::FFXIVARR_
auto& warpMgr = Service< WarpMgr >::ref();
warpMgr.finishWarp( player );
player.setLoadingComplete( true );
Service< World::Manager::PlayerMgr >::ref().onEquipDisplayFlagsChanged( player );
if( player.isLogin() )
player.setIsLogin( false );
break;