mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-21 10:05:56 +02:00
Fixed bugs and edited scripts causing the limsa intro to fail.
This commit is contained in:
parent
bbbab356af
commit
0b67f8e436
8 changed files with 81 additions and 46 deletions
|
@ -1487,17 +1487,18 @@ namespace Meteor.Map.Actors
|
|||
}
|
||||
|
||||
// Replace a quest with another quest in the player's quest state.
|
||||
public void ReplaceQuest(Quest oldQuestInstance, Quest newQuestInstance)
|
||||
public void ReplaceQuest(Quest oldQuestInstance, string questName)
|
||||
{
|
||||
for (int i = 0; i < questScenario.Length; i++)
|
||||
{
|
||||
if (questScenario[i] != null && questScenario[i].Equals(oldQuestInstance))
|
||||
{
|
||||
questScenario[i] = newQuestInstance;
|
||||
playerWork.questScenario[i] = questScenario[i].Id;
|
||||
{
|
||||
SendQuestClientUpdate(i);
|
||||
oldQuestInstance.OnComplete();
|
||||
questStateManager.UpdateQuestCompleted(oldQuestInstance);
|
||||
Quest newQuestInstance = questStateManager.GetActiveQuest(((Quest)Server.GetStaticActors(questName)).GetQuestId());
|
||||
questScenario[i] = newQuestInstance;
|
||||
playerWork.questScenario[i] = questScenario[i].Id;
|
||||
newQuestInstance.OnAccept();
|
||||
Database.SaveQuest(this, questScenario[i], i);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue