mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-24 21:57:44 +00:00
Fix aetheryte.
This commit is contained in:
parent
ca2370910c
commit
badfb2f0a9
3 changed files with 4 additions and 3 deletions
|
@ -260,7 +260,7 @@ namespace Sapphire::Network::Packets
|
|||
DuelChallenge = 0x0277, // 4.2; this is responsible for opening the ui
|
||||
PerformNote = 0x0286, // updated 4.3
|
||||
|
||||
PrepareZoning = 0x02A4, // updated 5.0
|
||||
PrepareZoning = 0x035C, // updated 5.18
|
||||
ActorGauge = 0x016D, // updated 5.18
|
||||
|
||||
// daily quest info -> without them sent, login will take longer...
|
||||
|
|
|
@ -59,7 +59,8 @@ public:
|
|||
{
|
||||
if( player.isAetheryteRegistered( eventId & 0xFFFF ) )
|
||||
{
|
||||
player.playScene( eventId, 0, 1, [this]( Entity::Player& player, const Event::SceneResult& result )
|
||||
// eventParam4 (or params[1] if using EventPlay8, which is actually used on retail) anything bigger than 1 will show select instance menu item
|
||||
player.playScene( eventId, 0, 1, 0, 1, 2, [this]( Entity::Player& player, const Event::SceneResult& result )
|
||||
{
|
||||
if( result.param1 == 256 ) // set homepoint
|
||||
{
|
||||
|
|
|
@ -372,7 +372,7 @@ void Sapphire::Entity::Player::teleport( uint16_t aetheryteId, uint8_t type )
|
|||
// TODO: this should be simplified and a type created in server_common/common.h.
|
||||
if( type == 1 ) // teleport
|
||||
{
|
||||
prepareZoning( data->territory, true, 1, 112 ); // TODO: Really?
|
||||
prepareZoning( data->territory, true, 1, 0 ); // TODO: Really?
|
||||
sendToInRangeSet( makeActorControl( getId(), ActorDespawnEffect, 0x04 ) );
|
||||
setZoningType( Common::ZoneingType::Teleport );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue