private void OnLogout(bool fake) { if (!fake) { PacketHandlers.Party.Clear(); SetTitleStr(""); Engine.MainWindow.UpdateTitle(); UOAssist.PostLogout(); m_ConnStart = DateTime.MinValue; } World.Player = null; World.Items.Clear(); World.Mobiles.Clear(); Macros.MacroManager.Stop(); ActionQueue.Stop(); Counter.Reset(); GoldPerHourTimer.Stop(); DamageTracker.Stop(); BandageTimer.Stop(); GateTimer.Stop(); BuffsTimer.Stop(); StealthSteps.Unhide(); Engine.MainWindow.OnLogout(); if (Engine.MainWindow.MapWindow != null) { Engine.MainWindow.MapWindow.Close(); } PacketHandlers.Party.Clear(); PacketHandlers.IgnoreGumps.Clear(); Config.Save(); //TranslateEnabled = false; }
private void OnDisconnected() { PacketHandlers.Party.Clear(); //TODO reset window title Engine.MainWindow.UpdateTitle(); UOAssist.PostLogout(); World.Player = null; World.Items.Clear(); World.Mobiles.Clear(); Macros.MacroManager.Stop(); ActionQueue.Stop(); Counter.Reset(); GoldPerHourTimer.Stop(); BandageTimer.Stop(); GateTimer.Stop(); BuffsTimer.Stop(); StealthSteps.Unhide(); Engine.MainWindow.OnLogout(); if (Engine.MainWindow.MapWindow != null) { Engine.MainWindow.MapWindow.Close(); } PacketHandlers.Party.Clear(); PacketHandlers.IgnoreGumps.Clear(); Config.Save(); }
private static void OnDisconnected() { PacketHandlers.Party.Clear(); World.Player = null; World.Items.Clear(); World.Mobiles.Clear(); ActionQueue.Stop(); BuffsTimer.Stop(); PacketHandlers.Party.Clear(); PacketHandlers.IgnoreGumps.Clear(); }
private static void OnLogout(bool fake) { World.Player = null; World.Items.Clear(); World.Mobiles.Clear(); Macros.MacroManager.Stop(); ActionQueue.Stop(); StealthSteps.Unhide(); Engine.MainWindow.OnLogout(); if (Engine.MainWindow.MapWindow != null) { Engine.MainWindow.MapWindow.Close(); } PacketHandlers.Party.Clear(); PacketHandlers.IgnoreGumps.Clear(); Config.Save(); }
private void OnLogout(bool fake) { if (!fake) { PacketHandlers.Party.Clear(); Engine.MainWindow.UpdateTitle(); // Felix Fix //foreach (WndRegEnt t in m_WndReg) // DLLImport.Win.PostMessage((IntPtr)((WndRegEnt)t).Handle, (uint)Assistant.UOAssist.UOAMessage.LOGOUT, IntPtr.Zero, IntPtr.Zero); m_ConnectionStart = DateTime.MinValue; } Assistant.Client.Instance.SetTitleStr(""); // Restore titlebar standard if (World.Player != null) { // Stop forzato di tutti i thread agent RazorEnhanced.AutoLoot.AutoMode = false; RazorEnhanced.Scavenger.AutoMode = false; RazorEnhanced.BandageHeal.AutoMode = false; if (RazorEnhanced.Scripts.Timer != null) { RazorEnhanced.Scripts.Timer.Close(); } if (Assistant.Engine.MainWindow.AutolootCheckBox.Checked == true) { Assistant.Engine.MainWindow.AutolootCheckBox.Checked = false; } if (Assistant.Engine.MainWindow.BandageHealenableCheckBox.Checked == true) { Assistant.Engine.MainWindow.BandageHealenableCheckBox.Checked = false; } if (Assistant.Engine.MainWindow.ScavengerCheckBox.Checked == true) { Assistant.Engine.MainWindow.ScavengerCheckBox.Checked = false; } if (Assistant.Engine.MainWindow.OrganizerStop.Enabled == true) { Assistant.Engine.MainWindow.OrganizerStop.PerformClick(); } if (Assistant.Engine.MainWindow.DressStopButton.Enabled == true) { Assistant.Engine.MainWindow.DressStopButton.PerformClick(); } if (Assistant.Engine.MainWindow.RestockStop.Enabled == true) { Assistant.Engine.MainWindow.RestockStop.PerformClick(); } if (Assistant.Engine.MainWindow.SellCheckBox.Checked == true) { Assistant.Engine.MainWindow.SellCheckBox.Checked = false; } if (Assistant.Engine.MainWindow.BuyCheckBox.Checked == true) { Assistant.Engine.MainWindow.BuyCheckBox.Checked = false; } if (RazorEnhanced.ToolBar.ToolBarForm != null) { RazorEnhanced.ToolBar.ToolBarForm.Close(); } if (RazorEnhanced.SpellGrid.SpellGridForm != null) { RazorEnhanced.SpellGrid.SpellGridForm.Close(); } //Stop video recorder Assistant.MainForm.StopVideoRecorder(); } PlayerData.ExternalZ = false; World.Player = null; PlayerData.FastWalkKey = 0; World.Items.Clear(); World.Mobiles.Clear(); ActionQueue.Stop(); StealthSteps.Unhide(); PacketHandlers.Party.Clear(); PacketHandlers.IgnoreGumps.Clear(); }