diff --git a/src/scripts/quest/ManFst005.cpp b/src/scripts/quest/ManFst005.cpp index caf33b64..32e2e63e 100644 --- a/src/scripts/quest/ManFst005.cpp +++ b/src/scripts/quest/ManFst005.cpp @@ -113,7 +113,7 @@ private: void Scene00001( World::Quest& quest, Entity::Player& player ) { - eventMgr().playQuestScene( player, getId(), 1, HIDE_HOTBAR | CONDITION_CUTSCENE, bindSceneReturn( &ManFst005::Scene00001Return ) ); + eventMgr().playQuestScene( player, getId(), 1, FADE_OUT | CONDITION_CUTSCENE | HIDE_UI, bindSceneReturn( &ManFst005::Scene00001Return ) ); } void Scene00001Return( World::Quest& quest, Entity::Player& player, const Event::SceneResult& result ) diff --git a/src/scripts/quest/classquest/ARC/ClsArc000.cpp b/src/scripts/quest/classquest/ARC/ClsArc000.cpp index 2ec1372c..e28ae346 100644 --- a/src/scripts/quest/classquest/ARC/ClsArc000.cpp +++ b/src/scripts/quest/classquest/ARC/ClsArc000.cpp @@ -145,18 +145,18 @@ public: private: void checkQuestCompletion( World::Quest& quest, Entity::Player& player, uint32_t varIdx ) { - if( varIdx == 1 ) - eventMgr().sendEventNotice( player, getId(), 1, 0, 0, 0 ); - else if( varIdx == 2 ) - eventMgr().sendEventNotice( player, getId(), 2, 0, 0, 0 ); - else - eventMgr().sendEventNotice( player, getId(), 3, 0, 0, 0 ); - auto QUEST_ONKILL_37 = quest.getUI8AL(); auto QUEST_ONKILL_49 = quest.getUI8BH(); auto QUEST_ONKILL_47 = quest.getUI8BL(); - if( QUEST_ONKILL_37 >= 3 && QUEST_ONKILL_49 >= 3 && QUEST_ONKILL_47 >= 3 ) + if( varIdx == 1 && QUEST_ONKILL_37 <= 3 ) + eventMgr().sendEventNotice( player, getId(), 1, 0, 0, 0 ); + else if( varIdx == 2 && QUEST_ONKILL_49 <= 3 ) + eventMgr().sendEventNotice( player, getId(), 2, 0, 0, 0 ); + else if( varIdx == 3 && QUEST_ONKILL_47 <= 3 ) + eventMgr().sendEventNotice( player, getId(), 3, 0, 0, 0 ); + + if( QUEST_ONKILL_37 + 1 >= 3 && QUEST_ONKILL_49 + 1 >= 3 && QUEST_ONKILL_47 + 1 >= 3 ) { quest.setSeq( SeqFinish ); } diff --git a/src/scripts/quest/classquest/ARC/ClsArc002.cpp b/src/scripts/quest/classquest/ARC/ClsArc002.cpp index 69d2bd5b..5823fb61 100644 --- a/src/scripts/quest/classquest/ARC/ClsArc002.cpp +++ b/src/scripts/quest/classquest/ARC/ClsArc002.cpp @@ -103,13 +103,12 @@ public: void onBNpcKill( World::Quest& quest, Sapphire::Entity::BNpc& bnpc, Sapphire::Entity::Player& player ) override { - if( bnpc.getLayoutId() != Enemy0 && bnpc.getLayoutId() != Enemy1 ) + if( bnpc.getBNpcNameId() != Enemy0 && bnpc.getBNpcNameId() != Enemy1 ) return; auto currentKC39 = quest.getUI8AL() + 1; auto currentKC12 = quest.getUI8BH() + 1; - - switch( bnpc.getLayoutId() ) + switch( bnpc.getBNpcNameId() ) { case Enemy0: { @@ -569,7 +568,7 @@ private: void Scene00026Return( World::Quest& quest, Entity::Player& player, const Event::SceneResult& result ) { - //Empty + quest.setSeq( Seq4 ); } //////////////////////////////////////////////////////////////////////