Uber / Hang Glider Rare Pets

Results 1 to 7 of 7
  1. #1
    Grand Master George2000 is offline
    Grand MasterRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Uber / Hang Glider Rare Pets

    Today, I just made rare pets, I was very bored. No badge buy or whatsoever.

    In Messages/Requests/Catalog.cs find:
    This is taken from hang glider but Uber is similar.

    Code:
                           else if (Page.Layout == "club_gifts")
                {
                    #region Gift Packet
                    // IoISAPF[dQhc2_sofa{2}IHHIs{2}XXL{2}IMZdQhc3_sofa{2}IHHIs{2}[WL{2}IM[eQhc2_sofatbl{2}IHHIs{2}XYL{2}IMZfQhc3_table{2}IHHIs{2}[YL{2}IMXbQhc2_biglamp{2}IHHIs{2}YUL{2}IMY^Qhc3_bard{2}IHHIs{2}ZQL{2}IMX_Qhc2_cart{2}IHHIs{2}YRL{2}IMXaQhc3_light{2}IHHIs{2}YTL{2}IMXdQhc2_vase{2}IHHIs{2}YWL{2}IMYbQhc3_dc{2}IHHIs{2}ZUL{2}IMZ]Qhc2_divider{2}IHHIs{2}[PL{2}IMYfQhc3_shelf{2}IHHIs{2}ZYL{2}IMZ_Qhc2_carpet{2}IHHIs{2}[RL{2}IMYdQhc3_stool{2}IHHIs{2}ZWL{2}IMXeQhc2_dvn{2}IHHIs{2}YXL{2}IMY]Qhc3_divider{2}IHHIs{2}ZPL{2}IM[cQhc2_coffee{2}IHHIs{2}XWL{2}IMY`Qhc3_hugelamp{2}IHHIs{2}ZSL{2}IM[bQhc2_frplc{2}IHHIs{2}XVL{2}IMXhQhc3_walldeco{2}IHHIi{2}YP{2}IM[_Qhc2_barchair{2}IHHIs{2}XSL{2}IMXrQhc3_stereo{2}IHHIs{2}[\L{2}IMX`Qhc2_armchair{2}IHHIs{2}YSL{2}IMYoQhc3_vase{2}IHHIs{2}XZL{2}IMPF[dQHIIZdQIII[eQHPHIZfQIPHIXbQHSOIY^QISOIX_QHRWIXaQIRWIXdQHQ_IYbQIQ_IZ]QHPgIYfQIPgIZ_QHSnIYdQISnIXeQHRvIY]QIRvI[cQHQ~IY`QIQ~I[bQHXFAIXhQIXFAI[_QH[MAIXrQI[MAIX`QHZUAIYoQIZUAH{1}
                    ServerMessage ClubPage = new ServerMessage(623);
                    int Months = 0;
                    int TotalDaysLeft = 0;
                    if (Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club") || Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_vip"))
                    {
                        string Club = "habbo_club";
                        if (Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_vip"))
                            Club = "habbo_vip";
                        Subscription HabboClub = Session.GetHabbo().GetSubscriptionManager().GetSubscription(Club);
                        Double Initial = HabboClub.InitialTime;
                        Double TimeLeft = HangEnvironment.GetUnixTimestamp() - Initial;
                        TotalDaysLeft = (int)Math.Ceiling(TimeLeft / 86400);
                        int MonthsLeft = TotalDaysLeft / 31;
                        Months = (MonthsLeft - HabboClub.Gifts) + HabboClub.Days;
                    }
                    ClubPage.AppendInt32(-1);
                    ClubPage.AppendInt32(Months);
                    // PM [dQ
                    using (DatabaseClient dbClient = HangEnvironment.GetDatabase().GetClient())
                    {
                        DataRow GetGifts = dbClient.ReadDataRow("SELECT * FROM club_gifts");
                        ClubPage.AppendInt32(GetGifts.Table.Rows.Count); // Count Items
                        foreach (DataRow Data in GetGifts.Table.Rows)
                        {
                            ClubPage.AppendInt32((int)Data["id"]); // Item Id (no important what)
                            ClubPage.AppendStringWithBreak(Data["name"].ToString()); // Item Name
                            ClubPage.AppendBoolean(true); // some value
                            ClubPage.AppendBoolean(false); // some value
                            ClubPage.AppendBoolean(false); // some value
                            ClubPage.AppendBoolean(true); // some value
                            ClubPage.AppendStringWithBreak(Data["type"].ToString()); // Type
                            ClubPage.AppendInt32((int)Data["spriteid"]); // SpriteID
                            ClubPage.AppendStringWithBreak(""); // Char
                            ClubPage.AppendInt32(1); // Boolean true (no important)
                            ClubPage.AppendInt32(-1); // Negative M Value
                            ClubPage.AppendInt32((int.Parse(Data["is_vip"].ToString()))); // Is VIP Item?
                        }
                        // Sistem of evaluate
                        ClubPage.AppendInt32(GetGifts.Table.Rows.Count); // Count Again
                        foreach (DataRow Data in GetGifts.Table.Rows)
                        {
                            ClubPage.AppendInt32((int)Data["id"]); // Item Id (no important what)
                            ClubPage.AppendInt32(int.Parse(Data["is_vip"].ToString())); // Is VIP Item?
                            ClubPage.AppendInt32((int)Data["days"]); // Days to get
                            if (TotalDaysLeft >= (int)Data["days"])
                            {
                                if (int.Parse(Data["is_vip"].ToString()) == 1 && Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_vip"))
                                    ClubPage.AppendBoolean(true); // Enable?
                                else if (int.Parse(Data["is_vip"].ToString()) == 0 && Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club") || int.Parse(Data["is_vip"].ToString()) == 0 && Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_vip"))
                                    ClubPage.AppendBoolean(true); // Enable?
                                else
                                    ClubPage.AppendBoolean(false); // Enable?
                            }
                            else
                                ClubPage.AppendBoolean(false); // Enable?
                        }
                    }
                    Session.SendMessage(ClubPage);
                    #endregion
                }
    Add after it:

    Code:
                if (Page.Caption == "Rare Spider" || Page.Caption == "Rare Turtle" || Page.Caption == "Rare Frog" || Page.Caption == "Rare Dragon")
                {
                    #region Races
    
                    GetResponse().Init(827);
    
                    #region Rare Spider
                    if (Page.Caption == "Rare Spider")
                    {
                        GetResponse().AppendStringWithBreak("a0 pet8");
                        GetResponse().AppendInt32(1);
                            GetResponse().AppendInt32(8);
                            GetResponse().AppendInt32(14);
                            GetResponse().AppendBoolean(true);
                            GetResponse().AppendBoolean(false);
    
                        SendResponse();
                    }
                    #endregion
    
                    #region Rare Turtle
                    if (Page.Caption == "Rare Turtle")
                    {
                        GetResponse().AppendStringWithBreak("a0 pet9");
                        GetResponse().AppendInt32(1);
                        GetResponse().AppendInt32(9);
                        GetResponse().AppendInt32(10);
                        GetResponse().AppendBoolean(true);
                        GetResponse().AppendBoolean(false);
    
                        SendResponse();
                    }
                    #endregion
    
                    #region Rare Frog
                    if (Page.Caption == "Rare Frog")
                    {
                        GetResponse().AppendStringWithBreak("a0 pet11");
                        GetResponse().AppendInt32(1);
                        GetResponse().AppendInt32(11);
                        GetResponse().AppendInt32(14);
                        GetResponse().AppendBoolean(true);
                        GetResponse().AppendBoolean(false);
    
                        SendResponse();
                    }
                    #endregion
    
                    #region Rare Dragon
                    if (Page.Caption == "Rare Dragon")
                    {
                        GetResponse().AppendStringWithBreak("a0 pet12");
                        GetResponse().AppendInt32(1);
                        GetResponse().AppendInt32(12);
                        GetResponse().AppendInt32(7);
                        GetResponse().AppendBoolean(true);
                        GetResponse().AppendBoolean(false);
    
                        SendResponse();
                    }
                    #endregion
    
                    #endregion
                }
    Now make a new catalogue page with one of these four captions and it would work

    Like me for my 'hard' work for finding out, it'll always help!
    Last edited by George2000; 15-10-11 at 08:47 AM.


  2. #2
    Grand Master American is offline
    Grand MasterRank
    Sep 2011 Join Date
    WeedlandLocation
    658Posts

    Re: Uber / Hang Glider Rare Pets

    Oh thanks bro <3

  3. #3
    Grand Master Danny is offline
    Grand MasterRank
    Oct 2011 Join Date
    My PCLocation
    2,158Posts

    Re: Uber / Hang Glider Rare Pets

    Wow nice. Hope to see more releases like this. 10/10

  4. #4
    Grand Master George2000 is offline
    Grand MasterRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Re: Uber / Hang Glider Rare Pets

    Quote Originally Posted by LattixEmu View Post
    Wow nice. Hope to see more releases like this. 10/10
    Thanks, and maybe a completed Wubbo? *laugh*

  5. #5
    Grand Master Pookie is offline
    Grand MasterRank
    Mar 2011 Join Date
    1,038Posts

    Re: Uber / Hang Glider Rare Pets

    Very nice.

  6. #6
    Newbie DoraemonKM is offline
    MemberRank
    Jul 2011 Join Date
    18Posts

    Re: Uber / Hang Glider Rare Pets

    if you public the sql code, you are the best ^^

    ---------- Post added at 07:37 AM ---------- Previous post was at 07:30 AM ----------

    this code have 1 bug, in the last part of the code

    you repit this:

    if (Page.Caption == "Rare Spider")
    {
    GetResponse().AppendStringWithBreak("a0 pet12");
    GetResponse().AppendInt32(1);
    GetResponse().AppendInt32(12);
    GetResponse().AppendInt32(7);
    GetResponse().AppendBoolean(true);
    GetResponse().AppendBoolean(false);

    SendResponse();
    }
    #endregion

    change

    if (Page.Caption == "Rare Spider")

    to

    if (Page.Caption == "Rare Dragon")

    thanks ;)

  7. #7
    Grand Master George2000 is offline
    Grand MasterRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Re: Uber / Hang Glider Rare Pets

    Quote Originally Posted by DoraemonKM View Post
    if you public the sql code, you are the best ^^

    ---------- Post added at 07:37 AM ---------- Previous post was at 07:30 AM ----------

    this code have 1 bug, in the last part of the code

    you repit this:

    if (Page.Caption == "Rare Spider")
    {
    GetResponse().AppendStringWithBreak("a0 pet12");
    GetResponse().AppendInt32(1);
    GetResponse().AppendInt32(12);
    GetResponse().AppendInt32(7);
    GetResponse().AppendBoolean(true);
    GetResponse().AppendBoolean(false);

    SendResponse();
    }
    #endregion

    change

    if (Page.Caption == "Rare Spider")

    to

    if (Page.Caption == "Rare Dragon")

    thanks ;)
    I was tired, thanks for saying the bug :)



Advertisement