예제 #1
0
        internal void MarketplacePostItem()
        {
            if (Session.GetHabbo().GetInventoryComponent() == null)
            {
                return;
            }

            uint sellingPrice = Request.PopWiredUInt();
            int  junk         = Request.PopWiredInt32();
            uint itemId       = Request.PopWiredUInt();

            UserItem Item = Session.GetHabbo().GetInventoryComponent().GetItem(itemId);

            Marketplace.SellItem(Session, Item, sellingPrice);
        }
예제 #2
0
        internal void MarketplacePostItem()
        {
            if (Session.GetHabbo().GetInventoryComponent() == null)
            {
                return;
            }

            int  sellingPrice = Request.ReadInt32();
            int  junk         = Request.ReadInt32();
            uint itemId       = Request.ReadUInt32();

            UserItem Item = Session.GetHabbo().GetInventoryComponent().GetItem(itemId);

            if (Item == null || !Item.GetBaseItem().AllowTrade)
            {
                return;
            }

            Marketplace.SellItem(Session, Item.Id, sellingPrice);
        }