Added functionality to handle NPC LSes in quests. Linked the rest of the sequences up for Man0l1.

This commit is contained in:
Filip Maj 2022-03-05 01:02:41 -05:00
parent a618e69dbd
commit 49c6fdbd51
6 changed files with 166 additions and 76 deletions

View file

@ -1845,16 +1845,20 @@ namespace Meteor.Map.Actors
return quests;
}
public void HandleNpcLS(uint id)
public bool HandleNpcLs(uint id)
{
foreach (Quest quest in questScenario)
{
if (quest != null)
quest.OnNpcLS(this, id);
if (quest != null && quest.HasNpcLsMsgs(id))
{
quest.OnNpcLS(this);
return true;
}
}
return false;
}
public void SetNpcLS(uint npcLSId, uint state)
public void SetNpcLs(uint npcLSId, uint state)
{
bool isCalling, isExtra;
isCalling = isExtra = false;