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 if ( from.AccessLevel >= AccessLevel.GameMaster ) { from.SendLocalizedMessage( 503248 ); // Your godly powers allow you to place this vendor whereever you wish. Mobile v = new RoomAttendant( from, BaseHouse.FindHouseAt( from ) ); v.Direction = from.Direction & Direction.Mask; v.MoveToWorld( from.Location, from.Map ); this.Delete(); } else { BaseHouse house = BaseHouse.FindHouseAt( from ); if ( house == null || !house.IsOwner( from ) ) { from.LocalOverheadMessage( MessageType.Regular, 0x3B2, false, "You are not the full owner of this house." ); } else if ( !house.CanPlaceNewBarkeep() ) { from.SendMessage( "This action would exceed the maximum number of barkeeps/room attendants for this house." ); // That action would exceed the maximum number of barkeeps for this house. } else { bool vendor, contract; BaseHouse.IsThereVendor( from.Location, from.Map, out vendor, out contract ); if ( vendor ) { from.SendMessage( "You cannot place a vendor, barkeep, or room attendant at this location." ); // You cannot place a vendor or barkeep at this location. } else if ( contract ) { from.SendMessage( "You cannot place a vendor, barkeep, or room attendant on top of a rental contract!" ); // You cannot place a vendor or barkeep on top of a rental contract! } else { Mobile v = new RoomAttendant( from, house ); v.Direction = from.Direction & Direction.Mask; v.MoveToWorld( from.Location, from.Map ); this.Delete(); } } } }
public RoomAttendantGump(Mobile from, RoomAttendant roomattendant) : base(0, 0) { m_From = from; m_Roomattendant = roomattendant; from.CloseGump(typeof(RoomAttendantGump)); RenderBackground(); RenderCategories(); RenderMessageManagement(); RenderDismissConfirmation(); RenderMessageManagement_Message_AddOrChange(); RenderMessageManagement_Message_Remove(); RenderMessageManagement_Tip_AddOrChange(); RenderMessageManagement_Tip_Remove(); RenderAppearanceCategories(); }
public ChangeATipMessagePrompt(RoomAttendant roomattendant) { m_Roomattendant = roomattendant; }
public RoomEntry(RoomAttendant roomattendant, Mobile from) : base(560, 12) { m_Attendant = roomattendant; m_From = from; }
public RoomTarget(RoomAttendant roomattendant) : base(12, false, TargetFlags.None) { m_RoomAttendant = roomattendant; }
public ChangeARumorKeywordPrompt(RoomAttendant roomattendant, int rumorIndex) { m_Roomattendant = roomattendant; m_RumorIndex = rumorIndex; }
public ChangeARumorMessagePrompt(RoomAttendant roomattendant, int rumorIndex) { m_Roomattendant = roomattendant; m_RumorIndex = rumorIndex; }
public ManageRoomAttendantEntry(Mobile from, RoomAttendant roomattendant) : base(6151, 12) { m_From = from; m_Roomattendant = roomattendant; }
public ChangeATipMessagePrompt( RoomAttendant roomattendant ) { m_Roomattendant = roomattendant; }
public RoomAttendantGump( Mobile from, RoomAttendant roomattendant ) : base( 0, 0 ) { m_From = from; m_Roomattendant = roomattendant; from.CloseGump( typeof( RoomAttendantGump ) ); RenderBackground(); RenderCategories(); RenderMessageManagement(); RenderDismissConfirmation(); RenderMessageManagement_Message_AddOrChange(); RenderMessageManagement_Message_Remove(); RenderMessageManagement_Tip_AddOrChange(); RenderMessageManagement_Tip_Remove(); RenderAppearanceCategories(); }
public RoomEntry( RoomAttendant roomattendant, Mobile from ) : base( 560, 12 ) { m_Attendant = roomattendant; m_From = from; }
public RoomTarget( RoomAttendant roomattendant ) : base( 12, false, TargetFlags.None ) { m_RoomAttendant = roomattendant; }
public ChangeARumorKeywordPrompt( RoomAttendant roomattendant, int rumorIndex ) { m_Roomattendant = roomattendant; m_RumorIndex = rumorIndex; }
public ChangeARumorMessagePrompt( RoomAttendant roomattendant, int rumorIndex ) { m_Roomattendant = roomattendant; m_RumorIndex = rumorIndex; }
public ManageRoomAttendantEntry( Mobile from, RoomAttendant roomattendant ) : base( 6151, 12 ) { m_From = from; m_Roomattendant = roomattendant; }