Skip to content

Commit

Permalink
fix: seperate set homepoint and housing options from aetheryte menu
Browse files Browse the repository at this point in the history
  • Loading branch information
pinapelz committed May 18, 2024
1 parent 66707a0 commit 825f07a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/scripts/common/aethernet/Aetheryte.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,18 @@ class Aetheryte :
// eventParam4 (or params[1] if using EventPlay8, which is actually used on retail) anything bigger than 1 will show select instance menu item
eventMgr().playScene( player, eventId, 0, 1, { 1, 2 }, [ this ]( Entity::Player& player, const Event::SceneResult& result )
{
if( result.numOfResults == 1 ) // set homepoint
if( result.numOfResults == 1 )
{
player.setHomepoint( result.eventId & 0xFFFF );
eventMgr().sendEventNotice( player, result.eventId, 2, 0xEA, 0, 0 );
auto cmd = result.getResult( 0 );
if( cmd == 1 ) // set homepoint
{
player.setHomepoint( result.eventId & 0xFFFF );
eventMgr().sendEventNotice( player, result.eventId, 2, 0xEA, 0, 0 );
}
else if( cmd == 5 )
{
//TODO: Housing teleport selection
}
}
else if( result.numOfResults == 2 ) // aethernet access
{
Expand Down

0 comments on commit 825f07a

Please sign in to comment.