public override void OnResponse(NetState sender, RelayInfo info) { PlayerMobile pm = m_Entry.Player; m_CloseTimer.Stop(); if (Campfire.GetEntry(pm) != m_Entry) { return; } if (info.ButtonID == 1 && m_Entry.Safe && m_Bedroll.Parent == null && m_Bedroll.IsAccessibleTo(pm) && m_Bedroll.VerifyMove(pm) && m_Bedroll.Map == pm.Map && pm.InRange(m_Bedroll, 2)) { pm.PlaceInBackpack(m_Bedroll); pm.BedrollLogout = true; sender.Dispose(); } Campfire.RemoveEntry(m_Entry); }
private void CloseGump() { Campfire.RemoveEntry(m_Entry); m_Entry.Player.CloseGump(typeof(LogoutGump)); }