mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 11:07:45 +00:00
update code
This commit is contained in:
parent
16b0f06ac7
commit
619eafe8c3
1 changed files with 11 additions and 11 deletions
|
@ -511,18 +511,18 @@ bool Sapphire::Entity::Player::exitInstance()
|
||||||
{
|
{
|
||||||
auto& teriMgr = Common::Service< TerritoryMgr >::ref();
|
auto& teriMgr = Common::Service< TerritoryMgr >::ref();
|
||||||
|
|
||||||
if( auto d = getCurrentTerritory()->getAsDirector() )
|
auto d = getCurrentTerritory()->getAsDirector();
|
||||||
if( d->getContentFinderConditionId() > 0 )
|
if( d && d->getContentFinderConditionId() > 0 )
|
||||||
{
|
{
|
||||||
auto p = makeZonePacket< FFXIVDirectorUnk4 >( getId() );
|
auto p = makeZonePacket< FFXIVDirectorUnk4 >( getId() );
|
||||||
p->data().param[0] = d->getDirectorId();
|
p->data().param[0] = d->getDirectorId();
|
||||||
p->data().param[1] = 1534;
|
p->data().param[1] = 1534;
|
||||||
p->data().param[2] = 1;
|
p->data().param[2] = 1;
|
||||||
p->data().param[3] = d->getContentFinderConditionId();
|
p->data().param[3] = d->getContentFinderConditionId();
|
||||||
queuePacket( p );
|
queuePacket( p );
|
||||||
|
|
||||||
prepareZoning( 0, 1, 1, 0, 0, 1, 9 );
|
prepareZoning( 0, 1, 1, 0, 0, 1, 9 );
|
||||||
}
|
}
|
||||||
|
|
||||||
resetHp();
|
resetHp();
|
||||||
resetMp();
|
resetMp();
|
||||||
|
|
Loading…
Add table
Reference in a new issue