Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
|
|
@ -0,0 +1,107 @@
|
|||
namespace Server.Mobiles
|
||||
{
|
||||
public class FetidEssence : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public FetidEssence() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 273;
|
||||
|
||||
SetStr(101, 150);
|
||||
SetDex(210, 250);
|
||||
SetInt(451, 550);
|
||||
|
||||
SetHits(551, 650);
|
||||
|
||||
SetDamage(21, 25);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 30);
|
||||
SetDamageType(ResistanceType.Poison, 70);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 40, 50);
|
||||
SetResistance(ResistanceType.Fire, 40, 50);
|
||||
SetResistance(ResistanceType.Cold, 40, 50);
|
||||
SetResistance(ResistanceType.Poison, 70, 90);
|
||||
SetResistance(ResistanceType.Energy, 75, 80);
|
||||
|
||||
SetSkill(SkillName.Meditation, 91.4, 99.4);
|
||||
SetSkill(SkillName.EvalInt, 88.5, 92.3);
|
||||
SetSkill(SkillName.Magery, 97.9, 101.7);
|
||||
SetSkill(SkillName.Poisoning, 100);
|
||||
SetSkill(SkillName.Anatomy, 0, 4.5);
|
||||
SetSkill(SkillName.MagicResist, 103.5, 108.8);
|
||||
SetSkill(SkillName.Tactics, 81.0, 84.6);
|
||||
SetSkill(SkillName.Wrestling, 81.3, 83.9);
|
||||
|
||||
Fame = 3700; // Guessed
|
||||
Karma = -3700; // Guessed
|
||||
}
|
||||
|
||||
public FetidEssence(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a fetid essence corpse";
|
||||
public override string DefaultName => "a fetid essence";
|
||||
|
||||
public override Poison HitPoison => Poison.Deadly;
|
||||
public override Poison PoisonImmune => Poison.Deadly;
|
||||
|
||||
public override void GenerateLoot() // Need to verify
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich);
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x56d;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x56b;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x56c;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x56c;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x56e;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
/*private class InternalTimer : Timer
|
||||
{
|
||||
private Mobile m_From;
|
||||
private Mobile m_Mobile;
|
||||
private int m_Count;
|
||||
|
||||
public InternalTimer( Mobile from, Mobile m ) : base( TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 ) )
|
||||
{
|
||||
m_From = from;
|
||||
m_Mobile = m;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,168 @@
|
|||
using System.Linq;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class InterredGrizzle : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public InterredGrizzle() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 259;
|
||||
|
||||
SetStr(451, 500);
|
||||
SetDex(201, 250);
|
||||
SetInt(801, 850);
|
||||
|
||||
SetHits(1500);
|
||||
SetStam(150);
|
||||
|
||||
SetDamage(16, 19);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 30);
|
||||
SetDamageType(ResistanceType.Fire, 70);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 35, 55);
|
||||
SetResistance(ResistanceType.Fire, 20, 65);
|
||||
SetResistance(ResistanceType.Cold, 55, 80);
|
||||
SetResistance(ResistanceType.Poison, 20, 35);
|
||||
SetResistance(ResistanceType.Energy, 60, 80);
|
||||
|
||||
SetSkill(SkillName.Meditation, 77.7, 84.0);
|
||||
SetSkill(SkillName.EvalInt, 72.2, 79.6);
|
||||
SetSkill(SkillName.Magery, 83.7, 89.6);
|
||||
SetSkill(SkillName.Poisoning, 0);
|
||||
SetSkill(SkillName.Anatomy, 0);
|
||||
SetSkill(SkillName.MagicResist, 80.2, 87.3);
|
||||
SetSkill(SkillName.Tactics, 104.5, 105.1);
|
||||
SetSkill(SkillName.Wrestling, 105.1, 109.4);
|
||||
|
||||
Fame = 3700; // Guessed
|
||||
Karma = -3700; // Guessed
|
||||
}
|
||||
/*
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
SpillAcid( 1, 4, 10, 6, 10 );
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
*/
|
||||
|
||||
public InterredGrizzle(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "an interred grizzle corpse";
|
||||
public override string DefaultName => "a interred grizzle";
|
||||
|
||||
public override void GenerateLoot() // -- Need to verify
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich);
|
||||
}
|
||||
|
||||
// TODO: Acid Blood
|
||||
/*
|
||||
* Message: 1070820
|
||||
* Spits pool of acid (blood, hue 0x3F), hits lost 6-10 per second/step
|
||||
* Damage is resistable (physical)
|
||||
* Acid last 10 seconds
|
||||
*/
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x581;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x582;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x580;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x583;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x584;
|
||||
}
|
||||
|
||||
public override void OnDamage(int amount, Mobile from, bool willKill)
|
||||
{
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
DropOoze();
|
||||
|
||||
base.OnDamage(amount, from, willKill);
|
||||
}
|
||||
|
||||
private int RandomPoint(int mid)
|
||||
{
|
||||
return mid + Utility.RandomMinMax(-2, 2);
|
||||
}
|
||||
|
||||
public virtual Point3D GetSpawnPosition(int range)
|
||||
{
|
||||
return GetSpawnPosition(Location, Map, range);
|
||||
}
|
||||
|
||||
public virtual Point3D GetSpawnPosition(Point3D from, Map map, int range)
|
||||
{
|
||||
if (map == null)
|
||||
return from;
|
||||
|
||||
Point3D loc = new Point3D(RandomPoint(X), RandomPoint(Y), Z);
|
||||
|
||||
loc.Z = Map.GetAverageZ(loc.X, loc.Y);
|
||||
|
||||
return loc;
|
||||
}
|
||||
|
||||
public virtual void DropOoze()
|
||||
{
|
||||
int amount = Utility.RandomMinMax(1, 3);
|
||||
bool corrosive = Utility.RandomBool();
|
||||
|
||||
for (int i = 0; i < amount; i++)
|
||||
{
|
||||
Item ooze = new StainedOoze(corrosive);
|
||||
Point3D p = new Point3D(Location);
|
||||
|
||||
for (int j = 0; j < 5; j++)
|
||||
{
|
||||
p = GetSpawnPosition(2);
|
||||
|
||||
if (!Map.GetItemsInRange(p, 0).OfType<StainedOoze>().Any())
|
||||
break;
|
||||
}
|
||||
|
||||
ooze.MoveToWorld(p, Map);
|
||||
}
|
||||
|
||||
if (Combatant != null)
|
||||
{
|
||||
if (corrosive)
|
||||
Combatant.SendLocalizedMessage(1072071); // A corrosive gas seeps out of your enemy's skin!
|
||||
else
|
||||
Combatant.SendLocalizedMessage(1072072); // A poisonous gas seeps out of your enemy's skin!
|
||||
}
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
161
Projects/Scripts/Mobiles/Monsters/ML/Humanoid/Magic/MLDryad.cs
Normal file
161
Projects/Scripts/Mobiles/Monsters/ML/Humanoid/Magic/MLDryad.cs
Normal file
|
|
@ -0,0 +1,161 @@
|
|||
using System;
|
||||
using Server.Engines.Plants;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class MLDryad : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public MLDryad() : base(AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 266;
|
||||
BaseSoundID = 0x57B;
|
||||
|
||||
SetStr(132, 149);
|
||||
SetDex(152, 168);
|
||||
SetInt(251, 280);
|
||||
|
||||
SetHits(304, 321);
|
||||
|
||||
SetDamage(11, 20);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 40, 50);
|
||||
SetResistance(ResistanceType.Fire, 15, 25);
|
||||
SetResistance(ResistanceType.Cold, 40, 45);
|
||||
SetResistance(ResistanceType.Poison, 30, 40);
|
||||
SetResistance(ResistanceType.Energy, 25, 35);
|
||||
|
||||
SetSkill(SkillName.Meditation, 80.0, 90.0);
|
||||
SetSkill(SkillName.EvalInt, 70.0, 80.0);
|
||||
SetSkill(SkillName.Magery, 70.0, 80.0);
|
||||
SetSkill(SkillName.Anatomy, 0);
|
||||
SetSkill(SkillName.MagicResist, 100.0, 120.0);
|
||||
SetSkill(SkillName.Tactics, 70.0, 80.0);
|
||||
SetSkill(SkillName.Wrestling, 70.0, 80.0);
|
||||
|
||||
Fame = 5000;
|
||||
Karma = 5000;
|
||||
|
||||
VirtualArmor = 28; // Don't know what it should be
|
||||
|
||||
if (Core.ML && Utility.RandomDouble() < .60)
|
||||
PackItem(Seed.RandomPeculiarSeed(1));
|
||||
|
||||
PackArcanceScroll(0.05);
|
||||
}
|
||||
|
||||
public MLDryad(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a dryad's corpse";
|
||||
public override bool InitialInnocent => true;
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
public override string DefaultName => "a dryad";
|
||||
|
||||
public override int Meat => 1;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.MlRich);
|
||||
}
|
||||
|
||||
public override void OnThink()
|
||||
{
|
||||
base.OnThink();
|
||||
|
||||
AreaPeace();
|
||||
AreaUndress();
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
#region Area Peace
|
||||
|
||||
private DateTime m_NextPeace;
|
||||
|
||||
public void AreaPeace()
|
||||
{
|
||||
if (Combatant == null || Deleted || !Alive || m_NextPeace > DateTime.UtcNow || 0.1 < Utility.RandomDouble())
|
||||
return;
|
||||
|
||||
TimeSpan duration = TimeSpan.FromSeconds(Utility.RandomMinMax(20, 80));
|
||||
|
||||
foreach (Mobile m in GetMobilesInRange(RangePerception))
|
||||
{
|
||||
PlayerMobile p = m as PlayerMobile;
|
||||
|
||||
if (IsValidTarget(p))
|
||||
{
|
||||
p.PeacedUntil = DateTime.UtcNow + duration;
|
||||
p.SendLocalizedMessage(1072065); // You gaze upon the dryad's beauty, and forget to continue battling!
|
||||
p.FixedParticles(0x376A, 1, 20, 0x7F5, EffectLayer.Waist);
|
||||
p.Combatant = null;
|
||||
}
|
||||
}
|
||||
|
||||
m_NextPeace = DateTime.UtcNow + TimeSpan.FromSeconds(10);
|
||||
PlaySound(0x1D3);
|
||||
}
|
||||
|
||||
public bool IsValidTarget(PlayerMobile m)
|
||||
{
|
||||
return m?.PeacedUntil < DateTime.UtcNow && !m.Hidden && m.AccessLevel == AccessLevel.Player &&
|
||||
CanBeHarmful(m);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Undress
|
||||
|
||||
private DateTime m_NextUndress;
|
||||
|
||||
public void AreaUndress()
|
||||
{
|
||||
if (Combatant == null || Deleted || !Alive || m_NextUndress > DateTime.UtcNow || 0.005 < Utility.RandomDouble())
|
||||
return;
|
||||
|
||||
foreach (Mobile m in GetMobilesInRange(RangePerception))
|
||||
if (m?.Player == true && !m.Female && !m.Hidden && m.AccessLevel == AccessLevel.Player &&
|
||||
CanBeHarmful(m))
|
||||
{
|
||||
UndressItem(m, Layer.OuterTorso);
|
||||
UndressItem(m, Layer.InnerTorso);
|
||||
UndressItem(m, Layer.MiddleTorso);
|
||||
UndressItem(m, Layer.Pants);
|
||||
UndressItem(m, Layer.Shirt);
|
||||
|
||||
m.SendLocalizedMessage(
|
||||
1072197); // The dryad's beauty makes your blood race. Your clothing is too confining.
|
||||
}
|
||||
|
||||
m_NextUndress = DateTime.UtcNow + TimeSpan.FromMinutes(1);
|
||||
}
|
||||
|
||||
public void UndressItem(Mobile m, Layer layer)
|
||||
{
|
||||
Item item = m.FindItemOnLayer(layer);
|
||||
|
||||
if (item?.Movable == true)
|
||||
m.PlaceInBackpack(item);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
241
Projects/Scripts/Mobiles/Monsters/ML/Humanoid/Magic/Satyr.cs
Normal file
241
Projects/Scripts/Mobiles/Monsters/ML/Humanoid/Magic/Satyr.cs
Normal file
|
|
@ -0,0 +1,241 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Satyr : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Satyr() : base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 271;
|
||||
BaseSoundID = 0x586;
|
||||
|
||||
SetStr(177, 195);
|
||||
SetDex(251, 269);
|
||||
SetInt(153, 170);
|
||||
|
||||
SetHits(350, 400);
|
||||
|
||||
SetDamage(13, 24);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 55, 60);
|
||||
SetResistance(ResistanceType.Fire, 25, 35);
|
||||
SetResistance(ResistanceType.Cold, 30, 40);
|
||||
SetResistance(ResistanceType.Poison, 30, 40);
|
||||
SetResistance(ResistanceType.Energy, 30, 40);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 55.0, 65.0);
|
||||
SetSkill(SkillName.Tactics, 80.0, 100.0);
|
||||
SetSkill(SkillName.Wrestling, 80.0, 100.0);
|
||||
|
||||
Fame = 5000;
|
||||
Karma = 0;
|
||||
|
||||
VirtualArmor = 28; // Don't know what it should be
|
||||
|
||||
PackArcanceScroll(0.05);
|
||||
}
|
||||
|
||||
public Satyr(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a satyr's corpse";
|
||||
public override string DefaultName => "a satyr";
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
public override int Meat => 1;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.MlRich);
|
||||
}
|
||||
|
||||
public override void OnThink()
|
||||
{
|
||||
base.OnThink();
|
||||
|
||||
Peace(Combatant);
|
||||
Undress(Combatant);
|
||||
Suppress(Combatant);
|
||||
Provoke(Combatant);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
#region Peace
|
||||
|
||||
private DateTime m_NextPeace;
|
||||
|
||||
public void Peace(Mobile target)
|
||||
{
|
||||
if (target == null || Deleted || !Alive || m_NextPeace > DateTime.UtcNow || 0.1 < Utility.RandomDouble())
|
||||
return;
|
||||
|
||||
if (target is PlayerMobile p && p.PeacedUntil < DateTime.UtcNow && !p.Hidden && CanBeHarmful(p))
|
||||
{
|
||||
p.PeacedUntil = DateTime.UtcNow + TimeSpan.FromMinutes(1);
|
||||
p.SendLocalizedMessage(500616); // You hear lovely music, and forget to continue battling!
|
||||
p.FixedParticles(0x376A, 1, 32, 0x15BD, EffectLayer.Waist);
|
||||
p.Combatant = null;
|
||||
|
||||
PlaySound(0x58D);
|
||||
}
|
||||
|
||||
m_NextPeace = DateTime.UtcNow + TimeSpan.FromSeconds(10);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Suppress
|
||||
|
||||
private static Dictionary<Mobile, Timer> m_Suppressed = new Dictionary<Mobile, Timer>();
|
||||
private DateTime m_NextSuppress;
|
||||
|
||||
public void Suppress(Mobile target)
|
||||
{
|
||||
if (target == null || m_Suppressed.ContainsKey(target) || Deleted || !Alive ||
|
||||
m_NextSuppress > DateTime.UtcNow || 0.1 < Utility.RandomDouble())
|
||||
return;
|
||||
|
||||
TimeSpan delay = TimeSpan.FromSeconds(Utility.RandomMinMax(20, 80));
|
||||
|
||||
if (!target.Hidden && CanBeHarmful(target))
|
||||
{
|
||||
target.SendLocalizedMessage(1072061); // You hear jarring music, suppressing your strength.
|
||||
|
||||
for (int i = 0; i < target.Skills.Length; i++)
|
||||
{
|
||||
Skill s = target.Skills[i];
|
||||
|
||||
target.AddSkillMod(new TimedSkillMod(s.SkillName, true, s.Base * -0.28, delay));
|
||||
}
|
||||
|
||||
int count = (int)Math.Round(delay.TotalSeconds / 1.25);
|
||||
Timer timer = new AnimateTimer(target, count);
|
||||
m_Suppressed.Add(target, timer);
|
||||
timer.Start();
|
||||
|
||||
PlaySound(0x58C);
|
||||
}
|
||||
|
||||
m_NextSuppress = DateTime.UtcNow + TimeSpan.FromSeconds(10);
|
||||
}
|
||||
|
||||
public static void SuppressRemove(Mobile target)
|
||||
{
|
||||
if (target == null)
|
||||
return;
|
||||
|
||||
if (m_Suppressed.TryGetValue(target, out Timer t))
|
||||
{
|
||||
if (t.Running)
|
||||
t.Stop();
|
||||
|
||||
m_Suppressed.Remove(target);
|
||||
}
|
||||
}
|
||||
|
||||
private class AnimateTimer : Timer
|
||||
{
|
||||
private int m_Count;
|
||||
private Mobile m_Owner;
|
||||
|
||||
public AnimateTimer(Mobile owner, int count) : base(TimeSpan.Zero, TimeSpan.FromSeconds(1.25))
|
||||
{
|
||||
m_Owner = owner;
|
||||
m_Count = count;
|
||||
}
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
if (m_Owner.Deleted || !m_Owner.Alive || m_Count-- < 0)
|
||||
SuppressRemove(m_Owner);
|
||||
else
|
||||
m_Owner.FixedParticles(0x376A, 1, 32, 0x15BD, EffectLayer.Waist);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Undress
|
||||
|
||||
private DateTime m_NextUndress;
|
||||
|
||||
public void Undress(Mobile target)
|
||||
{
|
||||
if (target == null || Deleted || !Alive || m_NextUndress > DateTime.UtcNow || 0.005 < Utility.RandomDouble())
|
||||
return;
|
||||
|
||||
if (target.Player && target.Female && !target.Hidden && CanBeHarmful(target))
|
||||
{
|
||||
UndressItem(target, Layer.OuterTorso);
|
||||
UndressItem(target, Layer.InnerTorso);
|
||||
UndressItem(target, Layer.MiddleTorso);
|
||||
UndressItem(target, Layer.Pants);
|
||||
UndressItem(target, Layer.Shirt);
|
||||
|
||||
target.SendLocalizedMessage(
|
||||
1072196); // The satyr's music makes your blood race. Your clothing is too confining.
|
||||
}
|
||||
|
||||
m_NextUndress = DateTime.UtcNow + TimeSpan.FromMinutes(1);
|
||||
}
|
||||
|
||||
public void UndressItem(Mobile m, Layer layer)
|
||||
{
|
||||
Item item = m.FindItemOnLayer(layer);
|
||||
|
||||
if (item?.Movable == true)
|
||||
m.PlaceInBackpack(item);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Provoke
|
||||
|
||||
private DateTime m_NextProvoke;
|
||||
|
||||
public void Provoke(Mobile target)
|
||||
{
|
||||
if (target == null || Deleted || !Alive || m_NextProvoke > DateTime.UtcNow || 0.05 < Utility.RandomDouble())
|
||||
return;
|
||||
|
||||
foreach (Mobile m in GetMobilesInRange(RangePerception))
|
||||
if (m is BaseCreature c)
|
||||
{
|
||||
if (c == this || c == target || c.Unprovokable || c.IsParagon || c.BardProvoked ||
|
||||
c.AccessLevel != AccessLevel.Player || !c.CanBeHarmful(target))
|
||||
continue;
|
||||
|
||||
c.Provoke(this, target, true);
|
||||
|
||||
if (target.Player)
|
||||
target.SendLocalizedMessage(1072062); // You hear angry music, and start to fight.
|
||||
|
||||
PlaySound(0x58A);
|
||||
break;
|
||||
}
|
||||
|
||||
m_NextProvoke = DateTime.UtcNow + TimeSpan.FromSeconds(10);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
namespace Server.Mobiles
|
||||
{
|
||||
public class CorruptedSoul : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public CorruptedSoul() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, .1, 5)
|
||||
{
|
||||
Body = 0x3CA;
|
||||
Hue = 0x453;
|
||||
|
||||
SetStr(102, 115);
|
||||
SetDex(101, 115);
|
||||
SetInt(203, 215);
|
||||
|
||||
SetHits(61, 69);
|
||||
|
||||
SetDamage(4, 40);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 61, 74);
|
||||
SetResistance(ResistanceType.Fire, 22, 48);
|
||||
SetResistance(ResistanceType.Cold, 73, 100);
|
||||
SetResistance(ResistanceType.Poison, 0);
|
||||
SetResistance(ResistanceType.Energy, 51, 60);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 80.2, 89.4);
|
||||
SetSkill(SkillName.Tactics, 81.3, 89.9);
|
||||
SetSkill(SkillName.Wrestling, 80.1, 88.7);
|
||||
|
||||
Fame = 5000;
|
||||
Karma = -5000;
|
||||
|
||||
// VirtualArmor = 6; Not sure
|
||||
}
|
||||
|
||||
public CorruptedSoul(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool DeleteCorpseOnDeath => true;
|
||||
|
||||
public override string DefaultName => "a corrupted soul";
|
||||
|
||||
public override bool AlwaysAttackable => true;
|
||||
public override bool BleedImmune => true; // NEED TO VERIFY
|
||||
|
||||
/*public override int GetDeathSound()
|
||||
{
|
||||
return 0x0;
|
||||
}*/
|
||||
|
||||
public override bool AlwaysMurderer => true;
|
||||
|
||||
// NEED TO VERIFY SOUNDS! Known: No Idle Sound.
|
||||
|
||||
/*public override int GetAngerSound()
|
||||
{
|
||||
return 0x0;
|
||||
}*/
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x233;
|
||||
}
|
||||
|
||||
// TODO: Proper OnDeath Effect
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
if (!base.OnBeforeDeath())
|
||||
return false;
|
||||
|
||||
// 1 in 20 chance that a Thread of Fate will appear in the killer's pack
|
||||
|
||||
Effects.SendLocationEffect(Location, Map, 0x376A, 10, 1);
|
||||
return 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[TypeAlias("Server.Mobiles.FerelTreefellow")]
|
||||
public class FeralTreefellow : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public FeralTreefellow() : base(AIType.AI_Melee, FightMode.Evil, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 301;
|
||||
|
||||
SetStr(1351, 1600);
|
||||
SetDex(301, 550);
|
||||
SetInt(651, 900);
|
||||
|
||||
SetHits(1170, 1320);
|
||||
|
||||
SetDamage(26, 35);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 60, 70);
|
||||
SetResistance(ResistanceType.Cold, 70, 80);
|
||||
SetResistance(ResistanceType.Poison, 60, 70);
|
||||
SetResistance(ResistanceType.Energy, 40, 60);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 40.1, 55.0); // Unknown
|
||||
SetSkill(SkillName.Tactics, 65.1, 90.0); // Unknown
|
||||
SetSkill(SkillName.Wrestling, 65.1, 85.0); // Unknown
|
||||
|
||||
Fame = 12500; //Unknown
|
||||
Karma = 12500; //Unknown
|
||||
|
||||
VirtualArmor = 24;
|
||||
PackItem(new Log(Utility.RandomMinMax(23, 34)));
|
||||
}
|
||||
|
||||
public FeralTreefellow(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a treefellow corpse";
|
||||
|
||||
public override string DefaultName => "a feral treefellow";
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
public override bool BleedImmune => true;
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.Dismount;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 443;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 31;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 672;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Average); //Unknown
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,99 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Minotaur : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Minotaur() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) // NEED TO CHECK
|
||||
{
|
||||
Body = 263;
|
||||
|
||||
SetStr(301, 340);
|
||||
SetDex(91, 110);
|
||||
SetInt(31, 50);
|
||||
|
||||
SetHits(301, 340);
|
||||
|
||||
SetDamage(11, 20);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 55, 65);
|
||||
SetResistance(ResistanceType.Fire, 25, 35);
|
||||
SetResistance(ResistanceType.Cold, 30, 40);
|
||||
SetResistance(ResistanceType.Poison, 30, 40);
|
||||
SetResistance(ResistanceType.Energy, 30, 40);
|
||||
|
||||
SetSkill(SkillName.Meditation, 0);
|
||||
SetSkill(SkillName.EvalInt, 0);
|
||||
SetSkill(SkillName.Magery, 0);
|
||||
SetSkill(SkillName.Poisoning, 0);
|
||||
SetSkill(SkillName.Anatomy, 0);
|
||||
SetSkill(SkillName.MagicResist, 56.1, 64.0);
|
||||
SetSkill(SkillName.Tactics, 93.3, 97.8);
|
||||
SetSkill(SkillName.Wrestling, 90.4, 92.1);
|
||||
|
||||
Fame = 5000;
|
||||
Karma = -5000;
|
||||
|
||||
VirtualArmor = 28; // Don't know what it should be
|
||||
}
|
||||
|
||||
public Minotaur(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a minotaur corpse";
|
||||
|
||||
public override string DefaultName => "a minotaur";
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.ParalyzingBlow;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich); // Need to verify
|
||||
}
|
||||
|
||||
// Using Tormented Minotaur sounds - Need to veryfy
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x597;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x596;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x599;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x59a;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x59c;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,99 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class MinotaurCaptain : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public MinotaurCaptain() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) // NEED TO CHECK
|
||||
{
|
||||
Body = 280;
|
||||
|
||||
SetStr(401, 425);
|
||||
SetDex(91, 110);
|
||||
SetInt(31, 50);
|
||||
|
||||
SetHits(401, 440);
|
||||
|
||||
SetDamage(11, 20);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 65, 75);
|
||||
SetResistance(ResistanceType.Fire, 35, 45);
|
||||
SetResistance(ResistanceType.Cold, 40, 50);
|
||||
SetResistance(ResistanceType.Poison, 40, 50);
|
||||
SetResistance(ResistanceType.Energy, 40, 50);
|
||||
|
||||
SetSkill(SkillName.Meditation, 0);
|
||||
SetSkill(SkillName.EvalInt, 0);
|
||||
SetSkill(SkillName.Magery, 0);
|
||||
SetSkill(SkillName.Poisoning, 0);
|
||||
SetSkill(SkillName.Anatomy, 0, 6.3);
|
||||
SetSkill(SkillName.MagicResist, 66.1, 73.6);
|
||||
SetSkill(SkillName.Tactics, 93.0, 109.9);
|
||||
SetSkill(SkillName.Wrestling, 92.6, 107.2);
|
||||
|
||||
Fame = 7000;
|
||||
Karma = -7000;
|
||||
|
||||
VirtualArmor = 28; // Don't know what it should be
|
||||
}
|
||||
|
||||
public MinotaurCaptain(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a minotaur corpse";
|
||||
|
||||
public override string DefaultName => "a minotaur captain";
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.ParalyzingBlow;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich); // Need to verify
|
||||
}
|
||||
|
||||
// Using Tormented Minotaur sounds - Need to veryfy
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x597;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x596;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x599;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x59a;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x59c;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,99 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class MinotaurScout : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public MinotaurScout() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) // NEED TO CHECK
|
||||
{
|
||||
Body = 281;
|
||||
|
||||
SetStr(353, 375);
|
||||
SetDex(111, 130);
|
||||
SetInt(34, 50);
|
||||
|
||||
SetHits(354, 383);
|
||||
|
||||
SetDamage(11, 20);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 55, 65);
|
||||
SetResistance(ResistanceType.Fire, 25, 35);
|
||||
SetResistance(ResistanceType.Cold, 30, 40);
|
||||
SetResistance(ResistanceType.Poison, 30, 40);
|
||||
SetResistance(ResistanceType.Energy, 30, 40);
|
||||
|
||||
//SetSkill( SkillName.Meditation, Unknown );
|
||||
//SetSkill( SkillName.EvalInt, Unknown );
|
||||
//SetSkill( SkillName.Magery, Unknown );
|
||||
//SetSkill( SkillName.Poisoning, Unknown );
|
||||
SetSkill(SkillName.Anatomy, 0);
|
||||
SetSkill(SkillName.MagicResist, 60.6, 67.5);
|
||||
SetSkill(SkillName.Tactics, 86.9, 103.6);
|
||||
SetSkill(SkillName.Wrestling, 85.6, 104.5);
|
||||
|
||||
Fame = 5000;
|
||||
Karma = -5000;
|
||||
|
||||
VirtualArmor = 28; // Don't know what it should be
|
||||
}
|
||||
|
||||
public MinotaurScout(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a minotaur corpse";
|
||||
|
||||
public override string DefaultName => "a minotaur scout";
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.ParalyzingBlow;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich); // Need to verify
|
||||
}
|
||||
|
||||
// Using Tormented Minotaur sounds - Need to veryfy
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x597;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x596;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x599;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x59a;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x59c;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class PestilentBandage : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public PestilentBandage() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) // NEED TO CHECK
|
||||
{
|
||||
Body = 154;
|
||||
Hue = 0x515;
|
||||
BaseSoundID = 471;
|
||||
|
||||
SetStr(691, 740);
|
||||
SetDex(141, 180);
|
||||
SetInt(51, 80);
|
||||
|
||||
SetHits(415, 445);
|
||||
|
||||
SetDamage(13, 23);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 40);
|
||||
SetDamageType(ResistanceType.Cold, 20);
|
||||
SetDamageType(ResistanceType.Poison, 40);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 45, 55);
|
||||
SetResistance(ResistanceType.Fire, 10, 20);
|
||||
SetResistance(ResistanceType.Cold, 50, 60);
|
||||
SetResistance(ResistanceType.Poison, 20, 30);
|
||||
SetResistance(ResistanceType.Energy, 20, 30);
|
||||
|
||||
SetSkill(SkillName.Poisoning, 0.0, 10.0);
|
||||
SetSkill(SkillName.Anatomy, 0);
|
||||
SetSkill(SkillName.MagicResist, 75.0, 80.0);
|
||||
SetSkill(SkillName.Tactics, 80.0, 85.0);
|
||||
SetSkill(SkillName.Wrestling, 70.0, 75.0);
|
||||
|
||||
Fame = 20000;
|
||||
Karma = -20000;
|
||||
|
||||
// VirtualArmor = 28; // Don't know what it should be
|
||||
|
||||
PackItem(new Bandage(5)); // How many?
|
||||
}
|
||||
|
||||
public PestilentBandage(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a pestilent bandage corpse";
|
||||
// Neither Stratics nor UOGuide have much description
|
||||
// beyond being a "Grey Mummy". BodyValue, Sound and
|
||||
// Hue are all guessed until they can be verified.
|
||||
// Loot and Fame/Karma are also guesses at this point.
|
||||
//
|
||||
// They also apparently have a Poison Attack, which I've stolen from Yamandons.
|
||||
|
||||
public override string DefaultName => "a pestilent bandage";
|
||||
|
||||
public override Poison HitPoison => Poison.Lethal;
|
||||
public override bool CanHeal => true;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich); // Need to verify
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class TormentedMinotaur : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public TormentedMinotaur() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 262;
|
||||
|
||||
SetStr(822, 930);
|
||||
SetDex(401, 415);
|
||||
SetInt(128, 138);
|
||||
|
||||
SetHits(4000, 4200);
|
||||
|
||||
SetDamage(16, 30);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 62);
|
||||
SetResistance(ResistanceType.Fire, 74);
|
||||
SetResistance(ResistanceType.Cold, 54);
|
||||
SetResistance(ResistanceType.Poison, 56);
|
||||
SetResistance(ResistanceType.Energy, 54);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 110.1, 111.0);
|
||||
SetSkill(SkillName.Tactics, 100.7, 102.8);
|
||||
SetSkill(SkillName.MagicResist, 104.3, 116.3);
|
||||
|
||||
|
||||
Fame = 20000;
|
||||
Karma = -20000;
|
||||
}
|
||||
|
||||
public TormentedMinotaur(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a tormented minotaur corpse";
|
||||
|
||||
public override string DefaultName => "Tormented Minotaur";
|
||||
|
||||
public override Poison PoisonImmune => Poison.Deadly;
|
||||
public override int TreasureMapLevel => 3;
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.Dismount;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich, 10);
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x596;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x597;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x598;
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x599;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x59A;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Troglodyte : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Troglodyte() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) // NEED TO CHECK
|
||||
{
|
||||
Body = 267;
|
||||
BaseSoundID = 0x59F;
|
||||
|
||||
SetStr(148, 217);
|
||||
SetDex(91, 120);
|
||||
SetInt(51, 70);
|
||||
|
||||
SetHits(302, 340);
|
||||
|
||||
SetDamage(11, 14);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 30, 35);
|
||||
SetResistance(ResistanceType.Fire, 20, 30);
|
||||
SetResistance(ResistanceType.Cold, 35, 40);
|
||||
SetResistance(ResistanceType.Poison, 30, 40);
|
||||
SetResistance(ResistanceType.Energy, 30, 40);
|
||||
|
||||
SetSkill(SkillName.Anatomy, 70.5, 94.8);
|
||||
SetSkill(SkillName.MagicResist, 51.8, 65.0);
|
||||
SetSkill(SkillName.Tactics, 80.4, 94.7);
|
||||
SetSkill(SkillName.Wrestling, 70.2, 93.5);
|
||||
SetSkill(SkillName.Healing, 70.0, 95.0);
|
||||
|
||||
Fame = 5000;
|
||||
Karma = -5000;
|
||||
|
||||
VirtualArmor = 28; // Don't know what it should be
|
||||
|
||||
PackItem(new Bandage(5)); // How many?
|
||||
PackItem(new Ribs());
|
||||
}
|
||||
|
||||
public Troglodyte(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a troglodyte corpse";
|
||||
public override string DefaultName => "a troglodyte";
|
||||
|
||||
public override bool CanHeal => true;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich); // Need to verify
|
||||
}
|
||||
|
||||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem(new PrimitiveFetish());
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue