1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 23:27:45 +00:00

fix formatting again

thanks clion
This commit is contained in:
Adam 2018-03-20 22:43:16 +11:00
parent 66fbc9931b
commit 660709becb
11 changed files with 39 additions and 38 deletions

View file

@ -86,7 +86,7 @@ private:
if( result.param2 == 1 )
{
if( player.giveQuestRewards( getId(), 0 ))
player.finishQuest( getId());
player.finishQuest( getId() );
}
};
@ -95,11 +95,11 @@ private:
public:
ManFst001() : EventScript( 65575 )
{ }
{}
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ));
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
if( actor == ACTOR0 )
Scene00000( player );

View file

@ -72,9 +72,9 @@ private:
else
player.sendQuestMessage( getId(), 0, 0, 0, 0 );
auto var_attuned = player.getQuestUI8AL( static_cast< uint16_t >( getId()));
auto var_class = player.getQuestUI8BH( static_cast< uint16_t >( getId()));
auto var_trade = player.getQuestUI8BL( static_cast< uint16_t >( getId()));
auto var_attuned = player.getQuestUI8AL( static_cast< uint16_t >( getId() ) );
auto var_class = player.getQuestUI8BH( static_cast< uint16_t >( getId() ) );
auto var_trade = player.getQuestUI8BL( static_cast< uint16_t >( getId() ) );
if( var_attuned == 1 && var_class == 1 && var_trade == 1 )
player.updateQuest( getId(), SEQ_FINISH );
@ -185,11 +185,11 @@ private:
public:
ManFst002() : EventScript( 65621 )
{ }
{}
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ));
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
if( actor == ACTOR0 )
Scene00000( player );

View file

@ -15,7 +15,8 @@ private:
public:
ManFst003() : EventScript( 65659 ) {}
ManFst003() : EventScript( 65659 )
{}
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{

View file

@ -132,7 +132,7 @@ private:
{
if( result.param2 == 1 ) // finish quest
{
if( player.giveQuestRewards( getId(), 0 ))
if( player.giveQuestRewards( getId(), 0 ) )
player.finishQuest( getId());
}
};
@ -147,11 +147,11 @@ private:
public:
ManSea001() : EventScript( 65643 )
{ }
{}
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ));
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
if( actor == ACTOR0 )
Scene00000( player );

View file

@ -141,11 +141,11 @@ private:
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 ));
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
// todo: this doesn't actually play a cutscene after accepting the quest
if( actor == ACTOR0 )

View file

@ -132,11 +132,11 @@ private:
public:
ManWil001() : EventScript( 66130 )
{ }
{}
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ));
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
if( actor == ACTOR0 )
Scene00000( player );

View file

@ -152,7 +152,7 @@ public:
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ));
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
if( actor == ACTOR0 )
Scene00000( player );

View file

@ -64,7 +64,7 @@ private:
public:
SubFst001() : EventScript( 65560 )
{ }
{}
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
@ -72,13 +72,13 @@ public:
if( actor == ACTOR0 )
{
if( !player.hasQuest( getId()))
if( !player.hasQuest( getId() ) )
Scene00000( player );
else
Scene00001( player );
} else if( actor == ACTOR1 )
{
if( !player.hasQuest( getId()))
if( !player.hasQuest( getId() ) )
Scene00099( player );
else
Scene00100( player );

View file

@ -40,8 +40,8 @@ private:
{
if( result.param2 == 1 ) // finish quest
{
if( player.giveQuestRewards( getId(), 0 ))
player.finishQuest( getId());
if( player.giveQuestRewards( getId(), 0 ) )
player.finishQuest( getId() );
}
};
@ -50,15 +50,15 @@ private:
public:
SubFst002() : EventScript( 65561 )
{ }
{}
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ));
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
if( actor == ACTOR0 && !player.hasQuest( getId()))
if( actor == ACTOR0 && !player.hasQuest( getId() ) )
Scene00000( player );
else if( actor == ACTOR0 && player.getQuestSeq( getId()) == SEQ_FINISH )
else if( actor == ACTOR0 && player.getQuestSeq( getId() ) == SEQ_FINISH )
Scene00001( player );
}

View file

@ -36,8 +36,8 @@ private:
{
if( result.param2 == 1 ) // finish quest
{
if( player.giveQuestRewards( getId(), 0 ))
player.finishQuest( getId());
if( player.giveQuestRewards( getId(), 0 ) )
player.finishQuest( getId() );
}
};
@ -46,11 +46,11 @@ private:
public:
SubFst010() : EventScript( 65537 )
{ }
{}
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ));
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
if( actor == ACTOR0 )
Scene00000( player );

View file

@ -152,11 +152,11 @@ private:
public:
SubFst013() : EventScript( 65576 )
{ }
{}
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ));
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
if( !player.hasQuest( getId()))
{
@ -166,11 +166,11 @@ public:
if( actor == ACTOR1 ) // talking to Aunillie while on quest
Scene00003( player );
else if( actor == ACTOR0 && player.getQuestSeq( getId()) == SEQ_2 )
else if( actor == ACTOR0 && player.getQuestSeq( getId() ) == SEQ_2 )
Scene00002( player );
else if( actor == ACTOR0 && player.getQuestSeq( getId()) == SEQ_4 )
else if( actor == ACTOR0 && player.getQuestSeq( getId() ) == SEQ_4 )
Scene00004( player );
else if( actor == ACTOR0 && player.getQuestSeq( getId()) == SEQ_FINISH )
else if( actor == ACTOR0 && player.getQuestSeq( getId() ) == SEQ_FINISH )
Scene00006( player );
}
@ -178,11 +178,11 @@ public:
{
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ));
if( actor == ACTOR1 && emoteId == 5 && player.getQuestSeq( getId()) == SEQ_1 )
if( actor == ACTOR1 && emoteId == 5 && player.getQuestSeq( getId() ) == SEQ_1 )
Scene00100( player );
else if( actor == ACTOR1 && emoteId == 18 && player.getQuestSeq( getId()) == SEQ_3 )
else if( actor == ACTOR1 && emoteId == 18 && player.getQuestSeq( getId() ) == SEQ_3 )
Scene00098( player );
else if( actor == ACTOR1 && emoteId == 11 && player.getQuestSeq( getId()) == SEQ_5 )
else if( actor == ACTOR1 && emoteId == 11 && player.getQuestSeq( getId() ) == SEQ_5 )
Scene00096( player );
}
};