コード例 #1
0
        public DiabolicalSeaweed()
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.0, 0.0)
        {
            Name = "Diabolical Seaweed";
            Body = 129;
            Hue  = 1914;

            SetStr(452, 485);
            SetDex(401, 420);
            SetInt(126, 140);

            SetHits(501, 532);

            SetDamage(10, 23);

            SetDamageType(ResistanceType.Physical, 60);
            SetDamageType(ResistanceType.Poison, 40);

            SetResistance(ResistanceType.Physical, 35, 40);
            SetResistance(ResistanceType.Fire, 20, 30);
            SetResistance(ResistanceType.Cold, 10, 20);
            SetResistance(ResistanceType.Poison, 100);
            SetResistance(ResistanceType.Energy, 10, 20);

            SetSkill(SkillName.MagicResist, 50.1, 54.7);
            SetSkill(SkillName.Tactics, 100.3, 114.8);
            SetSkill(SkillName.Wrestling, 45.1, 59.5);

            Fame     = 3000;
            Karma    = -3000;
            CantWalk = true;

            m_Timer = new PullTimer(this);
            m_Timer.Start();
        }
コード例 #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            m_Timer = new PullTimer(this);
            m_Timer.Start();
        }
コード例 #3
0
ファイル: DiabolicalSeaweed.cs プロジェクト: UODOC/MyShard
        public DiabolicalSeaweed()
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.0, 0.0)
        {
            this.Name = "Diabolical Seaweed";
            this.Body = 129;
            this.Hue  = 1914;

            this.SetStr(452, 485);
            this.SetDex(401, 420);
            this.SetInt(126, 140);

            this.SetHits(501, 532);

            this.SetDamage(10, 23);

            this.SetDamageType(ResistanceType.Physical, 60);
            this.SetDamageType(ResistanceType.Poison, 40);

            this.SetResistance(ResistanceType.Physical, 35, 40);
            this.SetResistance(ResistanceType.Fire, 20, 30);
            this.SetResistance(ResistanceType.Cold, 10, 20);
            this.SetResistance(ResistanceType.Poison, 100);
            this.SetResistance(ResistanceType.Energy, 10, 20);

            this.SetSkill(SkillName.MagicResist, 50.1, 54.7);
            this.SetSkill(SkillName.Tactics, 100.3, 114.8);
            this.SetSkill(SkillName.Wrestling, 45.1, 59.5);

            this.Fame     = 3000;
            this.Karma    = -3000;
            this.CantWalk = true;

            this.VirtualArmor = 60;

            this.m_Timer = new PullTimer(this);
            this.m_Timer.Start();

            switch (Utility.Random(8))
            {
            case 0: PackItem(new BlueDiamond()); break;

            case 1: PackItem(new FireRuby()); break;

            case 2: PackItem(new BrilliantAmber()); break;

            case 3: PackItem(new PerfectEmerald()); break;

            case 4: PackItem(new DarkSapphire()); break;

            case 5: PackItem(new Turquoise()); break;

            case 6: PackItem(new EcruCitrine()); break;

            case 7: PackItem(new WhitePearl()); break;
            }
            PackItem(new ParasiticPlant());
            PackItem(new LuminescentFungi());
        }
コード例 #4
0
ファイル: DiabolicalSeaweed.cs プロジェクト: UODOC/MyShard
        public override void OnAfterDelete()
        {
            if (this.m_Timer != null)
            {
                this.m_Timer.Stop();
            }

            this.m_Timer = null;

            base.OnAfterDelete();
        }
コード例 #5
0
        public override void OnAfterDelete()
        {
            if (m_Timer != null)
            {
                m_Timer.Stop();
            }

            m_Timer = null;

            base.OnAfterDelete();
        }
コード例 #6
0
        public MephitisWeb(CalebMephitis mep, Mobile target, int webid) : base(webid)
        {
            Name     = "Web of Mephitis";
            Movable  = false;
            this.mep = mep;
            Timer pullT = new PullTimer(mep, target, this);
            Timer webT  = new WebTimer(mep, target, this);

            webT.Start();
            pullT.Start();
        }
コード例 #7
0
        public override bool OnMoveOver(Mobile m)
        {
            bool temp = base.OnMoveOver(m);

            if (mep != null && m != null && m.Alive && mep.Alive && (m.Player || ((BaseCreature)m).Controlled))
            {
                Timer pullT = new PullTimer(mep, m, this);
                m.Paralyze(TimeSpan.FromSeconds(10));
                pullT.Start();
            }
            return(temp);
        }
コード例 #8
0
		public override bool OnMoveOver(Mobile m)
		{
			bool temp = base.OnMoveOver(m);
			if (mep != null && m != null && m.Alive && mep.Alive && (m.Player || ((BaseCreature)m).Controlled))
			{
				Timer pullT = new PullTimer(mep, m, this);
				m.Paralyze(TimeSpan.FromSeconds(10));
				pullT.Start();
			}
			return temp;
		}
コード例 #9
0
		public MephitisWeb(CalebMephitis mep, Mobile target, int webid) : base( webid)
		{
			Name = "Web of Mephitis";
			Movable = false;
			this.mep = mep;
			Timer pullT = new PullTimer(mep, target, this);
			Timer webT = new WebTimer(mep, target, this);
			webT.Start();
			pullT.Start();
		}