public override void OnAfterDelete() { try{ ForSaleSign.ClearHouse(); Doors.Clear(); base.OnAfterDelete(); }catch { Errors.Report(String.Format("TownHouse-> OnAfterDelete()-> {0}", Owner)); } }
public override void OnSpeech(SpeechEventArgs e) { if (e.Mobile != Owner || !IsInside(e.Mobile)) { return; } if (e.Speech.ToLower() == "check house rent") { ForSaleSign.CheckRentTimer(); } }
public override void OnSpeech(SpeechEventArgs e) { if (e.Mobile != Owner || !IsInside(e.Mobile)) { return; } if (e.Speech.ToLower() == "check house rent") { ForSaleSign.CheckRentTimer(); } Timer.DelayCall(TimeSpan.Zero, new TimerStateCallback(AfterSpeech), e.Mobile); }
public override void OnDelete() { if (c_Hanger != null) { c_Hanger.Delete(); } foreach (Item item in Sign.GetItemsInRange(0).OfType <Item>().Where(item => item != null && item != Sign)) { item.Visible = true; } ForSaleSign.ClearHouse(); Doors.Clear(); s_TownHouses.Remove(this); base.OnDelete(); }
public override void OnDelete() { if (_Hanger != null) { _Hanger.Delete(); } foreach (var item in Sign.GetItemsInRange(0).Where(item => item != Sign)) { item.Visible = true; } ForSaleSign.ClearHouse(); Doors.Clear(); AllTownHouses.Remove(this); base.OnDelete(); }