Hi again xD
I fixed the gifts the mode anonymous and I will share this!
1- Open the file PurchaseFromCatalogAsGiftEvent.cs
Search if u have some packet boolean. If not insert like this:
Add this:
I fixed the gifts the mode anonymous and I will share this!
1- Open the file PurchaseFromCatalogAsGiftEvent.cs
Search if u have some packet boolean. If not insert like this:
You must be registered for see images attach
Add this:
Code:
bool Anonymous = Packet.PopBoolean();
int UserId;
Now search " Session.SendMessage(new GiftWrappingErrorComposer()); " and add after return; } add this:
C#:
if (!Anonymous)
{
GiftUser = "Gift Anonymous";
UserId = 0;
}
else
{
GiftUser = Session.GetHabbo().Username;
UserId = Session.GetHabbo().Id;
}
print if you don't understand
Now search for " string ED = " and replace with this:
2- Open the file OpenGiftEvent.cs and search " UserCache Purchaser = " . After if (Purchaser == null) replace with this:
print if you don't understand again xd
3- Open the file ItemBehaviourUtility.cs and search " case InteractionType.GIFT: " and replace with this:
You must be registered for see images attach
Now search for " string ED = " and replace with this:
Code:
string ED = GiftUser + Convert.ToChar(5) + " " + GiftMessage + Convert.ToChar(5) + UserId + Convert.ToChar(5) + Item.Data.Id + Convert.ToChar(5) + SpriteId + Convert.ToChar(5) + Ribbon + Convert.ToChar(5) + Colour;
2- Open the file OpenGiftEvent.cs and search " UserCache Purchaser = " . After if (Purchaser == null) replace with this:
Code:
if (Purchaser == null && PurchaserId != 0)
print if you don't understand again xd
You must be registered for see images attach
3- Open the file ItemBehaviourUtility.cs and search " case InteractionType.GIFT: " and replace with this:
C#:
case InteractionType.GIFT:
{
string[] ExtraData = Item.ExtraData.Split(Convert.ToChar(5));
if (ExtraData.Length != 7)
{
Message.WriteInteger(0);
Message.WriteInteger(0);
Message.WriteString(Item.ExtraData);
}
else
{
int Style = int.Parse(ExtraData[6]) * 1000 + int.Parse(ExtraData[6]);
UserCache Purchaser = SaturnEnvironment.GetGame().GetCacheManager().GenerateUser(Convert.ToInt32(ExtraData[2]));
if (Purchaser == null)
{
Message.WriteInteger(0);
Message.WriteInteger(0);
Message.WriteString(ExtraData[1]);
}
else
{
Message.WriteInteger(Style);
Message.WriteInteger(1);
Message.WriteInteger(6);
Message.WriteString("EXTRA_PARAM");
Message.WriteString("");
Message.WriteString("MESSAGE");
Message.WriteString(ExtraData[1]);
Message.WriteString("PURCHASER_NAME");
Message.WriteString(Purchaser != null ? Purchaser.Username : "");
Message.WriteString("PURCHASER_FIGURE");
Message.WriteString(Purchaser != null ? Purchaser.Look : "");
Message.WriteString("PRODUCT_CODE");
Message.WriteString("A1 KUMIANKKA");
Message.WriteString("state");
Message.WriteString(Item.MagicRemove == true ? "1" : "0");
}
}
break;
}
You must be registered for see images attach
I think is all already now. Debug the project and test. If don't work tell me
CREDITS:
Snaiker (Pollak)
Last edited: