mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-11 06:54:43 +02:00
Added completed quest sendback.
This commit is contained in:
parent
306f4ef346
commit
c677479a03
6 changed files with 35 additions and 24 deletions
|
@ -34,7 +34,6 @@ namespace Meteor.Map.Actors.QuestNS
|
|||
private ushort currentSequence;
|
||||
private QuestState questState = null;
|
||||
private QuestData data = null;
|
||||
private bool dataDirty = false;
|
||||
|
||||
// Creates a Static Quest for the StaticActors list.
|
||||
public Quest(uint actorID, string className, string classPath)
|
||||
|
@ -124,11 +123,11 @@ namespace Meteor.Map.Actors.QuestNS
|
|||
|
||||
public void UpdateENPCs()
|
||||
{
|
||||
if (dataDirty)
|
||||
if (data.Dirty)
|
||||
{
|
||||
if (questState != null)
|
||||
questState.UpdateState();
|
||||
dataDirty = false;
|
||||
data.ClearDirty();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -199,8 +198,7 @@ namespace Meteor.Map.Actors.QuestNS
|
|||
if (currentSequence != SEQ_NOT_STARTED)
|
||||
owner.SendGameMessage(Server.GetWorldManager().GetActor(), 25116, 0x20, (object)GetQuestId());
|
||||
|
||||
currentSequence = sequence;
|
||||
dataDirty = true;
|
||||
currentSequence = sequence;
|
||||
questState.UpdateState();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue