ModernUO/Scripts/Mobiles/Monsters/ML/Bedlam/SirPatrick.cs
eos 287bacac0e - Spawners now show all (instead of only 2) spawned objects, grouped by type, sorted alphabetically in their mouseover menu. (Displayed amounts fixed too.)
- Talisman slayers fixed to account for inheritance.
- Added repond slayer vulnerability to Troglodyte.
- Added overload for AOS.Damage with chaos damage support.
- Corrected order of ML artifact award messages.
- MageAI corrected to not meditate when already meditating.
- Changed MageAI necro/mage bias to something more sensible.
- Changed speed of most named ML mobs.
- Skeletal steeds are now bleed immune.
- Damage cap of 200 (before resists) added to fire breath attacks.
- Damaging aura effect added to BaseCreature.
- Necromancy skill added to several undead mobs.
- The succubus special drain effect message no longer shows.
- Corrected Sir Patrick's drain effect to account for LOS.
- Added healing skill to Troglodytes.
- Added named ML mobs for the Labyrinth, Painted Caves, Palace of Paroxysmus, Sanctuary and Twisted Weald.
- Added changelings.
- Disabled auto unequiping of weapons when meditating for nonplayers.
- Added cast animations for players in wraith form, lich form and horrific beast.
- Fixed Holy Light to account for LOS.
- Fixed Animate Dead to account for inheritance.
- Fixed Wither friendly fire issue when cast by monsters.
2012-03-04 05:01:41 +00:00

137 lines
2.9 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Server.Items;
namespace Server.Mobiles
{
[CorpseName( "a Sir Patrick corpse" )]
public class SirPatrick : SkeletalKnight
{
[Constructable]
public SirPatrick()
{
Name = "Sir Patrick";
Hue = 0x47E;
SetStr( 208, 319 );
SetDex( 98, 132 );
SetInt( 45, 91 );
SetHits( 616, 884 );
SetDamage( 15, 25 );
SetDamageType( ResistanceType.Physical, 40 );
SetDamageType( ResistanceType.Cold, 60 );
SetResistance( ResistanceType.Physical, 55, 62 );
SetResistance( ResistanceType.Fire, 40, 48 );
SetResistance( ResistanceType.Cold, 71, 80 );
SetResistance( ResistanceType.Poison, 40, 50 );
SetResistance( ResistanceType.Energy, 50, 60 );
SetSkill( SkillName.Wrestling, 126.3, 136.5 );
SetSkill( SkillName.Tactics, 128.5, 143.8 );
SetSkill( SkillName.MagicResist, 102.8, 117.9 );
SetSkill( SkillName.Anatomy, 127.5, 137.2 );
Fame = 18000;
Karma = -18000;
}
public override void GenerateLoot()
{
AddLoot( LootPack.AosUltraRich, 3 );
}
public override void OnGaveMeleeAttack( Mobile defender )
{
base.OnGaveMeleeAttack( defender );
if ( Utility.RandomDouble() < 0.1 )
DrainLife();
}
public override void OnGotMeleeAttack( Mobile attacker )
{
base.OnGotMeleeAttack( attacker );
if ( Utility.RandomDouble() < 0.1 )
DrainLife();
}
public virtual void DrainLife()
{
List<Mobile> list = new List<Mobile>();
foreach ( Mobile m in GetMobilesInRange( 2 ) )
{
if ( m == this || !CanBeHarmful( m, false ) || ( Core.AOS && !InLOS( m ) ) )
continue;
if ( m is BaseCreature )
{
BaseCreature bc = (BaseCreature)m;
if ( bc.Controlled || bc.Summoned || bc.Team != Team )
list.Add( m );
}
else if ( m.Player )
{
list.Add( m );
}
}
foreach ( Mobile m in list )
{
DoHarmful( m );
m.FixedParticles( 0x374A, 10, 15, 5013, 0x455, 0, EffectLayer.Waist );
m.PlaySound( 0x1EA );
int drain = Utility.RandomMinMax( 14, 30 );
Hits += drain;
m.Damage( drain, this );
}
}
/*
// TODO: uncomment once added
public override void OnDeath( Container c )
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.15 )
c.DropItem( new DisintegratingThesisNotes() );
if ( Utility.RandomDouble() < 0.05 )
c.DropItem( new AssassinChest() );
}
*/
public override bool GivesMLMinorArtifact{ get{ return true; } }
public SirPatrick( Serial serial )
: base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}