Summon() public static method

public static Summon ( BaseCreature creature, Mobile caster, int sound, System.TimeSpan duration, bool scaleDuration, bool scaleStats ) : void
creature Server.Mobiles.BaseCreature
caster Mobile
sound int
duration System.TimeSpan
scaleDuration bool
scaleStats bool
return void
Beispiel #1
0
        public override void OnCast()
        {
            if (CheckSequence())
            {
                TimeSpan duration = TimeSpan.FromSeconds(0);

                SpellHelper.Summon(new SummonedFireElemental(), Caster, 0x217, duration, false, false);
            }

            FinishSequence();
        }
Beispiel #2
0
        public override void OnCast()
        {
            if (CheckSequence())
            {
                TimeSpan duration = TimeSpan.FromSeconds(0);

                SpellHelper.Summon(new SummonedAncientLich(), Caster, 0x217, duration, false, false);
                //else
                //    SpellHelper.Summon( new AncientLich(), Caster, 0x217, duration, false, false );
            }

            FinishSequence();
        }
Beispiel #3
0
        public override void OnCast()
        {
            if (CheckSequence())
            {
                TimeSpan duration = TimeSpan.FromSeconds(0);
                if (Caster is PlayerMobile)
                {
                    SpellHelper.Summon(new Horse(), Caster, 0x217, duration, false, false);
                }
                else
                {
                    SpellHelper.Summon(new Horse(), Caster, 0x217, duration, false, false);
                }
            }

            FinishSequence();
        }
Beispiel #4
0
        public override void OnCast()
        {
            if ((Caster.Followers + m_ControlSlots) > Caster.FollowersMax)
            {
                Caster.SendLocalizedMessage(1049645); // You have too many followers to summon that creature.
                return;
            }
            else if (CheckSequence())
            {
                try
                {
                    BaseCreature creature = (BaseCreature)Activator.CreateInstance(m_Creature);

                    TimeSpan duration = TimeSpan.FromSeconds(0);

                    SpellHelper.Summon(creature, Caster, 0x215, duration, true, true);
                }
                catch
                {
                }
            }

            FinishSequence();
        }
Beispiel #5
0
        public static void ToogleFetichisme(Spell spell, Mobile Caster, Mobile from)
        {
            TimeSpan duration = TimeSpan.FromSeconds(0);

            SpellHelper.Summon(new Fetichisme(from), Caster, 0x217, duration, false, false);
        }