Beispiel #1
0
            public ConfirmGump(Mobile from, HouseSitter hs) : base(50, 50)
            {
                from.CloseGump(typeof(ConfirmGump));

                AddPage(0);

                AddBackground(10, 10, 190, 140, 0x242C);

                AddHtml(30, 30, 150, 75, String.Format("<div align=CENTER>{0}</div>", "Dismiss this house sitter?"), false, false);

                AddButton(40, 105, 0x81A, 0x81B, 0x1, GumpButtonType.Reply, 0);                   // Okay
                AddButton(110, 105, 0x819, 0x818, 0x2, GumpButtonType.Reply, 0);                  // Cancel
                m_Sitter = hs;
            }
		public override void OnDoubleClick( Mobile from )
		{
			if ( !IsChildOf( from.Backpack ) )
			{
				from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
			}
			else
			{
				BaseHouse house = BaseHouse.FindHouseAt( from );

				if ( house == null )
				{
					from.SendLocalizedMessage( 503240 );//Vendors can only be placed in houses.	
				}
				else if ( !house.IsFriend( from ) && (from.AccessLevel < AccessLevel.GameMaster) )
				{
					from.SendLocalizedMessage( 503242 ); //You must ask the owner of this house to make you a friend in order to place this vendor here,
				}
				else if ( !house.CanPlaceNewVendor() )
				{
					from.SendLocalizedMessage( 503241 ); // You cannot place this vendor or barkeep.  Make sure the house is public or a shop and has sufficient storage available.
				}
				else
				{
					Mobile v = new HouseSitter( from );
					v.Direction = from.Direction & Direction.Mask;
					v.MoveToWorld( from.Location, from.Map );

					((HouseSitter)v).SendStatusTo(from);

					this.Delete();
				}
			}
		}
Beispiel #3
0
			public ConfirmGump( Mobile from, HouseSitter hs) : base( 50, 50 )
			{
				from.CloseGump( typeof(ConfirmGump) );

				AddPage( 0 );

				AddBackground( 10, 10, 190, 140, 0x242C );

				AddHtml( 30, 30, 150, 75, String.Format( "<div align=CENTER>{0}</div>", "Dismiss this house sitter?" ), false, false );

				AddButton( 40, 105, 0x81A, 0x81B, 0x1, GumpButtonType.Reply, 0 ); // Okay
				AddButton( 110, 105, 0x819, 0x818, 0x2, GumpButtonType.Reply, 0 ); // Cancel
				m_Sitter = hs;
			}
Beispiel #4
0
			public DismissContextMenu( Mobile from, HouseSitter sitter ) : base( 6129 )
			{
				m_Sitter = sitter;
				m_Mobile = from;
			}
Beispiel #5
0
			public StatusContextMenu( Mobile from, HouseSitter sitter ) : base( 2134 )
			{
				m_Sitter = sitter;
				m_Mobile = from;
			}
Beispiel #6
0
 public DismissContextMenu(Mobile from, HouseSitter sitter)
     : base(6129)
 {
     m_Sitter = sitter;
     m_Mobile = from;
 }
Beispiel #7
0
 public StatusContextMenu(Mobile from, HouseSitter sitter)
     : base(2134)
 {
     m_Sitter = sitter;
     m_Mobile = from;
 }