mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +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:
commit
7de3d73e78
5 changed files with 16 additions and 3 deletions
|
@ -218,7 +218,18 @@ namespace Sapphire::Network::ActorControl
|
||||||
SetFavorite = 0x1FC,
|
SetFavorite = 0x1FC,
|
||||||
LearnTeleport = 0x1FD,
|
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,
|
ArmoryErrorMsg = 0x201,
|
||||||
|
|
||||||
AchievementPopup = 0x203,
|
AchievementPopup = 0x203,
|
||||||
|
|
|
@ -1508,6 +1508,7 @@ void Player::sendZonePackets()
|
||||||
sendHuntingLog();
|
sendHuntingLog();
|
||||||
|
|
||||||
sendStats();
|
sendStats();
|
||||||
|
sendStatusUpdate();
|
||||||
|
|
||||||
// only initialize the UI if the player in fact just logged in.
|
// only initialize the UI if the player in fact just logged in.
|
||||||
if( isLogin() )
|
if( isLogin() )
|
||||||
|
|
|
@ -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_autoAttackDmg = static_cast< float >( m_weaponDmg * m_delayMs ) / 3000;
|
||||||
m_category = static_cast< Common::ItemUICategory >( itemInfo->data().UICategory );
|
m_category = static_cast< Common::ItemUICategory >( itemInfo->data().UICategory );
|
||||||
m_slot = itemInfo->data().Slot;
|
m_slot = itemInfo->data().Slot;
|
||||||
m_itemLevel = itemInfo->data().EquipLevel;
|
m_itemLevel = itemInfo->data().Level;
|
||||||
m_maxStackSize = itemInfo->data().StackMax;
|
m_maxStackSize = itemInfo->data().StackMax;
|
||||||
// EXD TODO: Not sure what this maps to
|
// EXD TODO: Not sure what this maps to
|
||||||
//m_additionalData = itemInfo->additionalData;
|
//m_additionalData = itemInfo->additionalData;
|
||||||
|
|
|
@ -62,7 +62,6 @@ void PlayerMgr::onOnlineStatusChanged( Entity::Player& player, bool updateProfil
|
||||||
void PlayerMgr::onEquipDisplayFlagsChanged( Entity::Player& player )
|
void PlayerMgr::onEquipDisplayFlagsChanged( Entity::Player& player )
|
||||||
{
|
{
|
||||||
auto& server = Common::Service< World::WorldServer >::ref();
|
auto& server = Common::Service< World::WorldServer >::ref();
|
||||||
PlayerMgr::sendDebug( player, "EquipDisplayFlag CHANGE: {0}", player.getEquipDisplayFlags() );
|
|
||||||
auto paramPacket = makeZonePacket< FFXIVIpcConfig >( player.getId() );
|
auto paramPacket = makeZonePacket< FFXIVIpcConfig >( player.getId() );
|
||||||
paramPacket->data().flag = player.getEquipDisplayFlags();
|
paramPacket->data().flag = player.getEquipDisplayFlags();
|
||||||
player.sendToInRangeSet( paramPacket, true );
|
player.sendToInRangeSet( paramPacket, true );
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include "Forwards.h"
|
#include "Forwards.h"
|
||||||
#include <Service.h>
|
#include <Service.h>
|
||||||
#include <Manager/TerritoryMgr.h>
|
#include <Manager/TerritoryMgr.h>
|
||||||
|
#include <Manager/PlayerMgr.h>
|
||||||
|
|
||||||
using namespace Sapphire::Common;
|
using namespace Sapphire::Common;
|
||||||
using namespace Sapphire::Network::Packets;
|
using namespace Sapphire::Network::Packets;
|
||||||
|
@ -595,6 +596,7 @@ void Sapphire::Network::GameConnection::commandHandler( const Packets::FFXIVARR_
|
||||||
auto& warpMgr = Service< WarpMgr >::ref();
|
auto& warpMgr = Service< WarpMgr >::ref();
|
||||||
warpMgr.finishWarp( player );
|
warpMgr.finishWarp( player );
|
||||||
player.setLoadingComplete( true );
|
player.setLoadingComplete( true );
|
||||||
|
Service< World::Manager::PlayerMgr >::ref().onEquipDisplayFlagsChanged( player );
|
||||||
if( player.isLogin() )
|
if( player.isLogin() )
|
||||||
player.setIsLogin( false );
|
player.setIsLogin( false );
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue