mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Added debug script for setting quest completion
This commit is contained in:
parent
c677479a03
commit
25f1b0fd95
3 changed files with 94 additions and 4 deletions
|
@ -156,9 +156,23 @@ namespace Meteor.Map.Actors.QuestNS
|
|||
return ActiveQuests.FindAll(quest => quest.IsQuestENPC(player, npc)).ToArray();
|
||||
}
|
||||
|
||||
public Bitstream GetCompletedBitstream()
|
||||
public byte[] GetCompletionSliceBytes(ushort from, ushort to)
|
||||
{
|
||||
return CompletedQuestsBitfield;
|
||||
return CompletedQuestsBitfield.GetSlice(from, to);
|
||||
}
|
||||
|
||||
public bool IsQuestComplete(uint questId)
|
||||
{
|
||||
return CompletedQuestsBitfield.Get(questId - SCENARIO_START);
|
||||
}
|
||||
|
||||
public void ForceQuestCompleteFlag(uint questId, bool flag)
|
||||
{
|
||||
if (flag)
|
||||
CompletedQuestsBitfield.Set(questId - SCENARIO_START);
|
||||
else
|
||||
CompletedQuestsBitfield.Clear(questId - SCENARIO_START);
|
||||
ComputeAvailable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue