mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
- fixes issue where you could still use teleporters and moongates while completing trade orders - Exploding Tar Potions now work correctly. - Added logging to Auctions. - Can't sell items in locked containers. - Explode potions no longer follow mobiles. Co-authored-by: TrueUO <knight.daniel.r@gmail.com>
71 lines
2 KiB
C#
71 lines
2 KiB
C#
using Server.Items;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName("a crystal daemon corpse")]
|
|
public class CrystalDaemon : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public CrystalDaemon()
|
|
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
|
{
|
|
Name = "a crystal daemon";
|
|
Body = 0x310;
|
|
Hue = 0x3E8;
|
|
BaseSoundID = 0x47D;
|
|
|
|
SetStr(140, 200);
|
|
SetDex(120, 150);
|
|
SetInt(800, 850);
|
|
|
|
SetHits(200, 220);
|
|
|
|
SetDamage(16, 20);
|
|
|
|
SetDamageType(ResistanceType.Physical, 0);
|
|
SetDamageType(ResistanceType.Cold, 40);
|
|
SetDamageType(ResistanceType.Energy, 60);
|
|
|
|
SetResistance(ResistanceType.Physical, 20, 40);
|
|
SetResistance(ResistanceType.Fire, 0, 20);
|
|
SetResistance(ResistanceType.Cold, 60, 80);
|
|
SetResistance(ResistanceType.Poison, 20, 40);
|
|
SetResistance(ResistanceType.Energy, 65, 75);
|
|
|
|
SetSkill(SkillName.Wrestling, 60.0, 80.0);
|
|
SetSkill(SkillName.Tactics, 70.0, 80.0);
|
|
SetSkill(SkillName.MagicResist, 100.0, 110.0);
|
|
SetSkill(SkillName.Magery, 120.0, 130.0);
|
|
SetSkill(SkillName.EvalInt, 100.0, 110.0);
|
|
SetSkill(SkillName.Meditation, 100.0, 110.0);
|
|
|
|
Fame = 15000;
|
|
Karma = -15000;
|
|
}
|
|
|
|
public CrystalDaemon(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot(LootPack.Rich, 3);
|
|
AddLoot(LootPack.HighScrolls);
|
|
AddLoot(LootPack.ArcanistScrolls);
|
|
AddLoot(LootPack.LootItem<ScatteredCrystals>(40.0));
|
|
}
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); // version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
}
|