#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
307
Scripts/Mobiles/Monsters/ML/Twisted Weald/Changeling.cs
Normal file
307
Scripts/Mobiles/Monsters/ML/Twisted Weald/Changeling.cs
Normal file
|
|
@ -0,0 +1,307 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server;
|
||||
using Server.Misc;
|
||||
using Server.Spells;
|
||||
using Server.Spells.Third;
|
||||
using Server.Spells.Sixth;
|
||||
using Server.Items;
|
||||
using Server.Targeting;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a changeling corpse" )]
|
||||
public class Changeling : BaseCreature
|
||||
{
|
||||
public virtual string DefaultName{ get{ return "a changeling"; } }
|
||||
public virtual int DefaultHue{ get{ return 0; } }
|
||||
|
||||
[Constructable]
|
||||
public Changeling()
|
||||
: base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = DefaultName;
|
||||
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 override bool ShowFameTitle{ get{ return false; } }
|
||||
public override bool InitialInnocent{ get{ return ( m_MorphedInto != null ); } }
|
||||
|
||||
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; }
|
||||
|
||||
private Mobile m_MorphedInto;
|
||||
private DateTime m_LastMorph;
|
||||
private DateTime m_NextFireRing;
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public Mobile MorphedInto
|
||||
{
|
||||
get { return 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 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 );
|
||||
}
|
||||
}
|
||||
|
||||
private static readonly int[] m_FireNorth = new int[]
|
||||
{
|
||||
-1, -1,
|
||||
1, -1,
|
||||
-1, 2,
|
||||
1, 2
|
||||
};
|
||||
|
||||
private static readonly int[] m_FireEast = new int[]
|
||||
{
|
||||
-1, 0,
|
||||
2, 0
|
||||
};
|
||||
|
||||
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 = DefaultName;
|
||||
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 Changeling( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 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( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
83
Scripts/Mobiles/Monsters/ML/Twisted Weald/Gnaw.cs
Normal file
83
Scripts/Mobiles/Monsters/ML/Twisted Weald/Gnaw.cs
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Gnaw corpse" )]
|
||||
public class Gnaw : DireWolf
|
||||
{
|
||||
[Constructable]
|
||||
public Gnaw()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Name = "Gnaw";
|
||||
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;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.FilthyRich, 2 );
|
||||
}
|
||||
|
||||
public override bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
public override int Hides{ get{ return 28; } }
|
||||
public override int Meat{ get{ return 4; } }
|
||||
|
||||
/*
|
||||
// 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 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/Twisted Weald/Guile.cs
Normal file
90
Scripts/Mobiles/Monsters/ML/Twisted Weald/Guile.cs
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Guile corpse" )]
|
||||
public class Guile : Changeling
|
||||
{
|
||||
public override string DefaultName{ get{ return "Guile"; } }
|
||||
public override int DefaultHue{ get{ return 0x3F; } }
|
||||
|
||||
[Constructable]
|
||||
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 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 bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 2 );
|
||||
}
|
||||
|
||||
public Guile( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
89
Scripts/Mobiles/Monsters/ML/Twisted Weald/Irk.cs
Normal file
89
Scripts/Mobiles/Monsters/ML/Twisted Weald/Irk.cs
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "an Irk corpse" )]
|
||||
public class Irk : Changeling
|
||||
{
|
||||
public override string DefaultName{ get{ return "Irk"; } }
|
||||
public override int DefaultHue{ get{ return 0x489; } }
|
||||
|
||||
[Constructable]
|
||||
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: Angry fire
|
||||
|
||||
public override bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 2 );
|
||||
}
|
||||
|
||||
/*
|
||||
// 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 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/Twisted Weald/LadyLissith.cs
Normal file
95
Scripts/Mobiles/Monsters/ML/Twisted Weald/LadyLissith.cs
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
using System;
|
||||
using Server.Items;
|
||||
using Server.Targeting;
|
||||
using System.Collections;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Lady Lissith corpse" )]
|
||||
public class LadyLissith : GiantBlackWidow
|
||||
{
|
||||
[Constructable]
|
||||
public LadyLissith()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Name = "Lady Lissith";
|
||||
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 override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 2 );
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.BleedAttack;
|
||||
}
|
||||
|
||||
/*
|
||||
// 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{ get{ return true; } }
|
||||
|
||||
public LadyLissith( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
100
Scripts/Mobiles/Monsters/ML/Twisted Weald/LadySabrix.cs
Normal file
100
Scripts/Mobiles/Monsters/ML/Twisted Weald/LadySabrix.cs
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Lady Sabrix corpse" )]
|
||||
public class LadySabrix : GiantBlackWidow
|
||||
{
|
||||
[Constructable]
|
||||
public LadySabrix()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Name = "Lady Sabrix";
|
||||
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 override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 2 );
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.ArmorIgnore;
|
||||
}
|
||||
|
||||
/*
|
||||
// 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{ get{ return true; } }
|
||||
|
||||
public LadySabrix( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
85
Scripts/Mobiles/Monsters/ML/Twisted Weald/Malefic.cs
Normal file
85
Scripts/Mobiles/Monsters/ML/Twisted Weald/Malefic.cs
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Malefic corpse" )]
|
||||
public class Malefic : DreadSpider
|
||||
{
|
||||
[Constructable]
|
||||
public Malefic()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Name = "Malefic";
|
||||
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 override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 3 );
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.Dismount;
|
||||
}
|
||||
|
||||
public override bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
|
||||
public Malefic( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
77
Scripts/Mobiles/Monsters/ML/Twisted Weald/Silk.cs
Normal file
77
Scripts/Mobiles/Monsters/ML/Twisted Weald/Silk.cs
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Silk corpse" )]
|
||||
public class Silk : GiantBlackWidow
|
||||
{
|
||||
[Constructable]
|
||||
public Silk()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Name = "Silk";
|
||||
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 override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 2 );
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.ParalyzingBlow;
|
||||
}
|
||||
|
||||
public override bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
|
||||
public Silk( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
75
Scripts/Mobiles/Monsters/ML/Twisted Weald/Spite.cs
Normal file
75
Scripts/Mobiles/Monsters/ML/Twisted Weald/Spite.cs
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Spite corpse" )]
|
||||
public class Spite : Changeling
|
||||
{
|
||||
public override string DefaultName{ get{ return "Spite"; } }
|
||||
public override int DefaultHue{ get{ return 0x21; } }
|
||||
|
||||
[Constructable]
|
||||
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 override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 2 );
|
||||
}
|
||||
|
||||
public override bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
|
||||
public Spite( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
171
Scripts/Mobiles/Monsters/ML/Twisted Weald/Swoop.cs
Normal file
171
Scripts/Mobiles/Monsters/ML/Twisted Weald/Swoop.cs
Normal file
|
|
@ -0,0 +1,171 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Swoop corpse" )]
|
||||
public class Swoop : Eagle
|
||||
{
|
||||
[Constructable]
|
||||
public Swoop()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Name = "Swoop";
|
||||
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 );
|
||||
}
|
||||
|
||||
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() )
|
||||
{
|
||||
ExpireTimer timer = (ExpireTimer)m_Table[defender];
|
||||
|
||||
if( timer != null )
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanFly { get { return true; } }
|
||||
public override bool GivesMLMinorArtifact{ get{ return true; } }
|
||||
public override int Feathers{ get{ return 72; } }
|
||||
|
||||
/*
|
||||
// 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 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
99
Scripts/Mobiles/Monsters/ML/Twisted Weald/Virulent.cs
Normal file
99
Scripts/Mobiles/Monsters/ML/Twisted Weald/Virulent.cs
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a Virulent corpse" )]
|
||||
public class Virulent : DreadSpider
|
||||
{
|
||||
[Constructable]
|
||||
public Virulent()
|
||||
{
|
||||
IsParagon = true;
|
||||
|
||||
Name = "Virulent";
|
||||
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 override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.UltraRich, 3 );
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.MortalStrike;
|
||||
}
|
||||
|
||||
/*
|
||||
// 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{ get{ return true; } }
|
||||
|
||||
public Virulent( 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