1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-25 11:07:45 +00:00

lighting and fabric color workaround

This commit is contained in:
collett 2021-08-08 01:30:03 +09:00
parent fd18b39f3f
commit b1d0eb1581
2 changed files with 13 additions and 0 deletions

View file

@ -111,6 +111,8 @@ namespace Sapphire::Network::ActorControl
ScreenFadeOut = 0xAA,
CeremonyDecoration = 0xB9,
ZoneIn = 0xC8,
ZoneInDefaultPos = 0xC9,

View file

@ -8,6 +8,8 @@
#include <Service.h>
#include "Manager/TerritoryMgr.h"
#include "Manager/EventMgr.h"
#include "Network/CommonActorControl.h"
#include "Network/PacketWrappers/ActorControlSelfPacket.h"
using namespace Sapphire;
@ -414,6 +416,7 @@ private:
}
if( type == 4 ) // BASE_ID_TERRITORY_TYPE = unknown
{
player.queuePacket( Sapphire::Network::Packets::Server::makeActorControlSelf( getId(), Sapphire::Network::ActorControl::ActorControlType::CeremonyDecoration, player.getQuestUI8FH( getId() ), player.getQuestUI8FL( getId() ), 0, 0 ) );
Scene00067( player ); // Scene00067: Normal(SetWeddingFestivalParam), id=unknown
break;
}
@ -448,6 +451,7 @@ private:
}
if( type == 4 ) // BASE_ID_TERRITORY_TYPE = unknown
{
player.queuePacket( Sapphire::Network::Packets::Server::makeActorControlSelf( getId(), Sapphire::Network::ActorControl::ActorControlType::CeremonyDecoration, player.getQuestUI8FH( getId() ), player.getQuestUI8FL( getId() ), 0, 0 ) );
Scene00073( player ); // Scene00073: Normal(FadeIn, SetWeddingFestivalParam), id=unknown
break;
}
@ -508,6 +512,10 @@ public:
player.setQuestUI8CL( getId(), data.params[5] );
player.setQuestUI8DH( getId(), data.params[6] );
player.setQuestUI8DL( getId(), data.params[7] );
// retail does not save these two values here, we borrow them since they are unused.
player.setQuestUI8FH( getId(), data.params[8] );
player.setQuestUI8FL( getId(), data.params[9] );
player.sendDebug( "Ceremony settings saved." );
}
}
@ -1294,6 +1302,9 @@ private:
player.setQuestUI8EH( getId(), plan );
player.setQuestUI8FH( getId(), 1 ); // see onSaveData() for detail
player.setQuestUI8FL( getId(), 1 ); // see onSaveData() for detail
player.eventFinish( getId(), 1 );
player.enterPredefinedPrivateInstance( 393 );
}