#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
121
Scripts/Mobiles/Monsters/SE/Ronin.cs
Normal file
121
Scripts/Mobiles/Monsters/SE/Ronin.cs
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a ronin corpse" )]
|
||||
public class Ronin : BaseCreature
|
||||
{
|
||||
public override bool ClickTitle{ get{ return false; } }
|
||||
|
||||
[Constructable]
|
||||
public Ronin() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
SpeechHue = Utility.RandomDyedHue();
|
||||
Hue = Utility.RandomSkinHue();
|
||||
Name = "a ronin";
|
||||
Body = (( this.Female = Utility.RandomBool() ) ? Body = 0x191 : Body = 0x190);
|
||||
|
||||
Hue = Utility.RandomSkinHue();
|
||||
|
||||
SetStr( 326, 375 );
|
||||
SetDex( 31, 45 );
|
||||
SetInt( 101, 110 );
|
||||
|
||||
SetHits( 301, 400 );
|
||||
SetMana( 101, 110 );
|
||||
|
||||
SetDamage( 17, 25 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 90 );
|
||||
SetDamageType( ResistanceType.Poison, 10 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 55, 75 );
|
||||
SetResistance( ResistanceType.Fire, 40, 60 );
|
||||
SetResistance( ResistanceType.Cold, 35, 55 );
|
||||
SetResistance( ResistanceType.Poison, 50, 70 );
|
||||
SetResistance( ResistanceType.Energy, 55, 75 );
|
||||
|
||||
SetSkill( SkillName.MagicResist, 42.6, 57.5 );
|
||||
SetSkill( SkillName.Tactics, 115.1, 130.0 );
|
||||
SetSkill( SkillName.Wrestling, 92.6, 107.5 );
|
||||
SetSkill( SkillName.Anatomy, 110.1, 125.0 );
|
||||
|
||||
SetSkill( SkillName.Fencing, 92.6, 107.5 );
|
||||
SetSkill( SkillName.Macing, 92.6, 107.5 );
|
||||
SetSkill( SkillName.Swords, 92.6, 107.5 );
|
||||
|
||||
Fame = 8500;
|
||||
Karma = -8500;
|
||||
|
||||
AddItem( new SamuraiTabi() );
|
||||
AddItem( new LeatherHiroSode());
|
||||
AddItem( new LeatherDo());
|
||||
|
||||
switch ( Utility.Random( 4 ))
|
||||
{
|
||||
case 0: AddItem( new LightPlateJingasa()); break;
|
||||
case 1: AddItem( new ChainHatsuburi() ); break;
|
||||
case 2: AddItem( new DecorativePlateKabuto() ); break;
|
||||
case 3: AddItem( new LeatherJingasa()); break;
|
||||
}
|
||||
|
||||
switch ( Utility.Random( 3 ))
|
||||
{
|
||||
case 0: AddItem( new StuddedHaidate()); break;
|
||||
case 1: AddItem( new LeatherSuneate() ); break;
|
||||
case 2: AddItem( new PlateSuneate() ); break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if( Utility.RandomDouble() > .2 )
|
||||
AddItem( new NoDachi() );
|
||||
else
|
||||
AddItem( new Halberd() );
|
||||
|
||||
PackItem( new Wakizashi() );
|
||||
PackItem( new Longsword() );
|
||||
|
||||
Utility.AssignRandomHair( this );
|
||||
}
|
||||
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
c.DropItem( new BookOfBushido() );
|
||||
}
|
||||
|
||||
// TODO: Bushido abilities
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.FilthyRich );
|
||||
AddLoot( LootPack.Rich );
|
||||
AddLoot( LootPack.Gems, 2 );
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
public override bool BardImmune{ get{ return true; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
|
||||
public Ronin( 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