mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-11 15:04:42 +02:00
Added functionality to handle NPC LSes in quests. Linked the rest of the sequences up for Man0l1.
This commit is contained in:
parent
a618e69dbd
commit
49c6fdbd51
6 changed files with 166 additions and 76 deletions
|
@ -17,9 +17,12 @@ namespace Meteor.Map.Actors.QuestNS
|
|||
private ushort counter3;
|
||||
private ushort counter4;
|
||||
|
||||
private uint npcLsFrom = 0;
|
||||
private byte npcLsMessageStep = 0;
|
||||
|
||||
public bool Dirty { get; private set; } = false;
|
||||
|
||||
public QuestData(Player owner, Quest parent, uint flags, ushort counter1, ushort counter2, ushort counter3, ushort counter4)
|
||||
public QuestData(Player owner, Quest parent, uint flags, ushort counter1, ushort counter2, ushort counter3, ushort counter4, uint npcLsFrom, byte npcLsMessageStep)
|
||||
{
|
||||
this.owner = owner;
|
||||
this.parent = parent;
|
||||
|
@ -28,6 +31,8 @@ namespace Meteor.Map.Actors.QuestNS
|
|||
this.counter2 = counter2;
|
||||
this.counter3 = counter3;
|
||||
this.counter4 = counter4;
|
||||
this.npcLsFrom = npcLsFrom;
|
||||
this.npcLsMessageStep = npcLsMessageStep;
|
||||
}
|
||||
|
||||
public QuestData(Player owner, Quest parent)
|
||||
|
@ -160,6 +165,34 @@ namespace Meteor.Map.Actors.QuestNS
|
|||
return 0;
|
||||
}
|
||||
|
||||
public void SetNpcLsFrom(uint from)
|
||||
{
|
||||
npcLsFrom = from;
|
||||
npcLsMessageStep = 1;
|
||||
Dirty = true;
|
||||
}
|
||||
|
||||
public void IncrementNpcLsMsgStep()
|
||||
{
|
||||
npcLsMessageStep++;
|
||||
Dirty = true;
|
||||
}
|
||||
|
||||
public uint GetNpcLsFrom()
|
||||
{
|
||||
return npcLsFrom;
|
||||
}
|
||||
|
||||
public byte GetMsgStep()
|
||||
{
|
||||
return npcLsMessageStep;
|
||||
}
|
||||
|
||||
public void ClearNpcLs()
|
||||
{
|
||||
npcLsFrom = 0;
|
||||
}
|
||||
|
||||
public void ClearDirty()
|
||||
{
|
||||
Dirty = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue