Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
315
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Changeling.cs
Normal file
315
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Changeling.cs
Normal file
|
|
@ -0,0 +1,315 @@
|
|||
using System;
|
||||
using Server.Items;
|
||||
using Server.Spells;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Changeling : BaseCreature
|
||||
{
|
||||
private static readonly int[] m_FireNorth =
|
||||
{
|
||||
-1, -1,
|
||||
1, -1,
|
||||
-1, 2,
|
||||
1, 2
|
||||
};
|
||||
|
||||
private static readonly int[] m_FireEast =
|
||||
{
|
||||
-1, 0,
|
||||
2, 0
|
||||
};
|
||||
|
||||
private DateTime m_LastMorph;
|
||||
|
||||
private Mobile m_MorphedInto;
|
||||
private DateTime m_NextFireRing;
|
||||
|
||||
[Constructible]
|
||||
public Changeling()
|
||||
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 264;
|
||||
Hue = DefaultHue;
|
||||
|
||||
SetStr(36, 105);
|
||||
SetDex(212, 262);
|
||||
SetInt(317, 399);
|
||||
|
||||
SetHits(201, 211);
|
||||
SetStam(212, 262);
|
||||
SetMana(317, 399);
|
||||
|
||||
SetDamage(9, 15);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 81, 90);
|
||||
SetResistance(ResistanceType.Fire, 40, 50);
|
||||
SetResistance(ResistanceType.Cold, 40, 49);
|
||||
SetResistance(ResistanceType.Poison, 40, 50);
|
||||
SetResistance(ResistanceType.Energy, 43, 50);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 10.4, 12.5);
|
||||
SetSkill(SkillName.Tactics, 101.1, 108.3);
|
||||
SetSkill(SkillName.MagicResist, 121.6, 132.2);
|
||||
SetSkill(SkillName.Magery, 91.6, 99.5);
|
||||
SetSkill(SkillName.EvalInt, 91.5, 98.8);
|
||||
SetSkill(SkillName.Meditation, 91.7, 98.5);
|
||||
|
||||
Fame = 15000;
|
||||
Karma = -15000;
|
||||
|
||||
PackScroll(1, 7);
|
||||
PackItem(new Arrow(35));
|
||||
PackItem(new Bolt(25));
|
||||
PackGem(2);
|
||||
|
||||
PackArcaneScroll(0, 1);
|
||||
}
|
||||
|
||||
public Changeling(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a changeling corpse";
|
||||
public override string DefaultName => "a changeling";
|
||||
public virtual int DefaultHue => 0;
|
||||
|
||||
public override bool ShowFameTitle => false;
|
||||
public override bool InitialInnocent => m_MorphedInto != null;
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public Mobile MorphedInto
|
||||
{
|
||||
get => m_MorphedInto;
|
||||
set
|
||||
{
|
||||
if (value == this)
|
||||
value = null;
|
||||
|
||||
if (m_MorphedInto != value)
|
||||
{
|
||||
Revert();
|
||||
|
||||
if (value != null)
|
||||
{
|
||||
Morph(value);
|
||||
m_LastMorph = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
m_MorphedInto = value;
|
||||
Delta(MobileDelta.Noto);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.AosRich, 3);
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x46E;
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x470;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x46D;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x471;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x46F;
|
||||
}
|
||||
|
||||
public override void OnThink()
|
||||
{
|
||||
base.OnThink();
|
||||
|
||||
if (Combatant != null)
|
||||
{
|
||||
if (m_NextFireRing <= DateTime.UtcNow && Utility.RandomDouble() < 0.02)
|
||||
{
|
||||
FireRing();
|
||||
m_NextFireRing = DateTime.UtcNow + TimeSpan.FromMinutes(2);
|
||||
}
|
||||
|
||||
if (Combatant.Player && m_MorphedInto != Combatant && Utility.RandomDouble() < 0.05)
|
||||
MorphedInto = Combatant;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CheckIdle()
|
||||
{
|
||||
bool idle = base.CheckIdle();
|
||||
|
||||
if (idle && m_MorphedInto != null && DateTime.UtcNow - m_LastMorph > TimeSpan.FromSeconds(30))
|
||||
MorphedInto = null;
|
||||
|
||||
return idle;
|
||||
}
|
||||
|
||||
private void FireEffects(int itemID, int[] offsets)
|
||||
{
|
||||
for (int i = 0; i < offsets.Length; i += 2)
|
||||
{
|
||||
Point3D p = Location;
|
||||
|
||||
p.X += offsets[i];
|
||||
p.Y += offsets[i + 1];
|
||||
|
||||
if (SpellHelper.AdjustField(ref p, Map, 12, false))
|
||||
Effects.SendLocationEffect(p, Map, itemID, 50);
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void FireRing()
|
||||
{
|
||||
FireEffects(0x3E27, m_FireNorth);
|
||||
FireEffects(0x3E31, m_FireEast);
|
||||
}
|
||||
|
||||
protected virtual void Morph(Mobile m)
|
||||
{
|
||||
Body = m.Body;
|
||||
Hue = m.Hue;
|
||||
Female = m.Female;
|
||||
Name = m.Name;
|
||||
NameHue = m.NameHue;
|
||||
Title = m.Title;
|
||||
Kills = m.Kills;
|
||||
HairItemID = m.HairItemID;
|
||||
HairHue = m.HairHue;
|
||||
FacialHairItemID = m.FacialHairItemID;
|
||||
FacialHairHue = m.FacialHairHue;
|
||||
|
||||
// TODO: Skills?
|
||||
|
||||
foreach (Item item in m.Items)
|
||||
if (item.Layer != Layer.Backpack && item.Layer != Layer.Mount && item.Layer != Layer.Bank)
|
||||
AddItem(new ClonedItem(item)); // TODO: Clone weapon/armor attributes
|
||||
|
||||
PlaySound(0x511);
|
||||
FixedParticles(0x376A, 1, 14, 5045, EffectLayer.Waist);
|
||||
}
|
||||
|
||||
protected virtual void Revert()
|
||||
{
|
||||
Body = 264;
|
||||
Hue = IsParagon && DefaultHue == 0 ? Paragon.Hue : DefaultHue;
|
||||
Female = false;
|
||||
Name = null;
|
||||
NameHue = -1;
|
||||
Title = null;
|
||||
Kills = 0;
|
||||
HairItemID = 0;
|
||||
HairHue = 0;
|
||||
FacialHairItemID = 0;
|
||||
FacialHairHue = 0;
|
||||
|
||||
DeleteClonedItems();
|
||||
|
||||
PlaySound(0x511);
|
||||
FixedParticles(0x376A, 1, 14, 5045, EffectLayer.Waist);
|
||||
}
|
||||
|
||||
public void DeleteClonedItems()
|
||||
{
|
||||
for (int i = Items.Count - 1; i >= 0; --i)
|
||||
{
|
||||
Item item = Items[i];
|
||||
|
||||
if (item is ClonedItem)
|
||||
item.Delete();
|
||||
}
|
||||
|
||||
if (Backpack != null)
|
||||
for (int i = Backpack.Items.Count - 1; i >= 0; --i)
|
||||
{
|
||||
Item item = Backpack.Items[i];
|
||||
|
||||
if (item is ClonedItem)
|
||||
item.Delete();
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnAfterDelete()
|
||||
{
|
||||
DeleteClonedItems();
|
||||
|
||||
base.OnAfterDelete();
|
||||
}
|
||||
|
||||
public override void ClearHands()
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0); // version
|
||||
writer.Write(m_MorphedInto != null);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if (reader.ReadBool())
|
||||
ValidationQueue<Changeling>.Add(this);
|
||||
}
|
||||
|
||||
public void Validate()
|
||||
{
|
||||
Revert();
|
||||
}
|
||||
|
||||
private class ClonedItem : Item
|
||||
{
|
||||
public ClonedItem(Item item)
|
||||
: base(item.ItemID)
|
||||
{
|
||||
Name = item.Name;
|
||||
Weight = item.Weight;
|
||||
Hue = item.Hue;
|
||||
Layer = item.Layer;
|
||||
Movable = false;
|
||||
}
|
||||
|
||||
public ClonedItem(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
80
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Gnaw.cs
Normal file
80
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Gnaw.cs
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
namespace Server.Mobiles
|
||||
{
|
||||
public class Gnaw : DireWolf
|
||||
{
|
||||
[Constructible]
|
||||
public Gnaw()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Hue = 0x130;
|
||||
|
||||
SetStr(151, 172);
|
||||
SetDex(124, 145);
|
||||
SetInt(60, 86);
|
||||
|
||||
SetHits(817, 857);
|
||||
SetStam(124, 145);
|
||||
SetMana(52, 86);
|
||||
|
||||
SetDamage(16, 22);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 64, 69);
|
||||
SetResistance(ResistanceType.Fire, 53, 56);
|
||||
SetResistance(ResistanceType.Cold, 22, 27);
|
||||
SetResistance(ResistanceType.Poison, 27, 30);
|
||||
SetResistance(ResistanceType.Energy, 21, 34);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 106.4, 116.5);
|
||||
SetSkill(SkillName.Tactics, 84.1, 103.2);
|
||||
SetSkill(SkillName.MagicResist, 96.8, 110.7);
|
||||
|
||||
Fame = 17500;
|
||||
Karma = -17500;
|
||||
}
|
||||
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.3 )
|
||||
c.DropItem( new GnawsFang() );
|
||||
}
|
||||
*/
|
||||
|
||||
public Gnaw(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a Gnaw corpse";
|
||||
public override string DefaultName => "Gnaw";
|
||||
|
||||
public override bool GivesMLMinorArtifact => true;
|
||||
public override int Hides => 28;
|
||||
public override int Meat => 4;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.FilthyRich, 2);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
84
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Guile.cs
Normal file
84
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Guile.cs
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
namespace Server.Mobiles
|
||||
{
|
||||
public class Guile : Changeling
|
||||
{
|
||||
[Constructible]
|
||||
public Guile()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Hue = DefaultHue;
|
||||
|
||||
SetStr(53, 214);
|
||||
SetDex(243, 367);
|
||||
SetInt(369, 586);
|
||||
|
||||
SetHits(1013, 1058);
|
||||
SetStam(243, 367);
|
||||
SetMana(369, 586);
|
||||
|
||||
SetDamage(14, 20);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 80, 90);
|
||||
SetResistance(ResistanceType.Fire, 43, 46);
|
||||
SetResistance(ResistanceType.Cold, 42, 44);
|
||||
SetResistance(ResistanceType.Poison, 42, 50);
|
||||
SetResistance(ResistanceType.Energy, 47, 50);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 12.8, 16.7);
|
||||
SetSkill(SkillName.Tactics, 102.6, 131.0);
|
||||
SetSkill(SkillName.MagicResist, 141.2, 161.6);
|
||||
SetSkill(SkillName.Magery, 108.4, 120.0);
|
||||
SetSkill(SkillName.EvalInt, 108.4, 120.0);
|
||||
SetSkill(SkillName.Meditation, 109.2, 120.0);
|
||||
|
||||
Fame = 21000;
|
||||
Karma = -21000;
|
||||
}
|
||||
|
||||
public Guile(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a Guile corpse";
|
||||
public override string DefaultName => "Guile";
|
||||
public override int DefaultHue => 0x3F;
|
||||
|
||||
public override bool GivesMLMinorArtifact => true;
|
||||
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
if (Utility.RandomBool())
|
||||
if (!Kappa.IsBeingDrained(defender) && Mana > 14)
|
||||
{
|
||||
defender.SendLocalizedMessage(1070848); // You feel your life force being stolen away.
|
||||
Kappa.BeginLifeDrain(defender, this);
|
||||
Mana -= 15;
|
||||
}
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
85
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Irk.cs
Normal file
85
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Irk.cs
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
namespace Server.Mobiles
|
||||
{
|
||||
public class Irk : Changeling
|
||||
{
|
||||
[Constructible]
|
||||
public Irk()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Hue = DefaultHue;
|
||||
|
||||
SetStr(23, 183);
|
||||
SetDex(259, 360);
|
||||
SetInt(374, 600);
|
||||
|
||||
SetHits(1006, 1064);
|
||||
SetStam(259, 360);
|
||||
SetMana(374, 600);
|
||||
|
||||
SetDamage(14, 20);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 80, 90);
|
||||
SetResistance(ResistanceType.Fire, 40, 50);
|
||||
SetResistance(ResistanceType.Cold, 40, 50);
|
||||
SetResistance(ResistanceType.Poison, 41, 50);
|
||||
SetResistance(ResistanceType.Energy, 40, 49);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 120.3, 123.0);
|
||||
SetSkill(SkillName.Tactics, 120.1, 131.8);
|
||||
SetSkill(SkillName.MagicResist, 132.3, 165.8);
|
||||
SetSkill(SkillName.Magery, 108.9, 119.7);
|
||||
SetSkill(SkillName.EvalInt, 108.4, 120.0);
|
||||
SetSkill(SkillName.Meditation, 108.9, 119.1);
|
||||
|
||||
Fame = 21000;
|
||||
Karma = -21000;
|
||||
}
|
||||
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.25 )
|
||||
c.DropItem( new IrksBrain() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.025 )
|
||||
c.DropItem( new PaladinGloves() );
|
||||
}
|
||||
*/
|
||||
|
||||
public Irk(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "an Irk corpse";
|
||||
public override string DefaultName => "Irk";
|
||||
public override int DefaultHue => 0x489;
|
||||
|
||||
// TODO: Angry fire
|
||||
|
||||
public override bool GivesMLMinorArtifact => true;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
}
|
||||
|
||||
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,92 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class LadyLissith : GiantBlackWidow
|
||||
{
|
||||
[Constructible]
|
||||
public LadyLissith()
|
||||
{
|
||||
IsParagon = true;
|
||||
Hue = 0x452;
|
||||
|
||||
SetStr(81, 130);
|
||||
SetDex(116, 152);
|
||||
SetInt(44, 100);
|
||||
|
||||
SetHits(245, 375);
|
||||
SetStam(116, 152);
|
||||
SetMana(44, 100);
|
||||
|
||||
SetDamage(15, 22);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 40, 50);
|
||||
SetResistance(ResistanceType.Fire, 31, 39);
|
||||
SetResistance(ResistanceType.Cold, 30, 40);
|
||||
SetResistance(ResistanceType.Poison, 71, 80);
|
||||
SetResistance(ResistanceType.Energy, 30, 40);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 108.6, 123.0);
|
||||
SetSkill(SkillName.Tactics, 102.7, 119.0);
|
||||
SetSkill(SkillName.MagicResist, 78.8, 95.6);
|
||||
SetSkill(SkillName.Anatomy, 68.6, 106.8);
|
||||
SetSkill(SkillName.Poisoning, 96.6, 112.9);
|
||||
|
||||
Fame = 18900;
|
||||
Karma = -18900;
|
||||
}
|
||||
|
||||
public LadyLissith(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a Lady Lissith corpse";
|
||||
public override string DefaultName => "Lady Lissith";
|
||||
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.025 )
|
||||
c.DropItem( new GreymistChest() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.45 )
|
||||
c.DropItem( new LissithsSilk() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
||||
public override bool GivesMLMinorArtifact => true;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.BleedAttack;
|
||||
}
|
||||
|
||||
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,98 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class LadySabrix : GiantBlackWidow
|
||||
{
|
||||
[Constructible]
|
||||
public LadySabrix()
|
||||
{
|
||||
IsParagon = true;
|
||||
Hue = 0x497;
|
||||
|
||||
SetStr(82, 130);
|
||||
SetDex(117, 146);
|
||||
SetInt(50, 98);
|
||||
|
||||
SetHits(233, 361);
|
||||
SetStam(117, 146);
|
||||
SetMana(50, 98);
|
||||
|
||||
SetDamage(15, 22);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 40, 50);
|
||||
SetResistance(ResistanceType.Fire, 30, 40);
|
||||
SetResistance(ResistanceType.Cold, 30, 39);
|
||||
SetResistance(ResistanceType.Poison, 70, 80);
|
||||
SetResistance(ResistanceType.Energy, 35, 44);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 109.8, 122.8);
|
||||
SetSkill(SkillName.Tactics, 102.8, 120.0);
|
||||
SetSkill(SkillName.MagicResist, 79.4, 95.1);
|
||||
SetSkill(SkillName.Anatomy, 68.8, 105.1);
|
||||
SetSkill(SkillName.Poisoning, 97.8, 116.7);
|
||||
|
||||
Fame = 18900;
|
||||
Karma = -18900;
|
||||
}
|
||||
|
||||
public LadySabrix(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a Lady Sabrix corpse";
|
||||
public override string DefaultName => "Lady Sabrix";
|
||||
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.2 )
|
||||
c.DropItem( new SabrixsEye() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.25 )
|
||||
{
|
||||
switch ( Utility.Random( 2 ) )
|
||||
{
|
||||
case 0: AddToBackpack( new PaladinArms() ); break;
|
||||
case 1: AddToBackpack( new HunterLegs() ); break;
|
||||
}
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
||||
public override bool GivesMLMinorArtifact => true;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.ArmorIgnore;
|
||||
}
|
||||
|
||||
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,83 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Malefic : DreadSpider
|
||||
{
|
||||
[Constructible]
|
||||
public Malefic()
|
||||
{
|
||||
IsParagon = true;
|
||||
Hue = 0x455;
|
||||
|
||||
SetStr(210, 284);
|
||||
SetDex(153, 197);
|
||||
SetInt(349, 390);
|
||||
|
||||
SetHits(600, 747);
|
||||
SetStam(153, 197);
|
||||
SetMana(349, 390);
|
||||
|
||||
SetDamage(15, 22);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 20);
|
||||
SetDamageType(ResistanceType.Poison, 80);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 60, 70);
|
||||
SetResistance(ResistanceType.Fire, 40, 50);
|
||||
SetResistance(ResistanceType.Cold, 40, 49);
|
||||
SetResistance(ResistanceType.Poison, 100);
|
||||
SetResistance(ResistanceType.Energy, 41, 48);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 96.9, 112.4);
|
||||
SetSkill(SkillName.Tactics, 91.3, 105.4);
|
||||
SetSkill(SkillName.MagicResist, 79.8, 95.1);
|
||||
SetSkill(SkillName.Magery, 103.0, 118.6);
|
||||
SetSkill(SkillName.EvalInt, 105.7, 119.6);
|
||||
SetSkill(SkillName.Meditation, 0);
|
||||
|
||||
Fame = 21000;
|
||||
Karma = -21000;
|
||||
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
PackItem( new ParrotItem() );
|
||||
*/
|
||||
}
|
||||
|
||||
public Malefic(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a Malefic corpse";
|
||||
public override string DefaultName => "Malefic";
|
||||
|
||||
public override bool GivesMLMinorArtifact => true;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 3);
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.Dismount;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
75
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Silk.cs
Normal file
75
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Silk.cs
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Silk : GiantBlackWidow
|
||||
{
|
||||
[Constructible]
|
||||
public Silk()
|
||||
{
|
||||
IsParagon = true;
|
||||
Hue = 0x47E;
|
||||
|
||||
SetStr(80, 131);
|
||||
SetDex(126, 156);
|
||||
SetInt(63, 102);
|
||||
|
||||
SetHits(279, 378);
|
||||
SetStam(126, 156);
|
||||
SetMana(63, 102);
|
||||
|
||||
SetDamage(15, 22);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 40, 50);
|
||||
SetResistance(ResistanceType.Fire, 30, 39);
|
||||
SetResistance(ResistanceType.Cold, 30, 40);
|
||||
SetResistance(ResistanceType.Poison, 70, 76);
|
||||
SetResistance(ResistanceType.Energy, 30, 40);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 114.1, 123.7);
|
||||
SetSkill(SkillName.Tactics, 102.6, 118.3);
|
||||
SetSkill(SkillName.MagicResist, 78.6, 94.8);
|
||||
SetSkill(SkillName.Anatomy, 81.3, 105.7);
|
||||
SetSkill(SkillName.Poisoning, 106.0, 119.2);
|
||||
|
||||
Fame = 18900;
|
||||
Karma = -18900;
|
||||
}
|
||||
|
||||
public Silk(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a Silk corpse";
|
||||
public override string DefaultName => "Silk";
|
||||
|
||||
public override bool GivesMLMinorArtifact => true;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.ParalyzingBlow;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
71
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Spite.cs
Normal file
71
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Spite.cs
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
namespace Server.Mobiles
|
||||
{
|
||||
public class Spite : Changeling
|
||||
{
|
||||
[Constructible]
|
||||
public Spite()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Hue = DefaultHue;
|
||||
|
||||
SetStr(53, 214);
|
||||
SetDex(243, 367);
|
||||
SetInt(369, 586);
|
||||
|
||||
SetHits(1013, 1052);
|
||||
SetStam(243, 367);
|
||||
SetMana(369, 586);
|
||||
|
||||
SetDamage(14, 20);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 85, 90);
|
||||
SetResistance(ResistanceType.Fire, 41, 46);
|
||||
SetResistance(ResistanceType.Cold, 40, 44);
|
||||
SetResistance(ResistanceType.Poison, 42, 46);
|
||||
SetResistance(ResistanceType.Energy, 45, 47);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 12.8, 16.7);
|
||||
SetSkill(SkillName.Tactics, 102.6, 131.0);
|
||||
SetSkill(SkillName.MagicResist, 141.2, 161.6);
|
||||
SetSkill(SkillName.Magery, 108.4, 119.2);
|
||||
SetSkill(SkillName.EvalInt, 108.4, 120.0);
|
||||
SetSkill(SkillName.Meditation, 109.2, 120.0);
|
||||
|
||||
Fame = 21000;
|
||||
Karma = -21000;
|
||||
}
|
||||
|
||||
public Spite(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a Spite corpse";
|
||||
public override string DefaultName => "Spite";
|
||||
public override int DefaultHue => 0x21;
|
||||
|
||||
public override bool GivesMLMinorArtifact => true;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
170
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Swoop.cs
Normal file
170
Projects/Scripts/Mobiles/Monsters/ML/Twisted Weald/Swoop.cs
Normal file
|
|
@ -0,0 +1,170 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Swoop : Eagle
|
||||
{
|
||||
private static Dictionary<Mobile, ExpireTimer> m_Table = new Dictionary<Mobile, ExpireTimer>();
|
||||
|
||||
[Constructible]
|
||||
public Swoop()
|
||||
{
|
||||
IsParagon = true;
|
||||
Hue = 0xE0;
|
||||
|
||||
AI = AIType.AI_Melee;
|
||||
|
||||
SetStr(100, 150);
|
||||
SetDex(400, 500);
|
||||
SetInt(80, 90);
|
||||
|
||||
SetHits(1500, 2000);
|
||||
|
||||
SetDamage(20, 30);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 75, 90);
|
||||
SetResistance(ResistanceType.Fire, 60, 77);
|
||||
SetResistance(ResistanceType.Cold, 70, 85);
|
||||
SetResistance(ResistanceType.Poison, 55, 85);
|
||||
SetResistance(ResistanceType.Energy, 50, 60);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 120.0, 140.0);
|
||||
SetSkill(SkillName.Tactics, 120.0, 140.0);
|
||||
SetSkill(SkillName.MagicResist, 95.0, 105.0);
|
||||
|
||||
Fame = 18000;
|
||||
Karma = 0;
|
||||
|
||||
PackReg(4);
|
||||
PackArcaneScroll(0, 1);
|
||||
}
|
||||
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.025 )
|
||||
{
|
||||
switch ( Utility.Random( 18 ) )
|
||||
{
|
||||
case 0: c.DropItem( new AssassinChest() ); break;
|
||||
case 1: c.DropItem( new AssassinArms() ); break;
|
||||
case 2: c.DropItem( new DeathChest() ); break;
|
||||
case 3: c.DropItem( new MyrmidonArms() ); break;
|
||||
case 4: c.DropItem( new MyrmidonLegs() ); break;
|
||||
case 5: c.DropItem( new MyrmidonGorget() ); break;
|
||||
case 6: c.DropItem( new LeafweaveGloves() ); break;
|
||||
case 7: c.DropItem( new LeafweaveLegs() ); break;
|
||||
case 8: c.DropItem( new LeafweavePauldrons() ); break;
|
||||
case 9: c.DropItem( new PaladinGloves() ); break;
|
||||
case 10: c.DropItem( new PaladinGorget() ); break;
|
||||
case 11: c.DropItem( new PaladinArms() ); break;
|
||||
case 12: c.DropItem( new HunterArms() ); break;
|
||||
case 13: c.DropItem( new HunterGloves() ); break;
|
||||
case 14: c.DropItem( new HunterLegs() ); break;
|
||||
case 15: c.DropItem( new HunterChest() ); break;
|
||||
case 16: c.DropItem( new GreymistArms() ); break;
|
||||
case 17: c.DropItem( new GreymistGloves() ); break;
|
||||
}
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
||||
public Swoop(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a Swoop corpse";
|
||||
public override string DefaultName => "Swoop";
|
||||
|
||||
public override bool CanFly => true;
|
||||
public override bool GivesMLMinorArtifact => true;
|
||||
public override int Feathers => 72;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
}
|
||||
|
||||
// TODO: Put this attack shared with Hiryu and Lesser Hiryu in one place
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
if (0.1 <= Utility.RandomDouble())
|
||||
return;
|
||||
|
||||
if (m_Table.TryGetValue(defender, out ExpireTimer timer))
|
||||
{
|
||||
timer.DoExpire();
|
||||
defender.SendLocalizedMessage(1070837); // The creature lands another blow in your weakened state.
|
||||
}
|
||||
else
|
||||
{
|
||||
defender.SendLocalizedMessage(
|
||||
1070836); // The blow from the creature's claws has made you more susceptible to physical attacks.
|
||||
}
|
||||
|
||||
int effect = -(defender.PhysicalResistance * 15 / 100);
|
||||
|
||||
ResistanceMod mod = new ResistanceMod(ResistanceType.Physical, effect);
|
||||
|
||||
defender.FixedEffect(0x37B9, 10, 5);
|
||||
defender.AddResistanceMod(mod);
|
||||
|
||||
timer = new ExpireTimer(defender, mod, TimeSpan.FromSeconds(5.0));
|
||||
timer.Start();
|
||||
m_Table[defender] = timer;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private ResistanceMod m_Mod;
|
||||
|
||||
public ExpireTimer(Mobile m, ResistanceMod mod, TimeSpan delay)
|
||||
: base(delay)
|
||||
{
|
||||
m_Mobile = m;
|
||||
m_Mod = mod;
|
||||
Priority = TimerPriority.TwoFiftyMS;
|
||||
}
|
||||
|
||||
public void DoExpire()
|
||||
{
|
||||
m_Mobile.RemoveResistanceMod(m_Mod);
|
||||
Stop();
|
||||
m_Table.Remove(m_Mobile);
|
||||
}
|
||||
|
||||
protected override void OnTick()
|
||||
{
|
||||
m_Mobile.SendLocalizedMessage(1070838); // Your resistance to physical attacks has returned.
|
||||
DoExpire();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Virulent : DreadSpider
|
||||
{
|
||||
[Constructible]
|
||||
public Virulent()
|
||||
{
|
||||
IsParagon = true;
|
||||
Hue = 0x8FD;
|
||||
|
||||
SetStr(207, 252);
|
||||
SetDex(156, 194);
|
||||
SetInt(346, 398);
|
||||
|
||||
SetHits(616, 740);
|
||||
SetStam(156, 194);
|
||||
SetMana(346, 398);
|
||||
|
||||
SetDamage(15, 22);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 20);
|
||||
SetDamageType(ResistanceType.Poison, 80);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 60, 68);
|
||||
SetResistance(ResistanceType.Fire, 40, 49);
|
||||
SetResistance(ResistanceType.Cold, 41, 50);
|
||||
SetResistance(ResistanceType.Poison, 100);
|
||||
SetResistance(ResistanceType.Energy, 40, 49);
|
||||
|
||||
SetSkill(SkillName.Wrestling, 92.8, 111.7);
|
||||
SetSkill(SkillName.Tactics, 91.6, 107.4);
|
||||
SetSkill(SkillName.MagicResist, 78.1, 93.3);
|
||||
SetSkill(SkillName.Poisoning, 120.0);
|
||||
SetSkill(SkillName.Magery, 104.2, 119.8);
|
||||
SetSkill(SkillName.EvalInt, 102.8, 117.8);
|
||||
|
||||
Fame = 21000;
|
||||
Karma = -21000;
|
||||
}
|
||||
|
||||
public Virulent(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override string CorpseName => "a Virulent corpse";
|
||||
public override string DefaultName => "Virulent";
|
||||
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.025 )
|
||||
{
|
||||
switch ( Utility.Random( 2 ) )
|
||||
{
|
||||
case 0: c.DropItem( new HunterLegs() ); break;
|
||||
case 1: c.DropItem( new MalekisHonor() ); break;
|
||||
}
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
||||
public override bool GivesMLMinorArtifact => true;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.UltraRich, 3);
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.MortalStrike;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue