public override bool OnDragDropInto(Mobile from, Item item, Point3D p) { if (!base.OnDragDropInto(from, item, p)) { return(false); } if (TotalItems >= 10) { Empty(501478); // The trash is full! Emptying! } else { from.SendMessage(38, "WARNING~! Items placed in Trash Bag will be deleted in 30 seconds!"); // The item will be deleted in three minutes if (m_Timer != null) { m_Timer.Stop(); } else { m_Timer = new EmptyTimer(this); } m_Timer.Start(); } return(true); }
public override bool OnDragDropInto(Mobile from, Item item, Point3D p) { if (!base.OnDragDropInto(from, item, p)) { return(false); } if (TotalItems >= 50) { Empty(501478); // The trash is full! Emptying! } else { SendLocalizedMessageTo(from, 1010442); // The item will be deleted in three minutes if (m_Timer != null) { m_Timer.Stop(); } else { m_Timer = new EmptyTimer(this); } m_Timer.Start(); } return(true); }
public override bool OnDragDrop(Mobile from, Item dropped) { if (!base.OnDragDrop(from, dropped)) { return(false); } // wea: trash barrels will only work when locked down if (!IsLockedDown) { return(false); } if (TotalItems >= 50) { Empty(501478); // The trash is full! Emptying! } else { SendLocalizedMessageTo(from, 1010442); // The item will be deleted in three minutes if (m_Timer != null) { m_Timer.Stop(); } else { m_Timer = new EmptyTimer(this); } m_Timer.Start(); } return(true); }
public override bool OnDragDrop(Mobile from, Item dropped) { if (!base.OnDragDrop(from, dropped)) { return(false); } if (TotalItems >= 50) { Empty(501478); // The trash is full! Emptying! } else { SendAsciiMessageTo(from, "The item will be deleted in three minutes."); if (m_Timer != null) { m_Timer.Stop(); } else { m_Timer = new EmptyTimer(this); } m_Timer.Start(); } return(true); }
public override bool OnDragDropInto(Mobile from, Item item, Point3D p) { if (!base.OnDragDropInto(from, item, p)) { return(false); } if (TotalItems >= 50) { Empty("The trash is full! Emptying!"); // The trash is full! Emptying! } else { from.Send(new AsciiMessage(Serial, ItemID, MessageType.Regular, 0, 3, "", "The item will be deleted in three minutes.")); //SendLocalizedMessageTo( from, 1010442 ); // The item will be deleted in three minutes if (m_Timer != null) { m_Timer.Stop(); } else { m_Timer = new EmptyTimer(this); } m_Timer.Start(); } return(true); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); if (Items.Count > 0) { m_Timer = new EmptyTimer(this); m_Timer.Start(); } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); if ( Items.Count > 0 ) { m_Timer = new EmptyTimer( this ); m_Timer.Start(); } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); if (version >= 1) m_Level = (SecureLevel)reader.ReadInt(); else m_Level = SecureLevel.CoOwners; if ( Items.Count > 0 ) { m_Timer = new EmptyTimer( this ); m_Timer.Start(); } }
public override bool OnDragDropInto(Mobile from, Item item, Point3D p) { if (!base.OnDragDropInto(from, item, p)) { return(false); } if (m_Timer != null) { m_Timer.Stop(); } else { m_Timer = new EmptyTimer(this); } m_Timer.Start(); return(true); }
public override bool OnDragDrop(Mobile from, Item dropped) { if (!base.OnDragDrop(from, dropped)) { return(false); } if (m_Timer != null) { m_Timer.Stop(); } else { m_Timer = new EmptyTimer(this); } m_Timer.Start(); return(true); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); if (version >= 1) { m_Level = (SecureLevel)reader.ReadInt(); } else { m_Level = SecureLevel.CoOwners; } if (Items.Count > 0) { m_Timer = new EmptyTimer(this); m_Timer.Start(); } }
public override bool OnDragDrop( Mobile from, Item dropped ) { if ( !base.OnDragDrop( from, dropped ) ) return false; if ( TotalItems >= 50 ) { Empty( 501478 ); // The trash is full! Emptying! } else { SendLocalizedMessageTo( from, 1010442 ); // The item will be deleted in three minutes if ( m_Timer != null ) m_Timer.Stop(); else m_Timer = new EmptyTimer( this ); m_Timer.Start(); } return true; }
public override bool OnDragDrop( Mobile from, Item dropped ) { if ( !base.OnDragDrop( from, dropped ) ) return false; if ( TotalItems >= 10 ) { Empty( 501478 ); // The trash is full! Emptying! } else { from.SendMessage( "Items will delete in 30 seconds!" ); // The item will be deleted in three minutes if ( m_Timer != null ) m_Timer.Stop(); else m_Timer = new EmptyTimer( this ); m_Timer.Start(); } return true; }
public override bool OnDragDropInto( Mobile from, Item item, Point3D p ) { if ( !base.OnDragDropInto( from, item, p ) ) return false; // wea: trash barrels will only work when locked down if ( !IsLockedDown ) return false; if ( TotalItems >= 50 ) { Empty( 501478 ); // The trash is full! Emptying! } else { SendLocalizedMessageTo( from, 1010442 ); // The item will be deleted in three minutes if ( m_Timer != null ) m_Timer.Stop(); else m_Timer = new EmptyTimer( this ); m_Timer.Start(); } return true; }
public override bool OnDragDropInto( Mobile from, Item item, Point3D p ) { if ( !base.OnDragDropInto( from, item, p ) ) return false; if ( TotalItems >= 10 ) { Empty( 501478 ); // The trash is full! Emptying! } else { from.SendMessage( 38,"WARNING~! Items placed in Trash Bag will be deleted in 30 seconds!" ); // The item will be deleted in three minutes if ( m_Timer != null ) m_Timer.Stop(); else m_Timer = new EmptyTimer( this ); m_Timer.Start(); } return true; }