mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-20 11:47:47 +00:00
Merge pull request #945 from collett8192/Sapphire5.58
fix chat log when leaving dungeons.
This commit is contained in:
commit
4482c95890
1 changed files with 3 additions and 2 deletions
|
@ -560,14 +560,15 @@ bool Sapphire::Entity::Player::exitInstance()
|
||||||
{
|
{
|
||||||
auto& teriMgr = Common::Service< TerritoryMgr >::ref();
|
auto& teriMgr = Common::Service< TerritoryMgr >::ref();
|
||||||
|
|
||||||
auto d = getCurrentTerritory()->getAsDirector();
|
auto d = getCurrentTerritory()->getAsInstanceContent();
|
||||||
if( d && d->getContentFinderConditionId() > 0 )
|
if( d && d->getContentFinderConditionId() > 0 )
|
||||||
{
|
{
|
||||||
|
// shows correct name when leaving dungeon
|
||||||
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->getContentId();
|
||||||
queuePacket( p );
|
queuePacket( p );
|
||||||
|
|
||||||
prepareZoning( 0, 1, 1, 0, 0, 1, 9 );
|
prepareZoning( 0, 1, 1, 0, 0, 1, 9 );
|
||||||
|
|
Loading…
Add table
Reference in a new issue