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

[ Quest ] SubFst039 and SubFst005 - An Eft for Effort added and To the Bannock fixed

This commit is contained in:
Dantestyle 2018-06-07 00:09:10 +02:00
parent cfffdf00d0
commit 01889eb356
2 changed files with 8 additions and 5 deletions

View file

@ -59,7 +59,10 @@ class SubFst005 : public EventScript
player.playScene( getId(), 0, HIDE_HOTBAR,
[&]( Entity::Player& player, const Event::SceneResult& result )
{
player.updateQuest( getId(), 255 );
if( result.param2 == 1 )
{
player.updateQuest( getId(), 255 );
}
} );
}
@ -71,7 +74,7 @@ class SubFst005 : public EventScript
if( result.param2 == 1 )
{
if( player.giveQuestRewards( getId(), 0 ) )
player.finishQuest( getId());
player.finishQuest( getId() );
}
} );
}

View file

@ -47,11 +47,11 @@ class SubFst039 : public EventScript
{
auto actor = Event::mapEventActorToRealActor( actorId );
if( actor == SubFst039::Actor0 && !player.hasQuest( getId() ) )
if( actor == Actor0 && !player.hasQuest( getId() ) )
{
Scene00000( player );
}
if( actor == SubFst039::Actor0 && player.getQuestSeq( getId() ) == 255 )
if( actor == Actor0 )
{
Scene00001( player );
}
@ -92,7 +92,7 @@ class SubFst039 : public EventScript
player.playScene( getId(), 1, HIDE_HOTBAR,
[&]( Entity::Player& player, const Event::SceneResult& result )
{
if( player.getQuestUI8AL( getId() ) == 1 )
if( result.param2 == 1 )
{
if( player.giveQuestRewards( getId(), 0 ) )
{