mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
All loot pack items are now generated when the mobile is killed. Reworked monster stealing and begging. Various re-structuring and bug fixes. Co-authored-by: TrueUO <knight.daniel.r@gmail.com>
76 lines
2.1 KiB
C#
76 lines
2.1 KiB
C#
using Server.Items;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName("a fire elemental corpse")]
|
|
public class FireElemental : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public FireElemental()
|
|
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
|
{
|
|
Name = "a fire elemental";
|
|
Body = 15;
|
|
BaseSoundID = 838;
|
|
|
|
SetStr(126, 155);
|
|
SetDex(166, 185);
|
|
SetInt(101, 125);
|
|
|
|
SetHits(76, 93);
|
|
|
|
SetDamage(7, 9);
|
|
|
|
SetDamageType(ResistanceType.Physical, 25);
|
|
SetDamageType(ResistanceType.Fire, 75);
|
|
|
|
SetResistance(ResistanceType.Physical, 35, 45);
|
|
SetResistance(ResistanceType.Fire, 60, 80);
|
|
SetResistance(ResistanceType.Cold, 5, 10);
|
|
SetResistance(ResistanceType.Poison, 30, 40);
|
|
SetResistance(ResistanceType.Energy, 30, 40);
|
|
|
|
SetSkill(SkillName.EvalInt, 60.1, 75.0);
|
|
SetSkill(SkillName.Magery, 60.1, 75.0);
|
|
SetSkill(SkillName.MagicResist, 75.2, 105.0);
|
|
SetSkill(SkillName.Tactics, 80.1, 100.0);
|
|
SetSkill(SkillName.Wrestling, 70.1, 100.0);
|
|
|
|
Fame = 4500;
|
|
Karma = -4500;
|
|
|
|
ControlSlots = 4;
|
|
|
|
AddItem(new LightSource());
|
|
}
|
|
|
|
public FireElemental(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override double DispelDifficulty => 117.5;
|
|
public override double DispelFocus => 45.0;
|
|
public override bool BleedImmune => true;
|
|
public override int TreasureMapLevel => 2;
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot(LootPack.Average);
|
|
AddLoot(LootPack.Meager);
|
|
AddLoot(LootPack.Gems);
|
|
AddLoot(LootPack.LootItem<SulfurousAsh>(3, true));
|
|
}
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0);
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
}
|