#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
138
Scripts/Mobiles/Monsters/ML/Bedlam/LadyJennifyr.cs
Normal file
138
Scripts/Mobiles/Monsters/ML/Bedlam/LadyJennifyr.cs
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Lady Jennifyr corpse" )]
|
||||
public class LadyJennifyr : SkeletalKnight
|
||||
{
|
||||
[Constructable]
|
||||
public LadyJennifyr()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Name = "Lady Jennifyr";
|
||||
Hue = 0x76D;
|
||||
|
||||
SetStr( 208, 309 );
|
||||
SetDex( 91, 118 );
|
||||
SetInt( 44, 101 );
|
||||
|
||||
SetHits( 1113, 1285 );
|
||||
|
||||
SetDamage( 15, 25 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 40 );
|
||||
SetDamageType( ResistanceType.Cold, 60 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 56, 65 );
|
||||
SetResistance( ResistanceType.Fire, 41, 49 );
|
||||
SetResistance( ResistanceType.Cold, 71, 80 );
|
||||
SetResistance( ResistanceType.Poison, 41, 50 );
|
||||
SetResistance( ResistanceType.Energy, 50, 58 );
|
||||
|
||||
SetSkill( SkillName.Wrestling, 127.9, 137.1 );
|
||||
SetSkill( SkillName.Tactics, 128.4, 141.9 );
|
||||
SetSkill( SkillName.MagicResist, 102.1, 119.5 );
|
||||
SetSkill( SkillName.Anatomy, 129.0, 137.5 );
|
||||
|
||||
Fame = 18000;
|
||||
Karma = -18000;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 3 );
|
||||
}
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
{
|
||||
ExpireTimer timer;
|
||||
|
||||
if ( m_Table.TryGetValue( defender, out timer ) )
|
||||
timer.DoExpire();
|
||||
|
||||
defender.FixedParticles( 0x3709, 10, 30, 5052, EffectLayer.LeftFoot );
|
||||
defender.PlaySound( 0x208 );
|
||||
defender.SendLocalizedMessage( 1070833 ); // The creature fans you with fire, reducing your resistance to fire attacks.
|
||||
|
||||
ResistanceMod mod = new ResistanceMod( ResistanceType.Fire, -10 );
|
||||
defender.AddResistanceMod( mod );
|
||||
|
||||
m_Table[defender] = timer = new ExpireTimer( defender, mod );
|
||||
timer.Start();
|
||||
}
|
||||
}
|
||||
|
||||
private static Dictionary<Mobile, ExpireTimer> m_Table = new Dictionary<Mobile, ExpireTimer>();
|
||||
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private ResistanceMod m_Mod;
|
||||
|
||||
public ExpireTimer( Mobile m, ResistanceMod mod )
|
||||
: base( TimeSpan.FromSeconds( 10 ) )
|
||||
{
|
||||
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( 1070834 ); // Your resistance to fire attacks has returned.
|
||||
DoExpire();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
// 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.1 )
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
||||
public override bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
|
||||
public LadyJennifyr( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
90
Scripts/Mobiles/Monsters/ML/Bedlam/LadyMarai.cs
Normal file
90
Scripts/Mobiles/Monsters/ML/Bedlam/LadyMarai.cs
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Lady Marai corpse" )]
|
||||
public class LadyMarai : SkeletalKnight
|
||||
{
|
||||
[Constructable]
|
||||
public LadyMarai()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Name = "Lady Marai";
|
||||
Hue = 0x21;
|
||||
|
||||
SetStr( 221, 304 );
|
||||
SetDex( 98, 138 );
|
||||
SetInt( 54, 99 );
|
||||
|
||||
SetHits( 694, 846 );
|
||||
|
||||
SetDamage( 15, 25 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 40 );
|
||||
SetDamageType( ResistanceType.Cold, 60 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 55, 65 );
|
||||
SetResistance( ResistanceType.Fire, 40, 50 );
|
||||
SetResistance( ResistanceType.Cold, 70, 80 );
|
||||
SetResistance( ResistanceType.Poison, 40, 50 );
|
||||
SetResistance( ResistanceType.Energy, 50, 60 );
|
||||
|
||||
SetSkill( SkillName.Wrestling, 126.6, 137.2 );
|
||||
SetSkill( SkillName.Tactics, 128.7, 134.5 );
|
||||
SetSkill( SkillName.MagicResist, 102.1, 119.1 );
|
||||
SetSkill( SkillName.Anatomy, 126.2, 136.5 );
|
||||
|
||||
Fame = 18000;
|
||||
Karma = -18000;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 3 );
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.CrushingBlow;
|
||||
}
|
||||
|
||||
/*
|
||||
// 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.1 )
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
||||
public override bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
|
||||
public LadyMarai( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
98
Scripts/Mobiles/Monsters/ML/Bedlam/MasterJonath.cs
Normal file
98
Scripts/Mobiles/Monsters/ML/Bedlam/MasterJonath.cs
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Master Jonath corpse" )]
|
||||
public class MasterJonath : BoneMagi
|
||||
{
|
||||
[Constructable]
|
||||
public MasterJonath()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Name = "Master Jonath";
|
||||
Hue = 0x455;
|
||||
|
||||
SetStr( 109, 131 );
|
||||
SetDex( 98, 110 );
|
||||
SetInt( 232, 259 );
|
||||
|
||||
SetHits( 766, 920 );
|
||||
|
||||
SetDamage( 10, 15 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 55, 60 );
|
||||
SetResistance( ResistanceType.Fire, 43, 49 );
|
||||
SetResistance( ResistanceType.Cold, 45, 80 );
|
||||
SetResistance( ResistanceType.Poison, 41, 45 );
|
||||
SetResistance( ResistanceType.Energy, 54, 55 );
|
||||
|
||||
SetSkill( SkillName.Wrestling, 80.5, 88.6 );
|
||||
SetSkill( SkillName.Tactics, 88.5, 95.1 );
|
||||
SetSkill( SkillName.MagicResist, 102.7, 102.9 );
|
||||
SetSkill( SkillName.Magery, 100.0, 106.6 );
|
||||
SetSkill( SkillName.EvalInt, 99.6, 106.9 );
|
||||
SetSkill( SkillName.Necromancy, 100.0, 106.6 );
|
||||
SetSkill( SkillName.SpiritSpeak, 99.6, 106.9 );
|
||||
|
||||
Fame = 18000;
|
||||
Karma = -18000;
|
||||
|
||||
if ( Utility.RandomBool() )
|
||||
PackNecroScroll( Utility.RandomMinMax( 5, 9 ) );
|
||||
else
|
||||
PackScroll( 4, 7 );
|
||||
|
||||
PackReg( 7 );
|
||||
PackReg( 7 );
|
||||
PackReg( 8 );
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 3 );
|
||||
}
|
||||
|
||||
// TODO: Special move?
|
||||
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.05 )
|
||||
c.DropItem( new ParrotItem() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.15 )
|
||||
c.DropItem( new DisintegratingThesisNotes() );
|
||||
}
|
||||
*/
|
||||
|
||||
public override bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
public override int TreasureMapLevel{ get{ return 5; } }
|
||||
|
||||
public MasterJonath( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
96
Scripts/Mobiles/Monsters/ML/Bedlam/MasterMikael.cs
Normal file
96
Scripts/Mobiles/Monsters/ML/Bedlam/MasterMikael.cs
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Master Mikael corpse" )]
|
||||
public class MasterMikael : BoneMagi
|
||||
{
|
||||
[Constructable]
|
||||
public MasterMikael()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Name = "Master Mikael";
|
||||
Hue = 0x8FD;
|
||||
|
||||
SetStr( 93, 122 );
|
||||
SetDex( 91, 100 );
|
||||
SetInt( 252, 271 );
|
||||
|
||||
SetHits( 789, 1014 );
|
||||
|
||||
SetDamage( 11, 19 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 55, 59 );
|
||||
SetResistance( ResistanceType.Fire, 40, 46 );
|
||||
SetResistance( ResistanceType.Cold, 72, 80 );
|
||||
SetResistance( ResistanceType.Poison, 44, 49 );
|
||||
SetResistance( ResistanceType.Energy, 50, 57 );
|
||||
|
||||
SetSkill( SkillName.Wrestling, 80.1, 87.2 );
|
||||
SetSkill( SkillName.Tactics, 79.0, 90.9 );
|
||||
SetSkill( SkillName.MagicResist, 90.3, 106.9 );
|
||||
SetSkill( SkillName.Magery, 103.8, 108.0 );
|
||||
SetSkill( SkillName.EvalInt, 96.1, 105.3 );
|
||||
SetSkill( SkillName.Necromancy, 103.8, 108.0 );
|
||||
SetSkill( SkillName.SpiritSpeak, 96.1, 105.3 );
|
||||
|
||||
Fame = 18000;
|
||||
Karma = -18000;
|
||||
|
||||
if ( Utility.RandomBool() )
|
||||
PackNecroScroll( Utility.RandomMinMax( 5, 9 ) );
|
||||
else
|
||||
PackScroll( 4, 7 );
|
||||
|
||||
PackReg( 3 );
|
||||
PackNecroReg( 1, 10 );
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 2 );
|
||||
}
|
||||
|
||||
// TODO: Special move?
|
||||
|
||||
/*
|
||||
// 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.1 )
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
||||
public override bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
|
||||
public MasterMikael( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
95
Scripts/Mobiles/Monsters/ML/Bedlam/MasterTheophilus.cs
Normal file
95
Scripts/Mobiles/Monsters/ML/Bedlam/MasterTheophilus.cs
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Master Theophilus corpse" )]
|
||||
public class MasterTheophilus : EvilMageLord
|
||||
{
|
||||
[Constructable]
|
||||
public MasterTheophilus()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Name = "Master Theophilus";
|
||||
Title = "the necromancer";
|
||||
Hue = 0;
|
||||
|
||||
SetStr( 137, 187 );
|
||||
SetDex( 253, 301 );
|
||||
SetInt( 393, 444 );
|
||||
|
||||
SetHits( 663, 876 );
|
||||
|
||||
SetDamage( 15, 20 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 55, 60 );
|
||||
SetResistance( ResistanceType.Fire, 50, 58 );
|
||||
SetResistance( ResistanceType.Cold, 50, 60 );
|
||||
SetResistance( ResistanceType.Poison, 50, 60 );
|
||||
SetResistance( ResistanceType.Energy, 50, 60 );
|
||||
|
||||
SetSkill( SkillName.Wrestling, 69.9, 105.3 );
|
||||
SetSkill( SkillName.Tactics, 113.0, 117.9 );
|
||||
SetSkill( SkillName.MagicResist, 127.0, 132.8 );
|
||||
SetSkill( SkillName.Magery, 138.1, 143.7 );
|
||||
SetSkill( SkillName.EvalInt, 125.6, 133.8 );
|
||||
SetSkill( SkillName.Necromancy, 125.6, 133.8 );
|
||||
SetSkill( SkillName.SpiritSpeak, 125.6, 133.8 );
|
||||
SetSkill( SkillName.Meditation, 128.8, 132.9 );
|
||||
|
||||
Fame = 18000;
|
||||
Karma = -18000;
|
||||
|
||||
AddItem( new Shoes( 0x537 ) );
|
||||
AddItem( new Robe( 0x452 ) );
|
||||
|
||||
for ( int i = 0; i < 2; ++i )
|
||||
{
|
||||
if ( Utility.RandomBool() )
|
||||
PackNecroScroll( Utility.RandomMinMax( 5, 9 ) );
|
||||
else
|
||||
PackScroll( 4, 7 );
|
||||
}
|
||||
|
||||
PackReg( 7 );
|
||||
PackReg( 7 );
|
||||
PackReg( 8 );
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 3 );
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.ParalyzingBlow;
|
||||
}
|
||||
|
||||
public override bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
public override int TreasureMapLevel{ get{ return 5; } }
|
||||
|
||||
public MasterTheophilus( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
96
Scripts/Mobiles/Monsters/ML/Bedlam/RedDeath.cs
Normal file
96
Scripts/Mobiles/Monsters/ML/Bedlam/RedDeath.cs
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Red Death corpse" )]
|
||||
public class RedDeath : SkeletalMount
|
||||
{
|
||||
[Constructable]
|
||||
public RedDeath()
|
||||
: base( "Red Death" )
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Hue = 0x21;
|
||||
BaseSoundID = 0x1C3;
|
||||
|
||||
AI = AIType.AI_Melee;
|
||||
FightMode = FightMode.Closest;
|
||||
|
||||
SetStr( 319, 324 );
|
||||
SetDex( 241, 244 );
|
||||
SetInt( 242, 255 );
|
||||
|
||||
SetHits( 1540, 1605 );
|
||||
|
||||
SetDamage( 25, 29 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 25 );
|
||||
SetDamageType( ResistanceType.Fire, 75 );
|
||||
SetDamageType( ResistanceType.Cold, 0 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 60, 70 );
|
||||
SetResistance( ResistanceType.Fire, 90 );
|
||||
SetResistance( ResistanceType.Cold, 0 );
|
||||
SetResistance( ResistanceType.Poison, 100 );
|
||||
SetResistance( ResistanceType.Energy, 0 );
|
||||
|
||||
SetSkill( SkillName.Wrestling, 121.4, 143.7 );
|
||||
SetSkill( SkillName.Tactics, 120.9, 142.2 );
|
||||
SetSkill( SkillName.MagicResist, 120.1, 142.3 );
|
||||
SetSkill( SkillName.Anatomy, 120.2, 144.0 );
|
||||
|
||||
Fame = 28000;
|
||||
Karma = -28000;
|
||||
|
||||
if ( Utility.RandomBool() )
|
||||
PackNecroScroll( Utility.RandomMinMax( 5, 9 ) );
|
||||
else
|
||||
PackScroll( 4, 7 );
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 3 );
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.WhirlwindAttack;
|
||||
}
|
||||
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
c.DropItem( new ResolvesBridle() );
|
||||
}
|
||||
|
||||
public override bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
public override bool HasBreath{ get{ return true; } }
|
||||
public override int BreathChaosDamage{ get { return 100; } }
|
||||
public override int BreathFireDamage{ get{ return 0; } }
|
||||
|
||||
public RedDeath( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
139
Scripts/Mobiles/Monsters/ML/Bedlam/SirPatrick.cs
Normal file
139
Scripts/Mobiles/Monsters/ML/Bedlam/SirPatrick.cs
Normal file
|
|
@ -0,0 +1,139 @@
|
|||
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()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
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.UltraRich, 2 );
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue