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

make leave instance button work

This commit is contained in:
Adam 2018-03-15 03:22:59 +11:00
parent 378dad0008
commit b542af8407

View file

@ -93,7 +93,7 @@ enum ClientTrigger
SomeDirectorEvent = 0x328, // unsure what exactly triggers it, starts director when returning to instance though
EnterTerritoryEventFinished = 0x330,
RequestInstanceLeave = 0x330, // df menu button
RequestInstanceLeave = 0x333, // df menu button
AchievementCritReq = 0x3E8,
AchievementList = 0x3E9,
@ -271,6 +271,14 @@ void Core::Network::GameConnection::actionHandler( const Packets::GamePacket& in
player.setOnEnterEventDone( true );
break;
}
case ClientTrigger::RequestInstanceLeave:
{
// todo: apply cf penalty if applicable, make sure player isnt in combat
player.exitInstance();
break;
}
default:
{
pLog->debug( "[" + std::to_string( m_pSession->getId() ) + "] Unhandled action: " +