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

more testing code for SubCts999

This commit is contained in:
collett 2021-08-07 21:30:33 +09:00
parent 073b79b4f6
commit 9e14206137
2 changed files with 42 additions and 5 deletions

View file

@ -496,6 +496,22 @@ public:
onProgress( player, param1, param2, 4, 0 ); onProgress( player, param1, param2, 4, 0 );
} }
void onSaveData( Sapphire::Entity::Player& player, const Common::EventSaveData& data ) override
{
if( data.scene == 69 )
{
player.setQuestUI8AH( getId(), data.params[0] );
player.setQuestUI8AL( getId(), data.params[1] );
player.setQuestUI8BH( getId(), data.params[2] );
player.setQuestUI8BL( getId(), data.params[3] );
player.setQuestUI8CH( getId(), data.params[4] );
player.setQuestUI8CL( getId(), data.params[5] );
player.setQuestUI8DH( getId(), data.params[6] );
player.setQuestUI8DL( getId(), data.params[7] );
player.sendDebug( "Ceremony settings saved." );
}
}
private: private:
void checkProgressSeq0( Entity::Player& player ) void checkProgressSeq0( Entity::Player& player )
{ {
@ -1255,8 +1271,29 @@ private:
{ {
if( result.param1 > 0 && result.param2 == 1 ) if( result.param1 > 0 && result.param2 == 1 )
{ {
player.setQuestUI8AH( getId(), 18 ); uint8_t plan = 3; // standard = 1, golden = 2, platinum = 3
player.setQuestUI8AL( getId(), 7 ); player.setQuestUI8AH( getId(), 1 );
switch( plan )
{
case 1:
player.setQuestUI8AL( getId(), 1 );
break;
case 2:
player.setQuestUI8AL( getId(), 2 );
break;
case 3:
player.setQuestUI8AL( getId(), 5 );
break;
}
player.setQuestUI8BH( getId(), 1 );
player.setQuestUI8BL( getId(), 1 );
player.setQuestUI8CH( getId(), 1 );
player.setQuestUI8CL( getId(), 1 );
player.setQuestUI8DH( getId(), 1 );
player.setQuestUI8DL( getId(), 0 );
player.setQuestUI8EH( getId(), plan );
player.eventFinish( getId(), 1 ); player.eventFinish( getId(), 1 );
player.enterPredefinedPrivateInstance( 393 ); player.enterPredefinedPrivateInstance( 393 );
} }
@ -1325,7 +1362,7 @@ private:
player.enterPredefinedPrivateInstance( 393 ); player.enterPredefinedPrivateInstance( 393 );
} }
}; };
player.playScene( getId(), 71, NONE, callback ); player.playScene( getId(), 71, HIDE_HOTBAR, callback );
} }
void Scene00072( Entity::Player& player ) void Scene00072( Entity::Player& player )
@ -1344,7 +1381,7 @@ private:
{ {
//checkProgressSeq12( player ); //checkProgressSeq12( player );
}; };
player.playScene( getId(), 73, FADE_OUT | CONDITION_CUTSCENE | HIDE_UI, callback ); player.playScene( getId(), 73, HIDE_HOTBAR, callback );
} }
void Scene00074( Entity::Player& player ) void Scene00074( Entity::Player& player )

View file

@ -736,7 +736,7 @@ std::unordered_map< uint32_t, Sapphire::World::Manager::TerritoryMgr::InstanceSp
{ 880, { { 100, 0, 100 }, 3.14 } }, { 880, { { 100, 0, 100 }, 3.14 } },
{ 881, { { 100, 0, 100 }, 0 } }, { 881, { { 100, 0, 100 }, 0 } },
{ 918, { { 0, -200, -410 }, -3.1415 } }, { 918, { { 0, -200, -410 }, -3.1415 } },
{ 393, { { 0, 0, 0 }, -3.1415 } }, { 393, { { 3, 2.64, -95 }, -3.1415 } },
}; };
std::unordered_map< uint32_t, uint32_t > Sapphire::World::Manager::TerritoryMgr::instanceExitEvent = std::unordered_map< uint32_t, uint32_t > Sapphire::World::Manager::TerritoryMgr::instanceExitEvent =