private Dictionary <string, string> BuildReplacementArguments()
        {
            var replacementArguments = new Dictionary <string, string>();

            if (QuestId > 0)
            {
                replacementArguments.Add("QuestId", QuestId.ToString());
            }
            if (QuestRequirementComplete != QuestCompleteRequirement.NotComplete)
            {
                replacementArguments.Add("QuestCompleteRequirement", QuestRequirementComplete.ToString());
            }
            if (QuestRequirementInLog != QuestInLogRequirement.InLog)
            {
                replacementArguments.Add("QuestCompleteRequirement", QuestRequirementInLog.ToString());
            }
            if (MobId > 0)
            {
                replacementArguments.Add("MobId", MobId.ToString());
            }
            if (FactionId > 0)
            {
                replacementArguments.Add("FactionId", FactionId.ToString());
            }
            if (IsMoveToMob)
            {
                replacementArguments.Add("MovementBy", "ClickToMoveOnly");
            }

            return(replacementArguments);
        }
Ejemplo n.º 2
0
        private void ReloadLoopTick()
        {
            // if this is the first time reloading this quest and step, set reload loops to zero
            string thisQuestId = QuestId.ToString() + "_" + StepId.ToString();

            if (thisQuestId != _lastReloadLoopQuestStep)
            {
                _questStepReloadLoops = 0;
            }

            // increment ReloadLoops
            _questStepReloadLoops++;

            // record this quest Id and step Id
            _lastReloadLoopQuestStep = thisQuestId;
        }
Ejemplo n.º 3
0
        private Dictionary <string, string> BuildReplacementArguments()
        {
            var replacementArguments = new Dictionary <string, string>();

            if (QuestId > 0)
            {
                replacementArguments.Add("QuestId", QuestId.ToString());
            }
            if (QuestRequirementComplete != QuestCompleteRequirement.NotComplete)
            {
                replacementArguments.Add("QuestCompleteRequirement", QuestRequirementComplete.ToString());
            }
            if (QuestRequirementInLog != QuestInLogRequirement.InLog)
            {
                replacementArguments.Add("QuestCompleteRequirement", QuestRequirementInLog.ToString());
            }
            if (ObjectId > 0)
            {
                replacementArguments.Add("MobId", ObjectId.ToString());
            }

            return(replacementArguments);
        }