Пример #1
0
            protected override void OnTarget(Mobile from, object o)
            {
                IPoint3D p = o as IPoint3D;

                if (p != null)
                {
                    m_Owner.Target(p);
                }
            }
Пример #2
0
            protected override void OnTarget(Mobile from, object o)
            {
                IPoint3D p = o as IPoint3D;

                if (p != null)
                {
                    double distance = from.GetDistanceToSqrt(p);

//					double skillvalue = from.Skills[ SkillName.Ninjitsu ].Value/10.0; // is this correct?
                    double skillvalue = 11;                     // Xeor: tested on OSI

                    if (distance <= skillvalue)
                    {
                        m_Owner.Target(p);
                    }
                    else
                    {
                        from.SendLocalizedMessage(502481);                           // That location is too far away.
                    }
                }
            }