Phoenix 3.11 Source

Results 1 to 8 of 8
  1. #1
    Sorcerer Supreme duckietm is offline
    Member +Rank
    Oct 2010 Join Date
    339Posts

    Phoenix 3.11 Source

    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 :(


  2. #2
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    Re: Phoenix 3.11 Source

    It gets the sprite id's from the database if I'm correct.

  3. #3
    Sorcerer Supreme duckietm is offline
    Member +Rank
    Oct 2010 Join Date
    339Posts

    Re: Phoenix 3.11 Source

    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

  4. #4
    Sorcerer Supreme duckietm is offline
    Member +Rank
    Oct 2010 Join Date
    339Posts

    Re: Phoenix 3.11 Source

    Anybody ?

  5. #5
    Grand Master Emily is offline
    Grand MasterRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: Phoenix 3.11 Source

    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.

  6. #6
    Sorcerer Supreme duckietm is offline
    Member +Rank
    Oct 2010 Join Date
    339Posts

    Re: Phoenix 3.11 Source

    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 :


  7. #7
    Grand Master Emily is offline
    Grand MasterRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: Phoenix 3.11 Source

    Quote Originally Posted by duckietm View Post
    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 :

    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:

    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=> Response.AppendInt32(Convert.ToInt32(x)));

                    
    Response.AppendInt32(7);
                    
                    
    Enumeration.For(07=> Response.AppendInt32(x));

                    
    Response.AppendInt32(11);

                    
    Enumeration.For(011=> Response.AppendInt32(x));
                }

                
    SendResponse();
            } 
    The gifts are the sprite IDs, the for of 7 and 11 are the extra data (colors or w/e)

  8. #8
    Sorcerer Supreme duckietm is offline
    Member +Rank
    Oct 2010 Join Date
    339Posts

    Re: Phoenix 3.11 Source

    Ah thanks i get it now :) !!



Advertisement