mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 06:47:45 +00:00
First rev.
This commit is contained in:
parent
faebcc8290
commit
dc806e6e3f
2 changed files with 62 additions and 87 deletions
|
@ -33,6 +33,23 @@ private:
|
|||
static constexpr auto SCREENIMAGE0 = 14;
|
||||
static constexpr auto UNLOCK_DESION = 14;
|
||||
|
||||
public:
|
||||
ManSea002() : EventScript( 65644 )
|
||||
{}
|
||||
~ManSea002()
|
||||
{};
|
||||
|
||||
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
|
||||
{
|
||||
auto actor = Event::mapEventActorToRealActor( static_cast<uint32_t>( actorId ) );
|
||||
|
||||
// todo: this doesn't actually play a cutscene after accepting the quest
|
||||
if ( actor == ACTOR0 )
|
||||
Scene00000( player );
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
void Scene00000( Entity::Player& player )
|
||||
{
|
||||
player.playScene( getId(), 0, HIDE_HOTBAR,
|
||||
|
@ -51,9 +68,6 @@ private:
|
|||
// on quest accept
|
||||
player.updateQuest( getId(), 1 );
|
||||
player.setQuestUI8CH( getId(), 1 ); // receive key item
|
||||
|
||||
//player.forceZoneing(128); // teleport to real limsa
|
||||
//player.playSceneChain(getId(), 2, NONE, bindScene( &ManSea002::Scene00050 ) );
|
||||
} );
|
||||
}
|
||||
|
||||
|
@ -116,42 +130,4 @@ private:
|
|||
|
||||
player.playScene( getId(), 7, NONE, callback );
|
||||
}
|
||||
|
||||
void Scene00008( Entity::Player& player )
|
||||
{
|
||||
auto callback = [&]( Entity::Player& player, const Event::SceneResult& result )
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
player.playScene( getId(), 8, NONE, callback );
|
||||
}
|
||||
|
||||
void Scene00050( Entity::Player& player )
|
||||
{
|
||||
auto callback = [&]( Entity::Player& player, const Event::SceneResult& result )
|
||||
{
|
||||
/*// on quest accept
|
||||
player.updateQuest( getId(), 1 );
|
||||
player.setQuestUI8CH( getId(), 1 ); // receive key item
|
||||
|
||||
// teleport to real limsa
|
||||
player.forceZoneing( 128 );*/
|
||||
};
|
||||
|
||||
player.playScene( getId(), 50, FADE_OUT | CONDITION_CUTSCENE | HIDE_UI, 0, 0, callback );
|
||||
}
|
||||
|
||||
public:
|
||||
ManSea002() : EventScript( 65644 )
|
||||
{}
|
||||
|
||||
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
|
||||
{
|
||||
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
|
||||
|
||||
// todo: this doesn't actually play a cutscene after accepting the quest
|
||||
if( actor == ACTOR0 )
|
||||
Scene00000( player );
|
||||
}
|
||||
};
|
|
@ -111,8 +111,7 @@ class SubSea001 : public EventScript
|
|||
player.updateQuest( getId(), 255 );
|
||||
}
|
||||
}
|
||||
else
|
||||
return;
|
||||
else return;
|
||||
} );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue