public void Parse(HabboHotel.GameClients.GameClient Session, Messages.ClientMessage Packet) { int junk1 = Packet.PopWiredInt32(); int junk2 = Packet.PopWiredInt32(); uint RoomId = Packet.PopWiredUInt(); string Name = Packet.PopFixedString(); bool junk3 = Packet.PopWiredBoolean(); string Desc = Packet.PopFixedString(); SilverwaveEnvironment.GetGame().GetRoomEvents().AddNewEvent(RoomId, Name, Desc, Session); Session.SendMessage(new PurchaseOKComposer()); Session.GetHabbo().Credits -= 500; Session.GetHabbo().UpdateCreditsBalance(); }
public void Parse(HabboHotel.GameClients.GameClient Session, Messages.ClientMessage Packet) { if (SilverwaveEnvironment.GetDBConfig().DBData["gifts_enabled"] != "1") { Session.SendNotif("The hotel managers have disabled gifting"); return; } int PageId = Packet.PopWiredInt32(); int ItemId = Packet.PopWiredInt32(); string ExtraData = Packet.PopFixedString(); string GiftUser = Packet.PopFixedString(); string GiftMessage = Packet.PopFixedString(); int SpriteId = Packet.PopWiredInt32(); int Lazo = Packet.PopWiredInt32(); int Color = Packet.PopWiredInt32(); bool dnow = Packet.PopWiredBoolean(); SilverwaveEnvironment.GetGame().GetCatalog().HandlePurchase(Session, PageId, ItemId, ExtraData, 1, true, GiftUser, GiftMessage, SpriteId, Lazo, Color, dnow, 0); }