mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
#58 - Fixed roleplaying tag not showing up
This commit is contained in:
parent
7c9594ee7f
commit
e7712bb346
4 changed files with 13 additions and 6 deletions
|
@ -699,6 +699,8 @@ namespace Core {
|
||||||
DeathAnimation = 0x0E,
|
DeathAnimation = 0x0E,
|
||||||
CastInterrupt = 0x0F,
|
CastInterrupt = 0x0F,
|
||||||
|
|
||||||
|
ActionStart = 0x11,
|
||||||
|
|
||||||
StatusEffectGain = 0x14,
|
StatusEffectGain = 0x14,
|
||||||
StatusEffectLose = 0x15,
|
StatusEffectLose = 0x15,
|
||||||
|
|
||||||
|
|
|
@ -57,13 +57,14 @@ void Core::Network::GameConnection::skillHandler( Core::Network::Packets::GamePa
|
||||||
|
|
||||||
uint64_t targetId = pInPacket->getValAt< uint64_t >( 0x30 );
|
uint64_t targetId = pInPacket->getValAt< uint64_t >( 0x30 );
|
||||||
|
|
||||||
|
|
||||||
if( action < 1000000 ) // normal action
|
if( action < 1000000 ) // normal action
|
||||||
{
|
{
|
||||||
std::string actionIdStr = boost::str( boost::format( "%|04X|" ) % action );
|
std::string actionIdStr = boost::str( boost::format( "%|04X|" ) % action );
|
||||||
pPlayer->sendDebug( "---------------------------------------" );
|
pPlayer->sendDebug( "---------------------------------------" );
|
||||||
pPlayer->sendDebug( "ActionHandler ( " + actionIdStr + " | " + g_exdData.m_actionInfoMap[action].name + " | " + std::to_string( targetId ) + " )" );
|
pPlayer->sendDebug( "ActionHandler ( " + actionIdStr + " | " + g_exdData.m_actionInfoMap[action].name + " | " + std::to_string( targetId ) + " )" );
|
||||||
|
|
||||||
|
pPlayer->queuePacket( ActorControlPacket142( pPlayer->getId(), ActorControlType::ActionStart, 0x01, action ) );
|
||||||
|
|
||||||
if( action == 5 )
|
if( action == 5 )
|
||||||
{
|
{
|
||||||
auto currentAction = pPlayer->getCurrentAction();
|
auto currentAction = pPlayer->getCurrentAction();
|
||||||
|
|
|
@ -132,6 +132,7 @@ Core::Common::OnlineStatus Core::Entity::Player::getOnlineStatus()
|
||||||
uint64_t dcMask = uint64_t( 1 ) << static_cast< uint32_t >( OnlineStatus::Disconnected );
|
uint64_t dcMask = uint64_t( 1 ) << static_cast< uint32_t >( OnlineStatus::Disconnected );
|
||||||
uint64_t meldMask = uint64_t( 1 ) << static_cast< uint32_t >( OnlineStatus::LfMeld );
|
uint64_t meldMask = uint64_t( 1 ) << static_cast< uint32_t >( OnlineStatus::LfMeld );
|
||||||
uint64_t ptMask = uint64_t( 1 ) << static_cast< uint32_t >( OnlineStatus::LfParty );
|
uint64_t ptMask = uint64_t( 1 ) << static_cast< uint32_t >( OnlineStatus::LfParty );
|
||||||
|
uint64_t rpMask = uint64_t( 1 ) << static_cast< uint32_t >( OnlineStatus::RolePlaying );
|
||||||
|
|
||||||
OnlineStatus status = OnlineStatus::Online;
|
OnlineStatus status = OnlineStatus::Online;
|
||||||
|
|
||||||
|
@ -154,6 +155,9 @@ Core::Common::OnlineStatus Core::Entity::Player::getOnlineStatus()
|
||||||
if( m_onlineStatus & ptMask )
|
if( m_onlineStatus & ptMask )
|
||||||
status = OnlineStatus::LfParty;
|
status = OnlineStatus::LfParty;
|
||||||
|
|
||||||
|
if( m_onlineStatus & rpMask )
|
||||||
|
status = OnlineStatus::RolePlaying;
|
||||||
|
|
||||||
if( hasStateFlag( PlayerStateFlag::WatchingCutscene ) || hasStateFlag( PlayerStateFlag::WatchingCutscene1 ) )
|
if( hasStateFlag( PlayerStateFlag::WatchingCutscene ) || hasStateFlag( PlayerStateFlag::WatchingCutscene1 ) )
|
||||||
status = OnlineStatus::Cutscene;
|
status = OnlineStatus::Cutscene;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue