Example #1
0
        public override void GetContextMenuEntries(Mobile from, List <ContextMenuEntry> list)
        {
            BaseAI m_AI = new MeleeAI(this);

            if (this.Deleted)
            {
                return;
            }

            if (CanPaperdollBeOpenedBy(from))
            {
                list.Add(new PaperdollEntry(this));
            }

            if (from == this && Backpack != null && CanSee(Backpack) && CheckAlive(false))
            {
                list.Add(new OpenBackpackEntry(this));
            }

            if (Controlled == false)
            {
                list.Add(new HireEntry(from, this));
            }

            if (Controlled == true)              // OSI has a custom MenuEntries for Hireling, with Dismiss instead of Release (see BaseAI changes)
            {
                m_AI.GetContextMenuEntries(from, list);
            }
        }
Example #2
0
		public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list )
		{
			BaseAI m_AI = new MeleeAI(this);
		
			if ( this.Deleted )
				return;

			if ( CanPaperdollBeOpenedBy( from ) )
				list.Add( new PaperdollEntry( this ) );

			if ( from == this && Backpack != null && CanSee( Backpack ) && CheckAlive( false ) )
				list.Add( new OpenBackpackEntry( this ) );

			if( Controlled == false )
				list.Add( new HireEntry( from, this )  );

			if( Controlled == true ) // OSI has a custom MenuEntries for Hireling, with Dismiss instead of Release (see BaseAI changes)
				m_AI.GetContextMenuEntries( from, list );
		}