Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // mobi
- using System;
- using Server.Items;
- using Server;
- using Server.Misc;
- using Server.Gumps;
- using Server.Network;
- using System.Text;
- namespace Server.Mobiles
- {
- public class NothyaKharem : BaseCreature
- {
- public static TimeSpan TalkDelay = TimeSpan.FromSeconds( 120.0 );
- public DateTime m_NextTalk;
- public override void OnMovement( Mobile m, Point3D oldLocation )
- {
- if ( DateTime.Now >= m_NextTalk && InRange( m, 2 ) && !InRange( oldLocation, 2 ) && InLOS( m ) )
- {
- m_NextTalk = DateTime.Now + TalkDelay;
- switch ( Utility.Random( 3 ))
- {
- case 0: Say("*Mutisee itsekseen*"); break;
- case 1: Say("*Haukoittelee*"); m.PlaySound(1096); break;
- case 2: Say("*Raapustaa kääröön*"); m.PlaySound(585); break;
- };
- }
- }
- [Constructable]
- public NothyaKharem () : base( AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
- {
- SpeechHue = Utility.RandomDyedHue();
- Name = "Nothya Kha'rem";
- Body = 0x190;
- Utility.AssignRandomHair( this );
- Hue = 0x83F1;
- InitStats( 120, 40, 120 );
- SetHits( 4000, 4000 );
- SetDamage( 30, 40 );
- SetSkill( SkillName.Anatomy, 100.0, 120.0 );
- SetSkill( SkillName.EvalInt, 100.0, 120.0 );
- SetSkill( SkillName.Magery, 100.0, 120.0 );
- SetSkill( SkillName.Meditation, 100.0, 120.0 );
- SetSkill( SkillName.MagicResist, 100.0, 120.0 );
- SetSkill( SkillName.Tactics, 100.0, 120.0 );
- SetSkill( SkillName.Wrestling, 100.0, 120.0 );
- Cloak cloak = new Cloak();
- cloak.Hue = 1801;
- AddItem( cloak );
- Surcoat surcoat = new Surcoat();
- surcoat.Hue = 1801;
- AddItem( surcoat );
- WizardsHat hat = new WizardsHat();
- hat.Hue = 1801;
- AddItem( hat );
- AddItem( new PlateLegs());
- AddItem( new PlateArms());
- AddItem( new PlateGorget());
- AddItem( new ChainChest());
- AddItem( new StuddedGloves());
- AddItem( new Spellbook());
- AddItem( new GoldEarrings());
- Container pack = new Backpack();
- pack.DropItem( new Gold( 3000, 4000 ) );
- pack.DropItem( new BagOfReagents() );
- pack.Movable = false;
- AddItem( pack );
- }
- public override bool ClickTitle{ get{ return false; } }
- public NothyaKharem( Serial serial ) : base( serial )
- {
- }
- public override void OnDoubleClick( Mobile from )
- {
- from.PlaySound( 1055 );
- from.CloseGump( typeof( NothyaKharemGump ) );
- if( from.GetDistanceToSqrt( this ) < 5 )
- from.SendGump( new NothyaKharemGump( this) );
- }
- 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();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement