mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 22:37:45 +00:00
make leave instance button work
This commit is contained in:
parent
378dad0008
commit
b542af8407
1 changed files with 9 additions and 1 deletions
|
@ -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: " +
|
||||
|
|
Loading…
Add table
Reference in a new issue