public override void OnResponse(NetState sender, RelayInfo info)
            {
                if (m_Deed.Deleted)
                {
                    return;
                }

                Item newHair = null;

                switch (info.ButtonID)
                {
                case 0: return;

                case 2: newHair = new ShortHair(); break;

                case 3: newHair = new LongHair(); break;

                case 4: newHair = new PonyTail(); break;

                case 5: newHair = new Mohawk(); break;

                case 6: newHair = new PageboyHair(); break;

                case 7: newHair = new ReceedingHair(); break;

                case 8: newHair = new TwoPigTails(); break;

                case 9: newHair = new KrisnaHair(); break;
                }

                if (m_From is PlayerMobile)
                {
                    PlayerMobile pm = (PlayerMobile)m_From;

                    pm.SetHairMods(-1, -1);                     // clear any hairmods (disguise kit, incognito)
                }

                Item oldHair = m_From.FindItemOnLayer(Layer.Hair);

                if (oldHair != null)
                {
                    oldHair.Delete();
                }

                if (newHair != null)
                {
                    if (oldHair != null)
                    {
                        newHair.Hue = oldHair.Hue;
                    }

                    m_From.AddItem(newHair);
                }

                m_Deed.Delete();
            }
Esempio n. 2
0
        public Santa()
            : base(AIType.AI_Mage, FightMode.Agressor, 10, 1, 0.45, 0.8)
        {
            Female = false;
            Body = 400;
            Title = "";
            Name = "Santa";
            Hue = 0x83ea;

            SetStr( 150, 250 );
            SetDex( 91, 115 );
            SetInt( 500, 1000 );
            Karma = +125;

            SetSkill( SkillName.Tactics, 65, 87.5 );
            SetSkill( SkillName.MagicResist, 75, 97.5 );
            SetSkill( SkillName.Parry, 65, 87.5 );
            SetSkill( SkillName.Magery, 95.1, 105.0 );
            SetSkill( SkillName.Wrestling, 20.2, 60 );

            VirtualArmor = 30;
            SetDamage( 3, 12 );

            Item item = null;

            item = new ShortHair();
            item.Hue = 0x47E;
            AddItem( item );

            item = new MediumShortBeard();
            item.Hue = 0x47E;
            AddItem( item );

            item = new LeatherGloves();
            item.Hue = 0x455;
            AddItem( item );

            AddItem( new FancyShirt( 0x26 ) );
            AddItem( new LongPants( 0x26 ) );
            AddItem( new Boots() );

            LootPack.Average.Generate( this );
        }
        public static void AddHair( Mobile m, int itemID, int hue )
        {
            Item item;

            switch ( itemID & 0x3FFF )
            {
                case 0x2044: item = new Mohawk( hue ); break;
                case 0x2045: item = new PageboyHair( hue ); break;
                case 0x2046: item = new BunsHair( hue ); break;
                case 0x2047: item = new Afro( hue ); break;
                case 0x2048: item = new ReceedingHair( hue ); break;
                case 0x2049: item = new TwoPigTails( hue ); break;
                case 0x204A: item = new KrisnaHair( hue ); break;
                case 0x203B: item = new ShortHair( hue ); break;
                case 0x203C: item = new LongHair( hue ); break;
                case 0x203D: item = new PonyTail( hue ); break;
                default: return;
            }

            m.AddItem( item );
        }
Esempio n. 4
0
        public Death()
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "Death";
            Title = "    The 4th Horseman";
            Body = 400;
            SpeechHue = 2128;
            Hue = 161;
            VirtualArmor = 45;
            Kills = 10;

            SetStr( 125 );
            SetDex( 251 );
            SetInt( 130 );

            SetHits(12000);
            SetDamage(25,45);
            SetDamageType(ResistanceType.Poison, 100);

            SetResistance(ResistanceType.Physical, 45,55);
            SetResistance(ResistanceType.Fire, 45, 55);
            SetResistance(ResistanceType.Cold, 45, 55);
            SetResistance(ResistanceType.Energy, 45, 55);
            SetResistance(ResistanceType.Poison, 100);

            SetSkill(SkillName.Wrestling, 85.0, 92.5);
            SetSkill(SkillName.Tactics, 78.5, 87.2);
            SetSkill(SkillName.Anatomy, 68.7, 85.6);
            SetSkill(SkillName.Fencing, 92.5, 95.6);

            Fame = 0;
            Karma = -10000;
            Item Weapon = new ScytheOfDeath();

            Weapon.Movable = false;

            AddItem(Weapon);
              //  PackItem(new MasterCoin(40));

            VirtualArmor = 30;

            new PaleHorse().Rider = this;

            Item apron = new HalfApron(161);
            apron.Movable = false;
            AddItem( apron );

            Item hair = new ShortHair( 161 );
            hair.Movable = false;
            AddItem( hair );

            Item shoes = new Sandals(161);
            shoes.Movable = false;
            AddItem( shoes );

            Item mask = new OrcishKinMask(161);
               mask.Movable = false;
            AddItem( mask );

            Item robe = new Robe(161);
            robe.Movable = false;
            AddItem( robe );

            Item gloves = new LeatherGloves();
            gloves.Movable = false;
            gloves.Hue = 161;
            AddItem( gloves );

            Item gorget = new LeatherGorget();
            gorget.Movable = false;
            gorget.Hue = 161;
            AddItem( gorget );
        }
            public override void OnResponse( NetState sender, RelayInfo info )
            {
                if ( m_Deed.Deleted )
                    return;

                Item newHair = null;

                switch ( info.ButtonID )
                {
                    case 0: return;
                    case 2: newHair = new ShortHair(); break;
                    case 3: newHair = new LongHair(); break;
                    case 4: newHair = new PonyTail(); break;
                    case 5: newHair = new Mohawk(); break;
                    case 6: newHair = new PageboyHair(); break;
                    case 7: newHair = new ReceedingHair(); break;
                    case 8: newHair = new TwoPigTails(); break;
                    case 9: newHair = new KrisnaHair(); break;
                }

                if ( m_From is PlayerMobile )
                {
                    PlayerMobile pm = (PlayerMobile)m_From;

                    pm.SetHairMods( -1, -1 ); // clear any hairmods (disguise kit, incognito)
                }

                Item oldHair = m_From.FindItemOnLayer( Layer.Hair );

                if ( oldHair != null )
                    oldHair.Delete();

                if ( newHair != null )
                {
                    if ( oldHair != null )
                        newHair.Hue = oldHair.Hue;

                    m_From.AddItem( newHair );
                }

                m_Deed.Delete();
            }
Esempio n. 6
0
 public virtual Item AddRandomHair()
 {
     Item hair = null;
     switch ( Utility.Random( 8 ) )
     {
         case 0: AddItem( hair = new Afro() ); break;
         case 1: AddItem( hair = new KrisnaHair() ); break;
         case 2: AddItem( hair = new PageboyHair() ); break;
         case 3: AddItem( hair = new PonyTail() ); break;
         case 4: AddItem( hair = new ReceedingHair() ); break;
         case 5: AddItem( hair = new TwoPigTails() ); break;
         case 6: AddItem( hair = new ShortHair() ); break;
         case 7: AddItem( hair = new LongHair() ); break;
     }
     return hair;
 }