1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-06 18:57:45 +00:00

Fix unlock quest for Archer

This commit is contained in:
Rushi 2022-01-14 19:07:38 +01:00
parent d449c97a9f
commit 3063174652
2 changed files with 4 additions and 3 deletions

View file

@ -89,7 +89,7 @@ private:
void Scene00001( World::Quest &quest, Entity::Player &player )
{
eventMgr().playQuestScene( player, getId(), 1, FADE_OUT | HIDE_UI, bindSceneReturn( &ClsArc998::Scene00001Return ) );
eventMgr().playQuestScene( player, getId(), 1, FADE_OUT | HIDE_UI | DISABLE_SKIP, bindSceneReturn( &ClsArc998::Scene00001Return ) );
}
void Scene00001Return( World::Quest &quest, Entity::Player &player, const Event::SceneResult &result )
@ -98,6 +98,8 @@ private:
if( result.getResult( 0 ) == 1 )
{
player.finishQuest( getId() );
player.setLevelForClass( 1, Sapphire::Common::ClassJob::Archer );
player.setMaxGearSets( player.getMaxGearSets() + 1 );
}
}
};

View file

@ -56,7 +56,7 @@ private:
void Scene00000( World::Quest &quest, Entity::Player &player )
{
eventMgr().playQuestScene( player, getId(), 0, NONE, bindSceneReturn( &ClsArc999::Scene00000Return ) );
eventMgr().playQuestScene( player, getId(), 0, HIDE_HOTBAR, bindSceneReturn( &ClsArc999::Scene00000Return ) );
}
void Scene00000Return( World::Quest &quest, Entity::Player &player, const Event::SceneResult &result )
@ -64,7 +64,6 @@ private:
if( result.getResult( 0 ) == 1 )
{
player.finishQuest( getId(), 0 );
player.setLevelForClass( 1, Sapphire::Common::ClassJob::Archer );
}
}
};