Files
abysmal-isle/Scripts/Mobiles/Normal/OrcishMage.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

144 lines
3.7 KiB
C#

using System;
using Server.Items;
using Server.Misc;
namespace Server.Mobiles
{
[CorpseName("a glowing orc corpse")]
public class OrcishMage : BaseCreature
{
[Constructable]
public OrcishMage()
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
{
this.Name = "an orcish mage";
this.Body = 140;
this.BaseSoundID = 0x45A;
this.SetStr(116, 150);
this.SetDex(91, 115);
this.SetInt(161, 185);
this.SetHits(70, 90);
this.SetDamage(4, 14);
this.SetDamageType(ResistanceType.Physical, 100);
this.SetResistance(ResistanceType.Physical, 25, 35);
this.SetResistance(ResistanceType.Fire, 30, 40);
this.SetResistance(ResistanceType.Cold, 20, 30);
this.SetResistance(ResistanceType.Poison, 30, 40);
this.SetResistance(ResistanceType.Energy, 30, 40);
this.SetSkill(SkillName.EvalInt, 60.1, 72.5);
this.SetSkill(SkillName.Magery, 60.1, 72.5);
this.SetSkill(SkillName.MagicResist, 60.1, 75.0);
this.SetSkill(SkillName.Tactics, 50.1, 65.0);
this.SetSkill(SkillName.Wrestling, 40.1, 50.0);
this.Fame = 3000;
this.Karma = -3000;
this.VirtualArmor = 30;
this.PackReg(6);
switch (Utility.Random(8))
{
case 0: PackItem(new CorpseSkinScroll()); break;
}
if (0.05 > Utility.RandomDouble())
this.PackItem(new OrcishKinMask());
if (0.5 > Utility.RandomDouble())
PackItem(new Yeast());
}
public OrcishMage(Serial serial)
: base(serial)
{
}
public override InhumanSpeech SpeechType
{
get
{
return InhumanSpeech.Orc;
}
}
public override bool CanRummageCorpses
{
get
{
return true;
}
}
public override int TreasureMapLevel
{
get
{
return 1;
}
}
public override int Meat
{
get
{
return 1;
}
}
public override TribeType Tribe { get { return TribeType.Orc; } }
public override OppositionGroup OppositionGroup
{
get
{
return OppositionGroup.SavagesAndOrcs;
}
}
public override void GenerateLoot()
{
this.AddLoot(LootPack.Average);
this.AddLoot(LootPack.LowScrolls);
}
public override bool IsEnemy(Mobile m)
{
if (m.Player && m.FindItemOnLayer(Layer.Helm) is OrcishKinMask)
return false;
return base.IsEnemy(m);
}
public override void AggressiveAction(Mobile aggressor, bool criminal)
{
base.AggressiveAction(aggressor, criminal);
Item item = aggressor.FindItemOnLayer(Layer.Helm);
if (item is OrcishKinMask)
{
AOS.Damage(aggressor, 50, 0, 100, 0, 0, 0);
item.Delete();
aggressor.FixedParticles(0x36BD, 20, 10, 5044, EffectLayer.Head);
aggressor.PlaySound(0x307);
}
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0);
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}