Heritage items, talismans
This commit is contained in:
parent
e7db1fd9f7
commit
129cac945b
109 changed files with 11659 additions and 188 deletions
|
|
@ -56,6 +56,24 @@ namespace Server.Mobiles
|
|||
m_NextAbilityTime = DateTime.Now + TimeSpan.FromSeconds( Utility.RandomMinMax( 5, 30 ) );
|
||||
}
|
||||
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( 0.05 > Utility.RandomDouble() )
|
||||
{
|
||||
if ( !IsParagon )
|
||||
{
|
||||
if ( 0.75 > Utility.RandomDouble() )
|
||||
c.DropItem( DawnsMusicGear.RandomCommon );
|
||||
else
|
||||
c.DropItem( DawnsMusicGear.RandomUncommon );
|
||||
}
|
||||
else
|
||||
c.DropItem( DawnsMusicGear.RandomRare );
|
||||
}
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x423;
|
||||
|
|
@ -148,7 +166,8 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
public Betrayer( Serial serial ) : base( serial )
|
||||
public Betrayer( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,25 @@ namespace Server.Mobiles
|
|||
if ( 0.4 > Utility.RandomDouble() )
|
||||
PackItem( new ClockworkAssembly() );
|
||||
}
|
||||
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( 0.05 > Utility.RandomDouble() )
|
||||
{
|
||||
if ( !IsParagon )
|
||||
{
|
||||
if ( 0.75 > Utility.RandomDouble() )
|
||||
c.DropItem( DawnsMusicGear.RandomCommon );
|
||||
else
|
||||
c.DropItem( DawnsMusicGear.RandomUncommon );
|
||||
}
|
||||
else
|
||||
c.DropItem( DawnsMusicGear.RandomRare );
|
||||
}
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
|
|
|
|||
104
Scripts/Mobiles/Monsters/ML/Animal/Ferret.cs
Normal file
104
Scripts/Mobiles/Monsters/ML/Animal/Ferret.cs
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Engines.Quests;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a ferret corpse" )]
|
||||
public class Ferret : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public Ferret() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a ferret";
|
||||
Body = 0x117;
|
||||
|
||||
SetStr( 41, 48 );
|
||||
SetDex( 55 );
|
||||
SetInt( 75 );
|
||||
|
||||
SetHits( 45, 50 );
|
||||
|
||||
SetDamage( 7, 9 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 45, 50 );
|
||||
SetResistance( ResistanceType.Fire, 10, 14 );
|
||||
SetResistance( ResistanceType.Cold, 30, 40 );
|
||||
SetResistance( ResistanceType.Poison, 21, 25 );
|
||||
SetResistance( ResistanceType.Energy, 20, 25 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 4.0 );
|
||||
SetSkill( SkillName.Tactics, 4.0 );
|
||||
SetSkill( SkillName.Wrestling, 4.0 );
|
||||
|
||||
Tamable = true;
|
||||
ControlSlots = 1;
|
||||
MinTameSkill = -21.3;
|
||||
|
||||
m_CanTalk = true;
|
||||
}
|
||||
|
||||
public override int Meat{ get{ return 1; } }
|
||||
public override FoodType FavoriteFood{ get{ return FoodType.Fish; } }
|
||||
|
||||
public Ferret( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnMovement( Mobile m, Point3D oldLocation )
|
||||
{
|
||||
if ( m is Ferret && m.InRange( this, 3 ) && m.Alive )
|
||||
Talk( (Ferret) m );
|
||||
}
|
||||
|
||||
private static string[] m_Vocabulary = new string[]
|
||||
{
|
||||
"dook",
|
||||
"dook dook",
|
||||
"dook dook dook!"
|
||||
};
|
||||
|
||||
private bool m_CanTalk;
|
||||
|
||||
public void Talk()
|
||||
{
|
||||
Talk( null );
|
||||
}
|
||||
|
||||
public void Talk( Ferret to )
|
||||
{
|
||||
if ( m_CanTalk )
|
||||
{
|
||||
if ( to != null )
|
||||
QuestSystem.FocusTo( this, to );
|
||||
|
||||
Say( m_Vocabulary[ Utility.Random( m_Vocabulary.Length ) ] );
|
||||
|
||||
if ( to != null && Utility.RandomBool() )
|
||||
Timer.DelayCall( TimeSpan.FromSeconds( Utility.RandomMinMax( 5, 8 ) ), new TimerCallback( delegate() { to.Talk(); } ) );
|
||||
|
||||
m_CanTalk = false;
|
||||
|
||||
Timer.DelayCall( TimeSpan.FromSeconds( Utility.RandomMinMax( 20, 30 ) ), new TimerCallback( delegate() { m_CanTalk = true; } ) );
|
||||
}
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
m_CanTalk = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
62
Scripts/Mobiles/Monsters/ML/Animal/Squirrel.cs
Normal file
62
Scripts/Mobiles/Monsters/ML/Animal/Squirrel.cs
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a squirrel corpse" )]
|
||||
public class Squirrel : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public Squirrel() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a squirrel";
|
||||
Body = 0x116;
|
||||
|
||||
SetStr( 44, 50 );
|
||||
SetDex( 35 );
|
||||
SetInt( 5 );
|
||||
|
||||
SetHits( 42, 50 );
|
||||
|
||||
SetDamage( 1, 2 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 30, 34 );
|
||||
SetResistance( ResistanceType.Fire, 10, 14 );
|
||||
SetResistance( ResistanceType.Cold, 30, 35 );
|
||||
SetResistance( ResistanceType.Poison, 20, 25 );
|
||||
SetResistance( ResistanceType.Energy, 20, 25 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 4.0 );
|
||||
SetSkill( SkillName.Tactics, 4.0 );
|
||||
SetSkill( SkillName.Wrestling, 4.0 );
|
||||
|
||||
Tamable = true;
|
||||
ControlSlots = 1;
|
||||
MinTameSkill = -21.3;
|
||||
}
|
||||
|
||||
public override int Meat{ get{ return 1; } }
|
||||
public override FoodType FavoriteFood{ get{ return FoodType.FruitsAndVegies; } }
|
||||
|
||||
public Squirrel( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
79
Scripts/Mobiles/Monsters/ML/Misc/Melee/Reptalon.cs
Normal file
79
Scripts/Mobiles/Monsters/ML/Misc/Melee/Reptalon.cs
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a reptalon corpse" )]
|
||||
public class Reptalon : BaseMount
|
||||
{
|
||||
[Constructable]
|
||||
public Reptalon() : base( "a reptalon", 0x114, 0x3E90, AIType.AI_Melee, FightMode.Closest, 10, 1, 0.1, 0.2 )
|
||||
{
|
||||
BaseSoundID = 0x16A; // TODO check
|
||||
|
||||
SetStr( 1001, 1025 );
|
||||
SetDex( 152, 164 );
|
||||
SetInt( 251, 289 );
|
||||
|
||||
SetHits( 833, 931 );
|
||||
|
||||
SetDamage( 21, 28 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 0 );
|
||||
SetDamageType( ResistanceType.Poison, 25 );
|
||||
SetDamageType( ResistanceType.Energy, 75 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 53, 64 );
|
||||
SetResistance( ResistanceType.Fire, 35, 45 );
|
||||
SetResistance( ResistanceType.Cold, 36, 45 );
|
||||
SetResistance( ResistanceType.Poison, 52, 63 );
|
||||
SetResistance( ResistanceType.Energy, 71, 83 );
|
||||
|
||||
SetSkill( SkillName.Wrestling, 101.5, 118.2 );
|
||||
SetSkill( SkillName.Tactics, 101.7, 108.2 );
|
||||
SetSkill( SkillName.MagicResist, 76.4, 89.9 );
|
||||
SetSkill( SkillName.Anatomy, 56.4, 59.7 );
|
||||
|
||||
Tamable = true;
|
||||
ControlSlots = 4;
|
||||
MinTameSkill = 101.1;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.AosUltraRich, 3 );
|
||||
}
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.ParalyzingBlow;
|
||||
}
|
||||
|
||||
public override int TreasureMapLevel{ get{ return 5; } }
|
||||
public override int Meat{ get{ return 5; } }
|
||||
public override int Hides{ get{ return 10; } }
|
||||
public override bool CanBreath{ get{ return true; } }
|
||||
public override bool CanAngerOnTame{ get { return true; } }
|
||||
public override bool StatLossAfterTame{ get{ return true; } }
|
||||
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
|
||||
|
||||
public Reptalon( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -86,6 +86,24 @@ namespace Server.Mobiles
|
|||
ControlSlots = 3;
|
||||
}
|
||||
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( 0.05 > Utility.RandomDouble() )
|
||||
{
|
||||
if ( !IsParagon )
|
||||
{
|
||||
if ( 0.75 > Utility.RandomDouble() )
|
||||
c.DropItem( DawnsMusicGear.RandomCommon );
|
||||
else
|
||||
c.DropItem( DawnsMusicGear.RandomUncommon );
|
||||
}
|
||||
else
|
||||
c.DropItem( DawnsMusicGear.RandomRare );
|
||||
}
|
||||
}
|
||||
|
||||
public override bool DeleteOnRelease{ get{ return true; } }
|
||||
|
||||
public override int GetAngerSound()
|
||||
|
|
|
|||
|
|
@ -2567,6 +2567,19 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
if ( from != null && Talisman is BaseTalisman )
|
||||
{
|
||||
BaseTalisman talisman = (BaseTalisman) Talisman;
|
||||
|
||||
if ( talisman.Protection != null && talisman.Protection.Type != null )
|
||||
{
|
||||
Type type = talisman.Protection.Type;
|
||||
|
||||
if ( type == from.GetType() )
|
||||
amount *= 1 - (int) ( ( (double) talisman.Protection.Amount ) / 100 );
|
||||
}
|
||||
}
|
||||
|
||||
base.Damage( amount, from );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue