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); }
private void _reload() { if (_skillDbTuple != null) { Name = _skillDbTuple.GetStringValue(ServerSkillAttributes.Desc.Index); } if (String.IsNullOrEmpty(Name)) { Name = MobId.ToString(CultureInfo.InvariantCulture); } if (_mobSkillDbTuple != null) { int icondition = _mobSkillDbTuple.GetValue <int>(ServerMobSkillAttributes.ConditionType); string condition = Enum.GetValues(typeof(ConditionType)).Cast <Enum>().Select(Description.GetDescription).ToList()[icondition]; Condition = condition. Replace("[CValue]", _mobSkillDbTuple.GetStringValue(ServerMobSkillAttributes.ConditionValue.Index)). Replace("[Val1]", _mobSkillDbTuple.GetStringValue(ServerMobSkillAttributes.Val1.Index)); } }