Esempio n. 1
0
            public override void OnResponse(NetState sender, RelayInfo info)
            {
                var pm = m_Entry.Player;

                _closeTimerToken.Cancel();

                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.Disconnect("Used a bedroll to log out.");
                }

                Campfire.RemoveEntry(m_Entry);
            }
Esempio n. 2
0
            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);
            }