mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Added debug script for setting quest completion
This commit is contained in:
		| @@ -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(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user