1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 14:37:44 +00:00

ZoneLine chat output

This commit is contained in:
amibu 2017-08-09 15:02:24 +02:00
parent eeee74d523
commit e6c9c959f2

View file

@ -642,6 +642,8 @@ void Core::Network::GameConnection::zoneLineHandler( Core::Network::Packets::Gam
{ {
uint32_t zoneLineId = pInPacket->getValAt< uint32_t >( 0x20 ); uint32_t zoneLineId = pInPacket->getValAt< uint32_t >( 0x20 );
pPlayer->sendDebug( "Walking ZoneLine " + std::to_string( zoneLineId ) );
auto pZone = pPlayer->getCurrentZone(); auto pZone = pPlayer->getCurrentZone();
auto pLine = g_zoneMgr.getZonePosition( zoneLineId ); auto pLine = g_zoneMgr.getZonePosition( zoneLineId );
@ -652,7 +654,7 @@ void Core::Network::GameConnection::zoneLineHandler( Core::Network::Packets::Gam
if( pLine != nullptr ) if( pLine != nullptr )
{ {
g_log.debug( "ZoneLine " + std::to_string( zoneLineId ) + " found." ); pPlayer->sendDebug( "ZoneLine " + std::to_string( zoneLineId ) + " found." );
targetPos = pLine->getTargetPosition(); targetPos = pLine->getTargetPosition();
targetZone = pLine->getTargetZoneId(); targetZone = pLine->getTargetZoneId();
rotation = pLine->getTargetRotation(); rotation = pLine->getTargetRotation();
@ -667,7 +669,7 @@ void Core::Network::GameConnection::zoneLineHandler( Core::Network::Packets::Gam
else else
{ {
// No zoneline found, revert to last zone // No zoneline found, revert to last zone
g_log.debug( "ZoneLine " + std::to_string( zoneLineId ) + " not found." ); pPlayer->sendUrgent( "ZoneLine " + std::to_string( zoneLineId ) + " not found." );
targetPos.x = 0; targetPos.x = 0;
targetPos.y = 0; targetPos.y = 0;
targetPos.z = 0; targetPos.z = 0;