Junior Spellweaver
- Joined
- Feb 7, 2011
- Messages
- 120
- Reaction score
- 12
hello today i'm releasing my Ads Background fix. Screen:
ok..
go to messages/Gameclientmessagehandler.cs and put
under
then go to messages/staticmessagehandler/sharedpacketlib.cs and put
under
then go to habboevents/incoming.cs
and put
under
and put
under
GO TO roomitem.cs in habbohotel/items
search:
and add under this:
and change
to
then go to StaticClientMessageHandler in messages/staticmessagehandler and put
under
finish
credits: 60% to =dj.matias= for the old code 29% to Whippet 10% for the packet finding and 11% to me for findig out to put this in the new emulator + changing packets.
when i Help you ;D like + rep
sorry for my bad english i'm german
ok..
go to messages/Gameclientmessagehandler.cs and put
Code:
internal void SaveBranding()
{
uint ItemId = Request.PopWiredUInt();
uint Data = Request.PopWiredUInt();
string BrandData = "state" + Convert.ToChar(9) + "0";
for (int i = 1; i <= Data; i++)
{
BrandData = BrandData + Convert.ToChar(9) + Request.PopFixedString();
}
Room Room = Session.GetHabbo().CurrentRoom;
RoomItem Item = Room.GetRoomItemHandler().GetItem(ItemId);
Item.ExtraData = BrandData;
Room.GetRoomItemHandler().SetFloorItem(Session, Item, Item.GetX, Item.GetY, Item.Rot, false, false, true);
}
under
Code:
internal void GetInventory()
{
QueuedServerMessage message = new QueuedServerMessage(this.Session.GetConnection());
message.appendResponse(this.Session.GetHabbo().GetInventoryComponent().SerializeFloorItemInventory());
message.appendResponse(this.Session.GetHabbo().GetInventoryComponent().SerializeWallItemInventory());
message.sendResponse();
}
then go to messages/staticmessagehandler/sharedpacketlib.cs and put
Code:
internal static void SaveBranding(GameClientMessageHandler handler)
{
handler.SaveBranding();
}
under
Code:
internal static void AddFavorite(GameClientMessageHandler handler)
{
handler.AddFavorite();
}
then go to habboevents/incoming.cs
and put
Code:
public static int SaveBranding;
Code:
public static int RemoveGuildFavorite;
and put
Code:
Incoming.SaveBranding = 242;
Code:
Incoming.OpenGift = 225;
GO TO roomitem.cs in habbohotel/items
search:
Code:
Message.AppendString(string.Format("{0:0.00}", TextHandling.GetString(this.mZ)));
and add under this:
Code:
if (this.GetBaseItem().Name == "ads_mpu_720" || this.GetBaseItem().Name == "ads_background" || this.GetBaseItem().Name == "ads_mpu_300" || this.GetBaseItem().Name == "ads_mpu_160")
{
Message.AppendInt32(0);
Message.AppendInt32(1);
if (ExtraData != "")
{
Message.AppendInt32(ExtraData.Split(Convert.ToChar(9)).Length / 2);
for (int i = 0; i <= ExtraData.Split(Convert.ToChar(9)).Length - 1; i++)
{
Message.AppendString(ExtraData.Split(Convert.ToChar(9))[i]);
}
}
else
{
Message.AppendInt32(0);
}
}
and change
Code:
if ((this.GetBaseItem().SpriteId >= 0xd2c) && (this.GetBaseItem().SpriteId < 0xd36))
Code:
else if ((this.GetBaseItem().SpriteId >= 0xd2c) && (this.GetBaseItem().SpriteId < 0xd36))
then go to StaticClientMessageHandler in messages/staticmessagehandler and put
Code:
handlers.Add(Incoming.SaveBranding, new StaticRequestHandler(SharedPacketLib.SaveBranding));
Code:
internal static void RegisterPacketLibary()
{
finish
credits: 60% to =dj.matias= for the old code 29% to Whippet 10% for the packet finding and 11% to me for findig out to put this in the new emulator + changing packets.
when i Help you ;D like + rep
sorry for my bad english i'm german
Attachments
You must be registered for see attachments list
Last edited: