예제 #1
0
        private static void EventSink_AnimateRequest(AnimateRequestEventArgs e)
        {
            Mobile from = e.Mobile;

            int  action;
            bool useNew = Core.SA;

            switch (e.Action)
            {
            case "bow":
                action = useNew ? 0 : 32;
                break;

            case "salute":
                action = useNew ? 1 : 33;
                break;

            default:
                return;
            }

            if (from.Alive && !from.Mounted && (from.Body.IsHuman || from.Body.IsGargoyle))
            {
                if (useNew)
                {
                    from.Animate(AnimationType.Emote, action);
                }
                else
                {
                    from.Animate(action, 5, 1, true, false, 0);
                }
            }
        }
예제 #2
0
        private static void EventSink_AnimateRequest(AnimateRequestEventArgs e)
        {
            Mobile from = e.Mobile;

            int action;

            switch (e.Action)
            {
            case "bow":
                action = 0;
                break;

            case "salute":
                action = 1;
                break;

            default:
                return;
            }

            if (from.Alive && !from.Mounted && (from.Body.IsHuman || from.Body.IsGargoyle))
            {
                from.Animate(AnimationType.Emote, action);
            }
        }
예제 #3
0
        private static void EventSink_AnimateRequest(AnimateRequestEventArgs e)
        {
            Mobile from = e.Mobile;

            int action;

            switch (e.Action)
            {
            case "bow":
                action = 32;
                break;

            case "salute":
                action = 33;
                break;

            default:
                return;
            }

            if (from.Alive && !from.Mounted && from.Body.IsHuman)
            {
                from.Animate(action, 5, 1, true, false, 0);
            }
        }
예제 #4
0
        private static void EventSink_AnimateRequest(AnimateRequestEventArgs e)
        {
            Mobile from = e.Mobile;

            int action;

            switch (e.Action)
            {
            case "bow": action = 32; break;

            case "salute": action = 33; break;

            default: return;
            }

            if (from.Alive && !from.Mounted)
            {
                if (from.Body.IsHuman)
                {
                    from.Animate(action, 5, 1, true, false, 0);
                }
                else
                {
                    if (from.Body.IsAnimal)
                    {
                        if (action == 32)
                        {
                            from.Animate(3, 3, 1, true, false, 1);
                        }
                        else if (action == 33)
                        {
                            from.Animate(10, 5, 1, true, false, 1);
                        }
                    }
                    else if (from.Body.IsMonster)
                    {
                        if (action == 32)
                        {
                            from.Animate(11, 5, 1, true, false, 1);
                        }
                        else if (action == 33)
                        {
                            from.Animate(18, 5, 1, true, false, 1);
                        }
                    }
                }
            }
        }
예제 #5
0
		private static void EventSink_AnimateRequest( AnimateRequestEventArgs e )
		{
			Mobile from = e.Mobile;

			int action;

			switch ( e.Action )
			{
				case "bow": action = 32; break;
				case "salute": action = 33; break;
				default: return;
			}

			if ( from.Alive && !from.Mounted && from.Body.IsHuman )
				from.Animate( action, 5, 1, true, false, 0 );
		}
예제 #6
0
        private static void EventSink_AnimateRequest(AnimateRequestEventArgs e)
        {
            Mobile from = e.Mobile;

            int action;
            int delay = 0;

            switch (e.Action)
            {
            case "bow":
            {
                if (!from.Mounted)
                {
                    action = 32;
                }
                else
                {
                    action = 28;
                    delay  = 1;
                }
                break;
            }

            case "salute":
            {
                if (!from.Mounted)
                {
                    action = 33;
                }
                else
                {
                    action = 28;
                    delay  = 1;
                }
                break;
            }

            default: return;
            }

            from.Animate(action, 5, 1, true, false, delay);
        }
예제 #7
0
		private static void EventSink_AnimateRequest( AnimateRequestEventArgs e )
		{
			Mobile from = e.Mobile;

			int action;
            int delay = 0;

			switch ( e.Action )
			{
                case "bow":
                    {
                        if (!from.Mounted)
                            action = 32;
                        else
                        {
                            action = 28;
                            delay = 1;
                        }
                        break;
                    }
                case "salute":
                    {
                        if (!from.Mounted)
                            action = 33;
                        else
                        {
                            action = 28;
                            delay = 1;
                        }
                        break;
                    }
				default: return;
			}

            from.Animate(action, 5, 1, true, false, delay);
		}
예제 #8
0
 public void InvokeAnimateRequest( AnimateRequestEventArgs e )
 {
     if ( AnimateRequest != null )
         AnimateRequest( e );
 }