public override void OnResponse(Server.Network.NetState state, int index) { if (index == 0 && state != null && state.Mobile != null && state.Mobile.Alive) { state.Mobile.SendAsciiMessage("Logging out...."); state.Dispose(); } }
public override void OnResponse(Server.Network.NetState sender, RelayInfo info) { Mobile from = sender.Mobile; switch (info.ButtonID) { case (int)Buttons.btn_OK: m_LogoutRune.LastUse = DateTime.Now; from.MoveToWorld(m_LogoutRune.MarkLocation, m_LogoutRune.MarkMap); Account a = sender.Account as Account; sender.Dispose(); a.Banned = true; a.SetUnspecifiedBan(from); a.SetBanTags(from, DateTime.Now, TimeSpan.FromHours(1)); break; case (int)Buttons.btn_Cancel: break; } }