mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 22:57:45 +00:00
Quest mobs will be highlighted as such. Retreating mobs will have the target properly reset. Spawning range slightly decreased
This commit is contained in:
parent
8db8a1d0e5
commit
14cbda944e
4 changed files with 7 additions and 4 deletions
|
@ -18,6 +18,7 @@ namespace Sapphire::Common
|
|||
const uint8_t MAX_DISPLAYED_EOBJS = 40;
|
||||
|
||||
const int32_t INVALID_GAME_OBJECT_ID = 0xE0000000;
|
||||
const uint64_t INVALID_GAME_OBJECT_ID64 = 0xE0000000;
|
||||
|
||||
struct FFXIVARR_POSITION3
|
||||
{
|
||||
|
|
|
@ -489,7 +489,7 @@ void Sapphire::Entity::BNpc::update( int64_t currTime )
|
|||
if( distanceOrig > maxDistanceToOrigin )
|
||||
{
|
||||
hateListClear();
|
||||
changeTarget( INVALID_GAME_OBJECT_ID );
|
||||
changeTarget( INVALID_GAME_OBJECT_ID64 );
|
||||
setStance( Stance::Passive );
|
||||
//setOwner( nullptr );
|
||||
m_state = BNpcState::Retreat;
|
||||
|
@ -508,7 +508,7 @@ void Sapphire::Entity::BNpc::update( int64_t currTime )
|
|||
}
|
||||
else
|
||||
{
|
||||
changeTarget( INVALID_GAME_OBJECT_ID );
|
||||
changeTarget( INVALID_GAME_OBJECT_ID64 );
|
||||
setStance( Stance::Passive );
|
||||
//setOwner( nullptr );
|
||||
m_state = BNpcState::Retreat;
|
||||
|
|
|
@ -58,7 +58,9 @@ namespace Sapphire::Network::Packets::Server
|
|||
|
||||
m_data.classJob = 0;
|
||||
|
||||
m_data.targetId = Common::INVALID_GAME_OBJECT_ID;
|
||||
m_data.targetId = Common::INVALID_GAME_OBJECT_ID64;
|
||||
m_data.spawnerId = Common::INVALID_GAME_OBJECT_ID64;
|
||||
m_data.parentActorId = Common::INVALID_GAME_OBJECT_ID64;
|
||||
|
||||
//m_data.u23 = 0x04;
|
||||
//m_data.u24 = 256;
|
||||
|
|
|
@ -101,7 +101,7 @@ bool Sapphire::World::ServerMgr::loadSettings( int32_t argc, char* argv[] )
|
|||
m_config.network.disconnectTimeout = pConfig->getValue< uint16_t >( "Network", "DisconnectTimeout", 20 );
|
||||
m_config.network.listenIp = pConfig->getValue< std::string >( "Network", "ListenIp", "0.0.0.0" );
|
||||
m_config.network.listenPort = pConfig->getValue< uint16_t >( "Network", "ListenPort", 54992 );
|
||||
m_config.network.inRangeDistance = pConfig->getValue< float >( "Network", "InRangeDistance", 100.f );
|
||||
m_config.network.inRangeDistance = pConfig->getValue< float >( "Network", "InRangeDistance", 80.f );
|
||||
|
||||
m_config.motd = pConfig->getValue< std::string >( "General", "MotD", "" );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue