예제 #1
0
        private static void HandleBaseCreature(object obj)
        {
            Mobiles.BaseCreature creature = obj as Mobiles.BaseCreature;
            if (creature == null)
            {
                return;
            }

            Server.Items.BambooFlute flute = new Items.BambooFlute();

            csv.AddRow();
            csv.AddValue("Type", creature.GetType().Name);
            csv.AddValue("Name", creature.Name);
            csv.AddValue("Str", creature.Str);
            csv.AddValue("Dex", creature.Dex);
            csv.AddValue("Int", creature.Int);
            csv.AddValue("Hits", creature.HitsMax);
            csv.AddValue("Stam", creature.StamMax);
            csv.AddValue("Mana", creature.ManaMax);
            csv.AddValue("Physical Resist", creature.PhysicalResistance);
            csv.AddValue("Fire Resist", creature.FireResistance);
            csv.AddValue("Cold Resist", creature.ColdResistance);
            csv.AddValue("Poison Resist", creature.PoisonResistance);
            csv.AddValue("Energy Resist", creature.EnergyResistance);
            csv.AddValue("Physical Damage", creature.PhysicalDamage);
            csv.AddValue("Fire Damage", creature.FireDamage);
            csv.AddValue("Cold Damage", creature.ColdDamage);
            csv.AddValue("Poison Damage", creature.PoisonDamage);
            csv.AddValue("Energy Damage", creature.EnergyDamage);
            csv.AddValue("Taming Difficulty", creature.CurrentTameSkill);
            csv.AddValue("Barding Difficulty", flute.GetDifficultyFor(creature));
            csv.AddValue("TMap Level", creature.TreasureMapLevel);
            csv.AddValue("Wrestling Skill", creature.Skills.Wrestling.Base);
        }
예제 #2
0
		private static void HandleBaseCreature(object obj)
		{
			Mobiles.BaseCreature creature = obj as Mobiles.BaseCreature;
			if (creature == null)
				return;

			Server.Items.BambooFlute flute = new Items.BambooFlute();

			csv.AddRow();
			csv.AddValue("Type", creature.GetType().Name);
			csv.AddValue("Name", creature.Name);
			csv.AddValue("Str", creature.Str);
			csv.AddValue("Dex", creature.Dex);
			csv.AddValue("Int", creature.Int);
			csv.AddValue("Hits", creature.HitsMax);
			csv.AddValue("Stam", creature.StamMax);
			csv.AddValue("Mana", creature.ManaMax);
			csv.AddValue("Physical Resist", creature.PhysicalResistance);
			csv.AddValue("Fire Resist", creature.FireResistance);
			csv.AddValue("Cold Resist", creature.ColdResistance);
			csv.AddValue("Poison Resist", creature.PoisonResistance);
			csv.AddValue("Energy Resist", creature.EnergyResistance);
			csv.AddValue("Physical Damage", creature.PhysicalDamage);
			csv.AddValue("Fire Damage", creature.FireDamage);
			csv.AddValue("Cold Damage", creature.ColdDamage);
			csv.AddValue("Poison Damage", creature.PoisonDamage);
			csv.AddValue("Energy Damage", creature.EnergyDamage);
			csv.AddValue("Taming Difficulty", creature.MinTameSkill);
			csv.AddValue("Barding Difficulty", flute.GetDifficultyFor(creature));
			csv.AddValue("TMap Level", creature.TreasureMapLevel);
			csv.AddValue("Wrestling Skill", creature.Skills.Wrestling.Base);
		}