Validate() public méthode

public Validate ( Mobile from ) : bool
from Mobile
Résultat bool
Exemple #1
0
            public override void OnCast()
            {
                if (!m_Mount.Deleted && m_Mount.Rider == null && m_Mount.Validate(m_Rider))
                {
                    m_Mount.Rider = m_Rider;
                }

                FinishSequence();
            }
            public async Task CastAsync()
            {
                if (!m_Mount.Deleted && m_Mount.Rider == null && m_Mount.Validate(m_Rider))
                {
                    m_Mount.Rider = m_Rider;
                }

                FinishSequence();
            }
Exemple #3
0
            public override void OnCast()
            {
                if (!m_Mount.Deleted && m_Mount.Rider == null && m_Mount.Validate(m_Rider))
                {
                    m_Mount.Rider = m_Rider;
                    if (m_Rider is PlayerMobile)
                    {
                        ((PlayerMobile)m_Rider).EthyMaxStam = Utility.RandomMinMax(70, 100);
                    }
                }

                FinishSequence();
            }
Exemple #4
0
            public override void OnCast()
            {
                if (!m_Mount.Deleted && m_Mount.Rider == null && m_Mount.Validate(m_Rider))
                {
                    m_Mount.Rider = m_Rider;

                    ArrayList ethy = new ArrayList();
                    foreach (Item item in World.Items.Values)
                    {
                        if (item is EtherealMount)
                        {
                            if (((EtherealMount)item).Owner == m_Rider)
                            {
                                ((EtherealMount)item).Owner = null;
                            }
                        }
                    }

                    m_Mount.Owner = m_Rider;
                }

                FinishSequence();
            }