Does somebody knows where the pressent / wrap is defined in the Phoenix source.
I found the colors in Class214.cs : loading Furni 3372 until 3381
But i can't find what sprite_id it is loading for the present it self and wrap :(
Printable View
Does somebody knows where the pressent / wrap is defined in the Phoenix source.
I found the colors in Class214.cs : loading Furni 3372 until 3381
But i can't find what sprite_id it is loading for the present it self and wrap :(
It gets the sprite id's from the database if I'm correct.
I i look in the source at the colors:
for (int i = 3372; i < 3381; i++)
and the DB :
id : 60259
Public_name : present_wrap*1
sprite_id : 3372
So it is loading the sprite_id
Anybody ?
for (int i = 3372; i < 3381; i++)..
If it's AppendInt32(i);, the sprite id = i.
For example:
for (int i = 0; i < 5; i++)
{
AppendInt32(i);
}
Would get spriteIDs 0,1,2,3 and 4.
Hopefully this helped you out. The AppendInt32 itself is the spriteID.
Hello Tha,
I understand that and that the Code 3372, 3373, 3374 etc. are for the color select.
But what i am looking for is the parmeter for the Present :
http://i40.tinypic.com/2r2x4sh.png
I told you.. the structure contains the SPRITE IDS (!!) and it will get the sprite from furnidata.
3372, 3373, 3374 are NOT(!!) for colors but those are the sprite IDs.
Look:
The gifts are the sprite IDs, the for of 7 and 11 are the extra data (colors or w/e)PHP Code:/// <summary>
/// 473 - "GY"
/// </summary>
private void GiftWrapping()
{
var Gifts = IonEnvironment.GetHabboHotel().GetCatalog().GetWrappings();
Response.Initialize(620);
Response.AppendBoolean(IonEnvironment.GiftWrappingEnabled);
if (IonEnvironment.GiftWrappingEnabled)
{
Response.AppendUInt32(IonEnvironment.GiftWrappingPrice);
Response.AppendInt32(Gifts.Count);
Enumeration.ForEach(Gifts, x => Response.AppendInt32(Convert.ToInt32(x)));
Response.AppendInt32(7);
Enumeration.For(0, 7, x => Response.AppendInt32(x));
Response.AppendInt32(11);
Enumeration.For(0, 11, x => Response.AppendInt32(x));
}
SendResponse();
}
Ah thanks i get it now :) !!