habbohotel/catalogs/Catalog.cs
search
After that:Code:case "recycler_prizes":
// Ac@aArecycler_prizesIcatalog_recycler_headline3IDe Ecotron geeft altijd een van deze beloningen:H
PageData.AppendStringWithBreak("recycler_prizes");
PageData.AppendInt32(1);
PageData.AppendStringWithBreak("catalog_recycler_headline3");
PageData.AppendInt32(1);
PageData.AppendStringWithBreak(Page.Text1);
break;
Search:Code:case "club_buy":
//aAnFBclub_buyIhc2_clubtitleHH
//IqPAYmQHABBO_CLUB_BASIC_1_MONTH{2}SCHHISGZvGSAPG[mQHABBO_CLUB_VIP_1_MONTH{2}QFHIISGZvGSAPGXnQHABBO_CLUB_VIP_3_MONTHS{2}POHIKQWZvGQBPGZmQHABBO_CLUB_BASIC_3_MONTHS{2}QKHHKQWZvGQBPG{1}
PageData.AppendStringWithBreak("club_buy");
PageData.AppendInt32(1);
PageData.AppendStringWithBreak("hc2_clubtitle");
PageData.AppendInt32(1);
break;
case "club_gifts":
//Ab`bBclub_giftsIhc2_clubtitleIEcha un vistazo a los regalos HC y VIP. Si eres HC, podrás elegir entre una selección de regalos HC. Si eres VIP, entre una selección de regalos VIP.HM
PageData.AppendStringWithBreak("club_gifts");
PageData.AppendInt32(1);
PageData.AppendStringWithBreak("hc2_clubtitle");
PageData.AppendInt32(1);
PageData.AppendStringWithBreak("Echa un vistazo a los regalos HC y VIP, si eres HC, podrías elegir entre una selección de regalos HC. Si eres VIP, entre una selección de regalos HC & VIP.");
PageData.AppendInt32(1);
break;
Add:Code:PageData.AppendInt32(Page.Items.Count);
lock (Page.Items)
{
foreach (CatalogItem Item in Page.Items)
{
Item.Serialize(PageData);
}
}
return PageData;
}
Code:public ServerMessage ClubPage()
{
// IqJ[mQHABBO_CLUB_VIP_1_MONTH{2}QFHIIROZvGPBQGXnQHABBO_CLUB_VIP_3_MONTHS{2}POHIKP_ZvGRBRG{1}
ServerMessage Club = new ServerMessage(625);
return Club;
}
Now go to messages/requests/catalog.cs
Search:
AddCode:if (Page.Layout == "recycler")
{
GetResponse().Init(507);
GetResponse().AppendBoolean(true);
GetResponse().AppendBoolean(false);
SendResponse();
}
SearchCode:if (Page.Layout == "club_buy")
{
string Encoder = "PAYmQHABBO_CLUB_BASIC_1_MONTHSCHHISGZvGSBSE[mQHABBO_CLUB_VIP_1_MONTHQFHIISGZvGSBSEXnQHABBO_CLUB_VIP_3_MONTHSPOHIKQW[vGIPFZmQHABBO_CLUB_BASIC_3_MONTHSQKHHKQW[vGIPF";
if(Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club")) {
//IqPAYnQHABBO_CLUB_UPGRADE_1RBIIHSGZvGSBPFYmQHABBO_CLUB_BASIC_1_MONTHSCHHIROZvGPCQFZmQHABBO_CLUB_BASIC_3_MONTHSQKHHKP_[vGJQF[nQHABBO_CLUB_UPGRADE_3RLIIKP\[vGJQC
Encoder = @"PAYnQHABBO_CLUB_UPGRADE_1RBIIHSGZvGSBPFYmQHABBO_CLUB_BASIC_1_MONTHSCHHIROZvGPCQFZmQHABBO_CLUB_BASIC_3_MONTHSQKHHKP_[vGJQF[nQHABBO_CLUB_UPGRADE_3RLIIKP\[vGJQC";
} else if(Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_vip")) {
// IqPAYmQHABBO_CLUB_BASIC_1_MONTHSCHHISGZvGSBSE[mQHABBO_CLUB_VIP_1_MONTHQFHIISGZvGSBSEXnQHABBO_CLUB_VIP_3_MONTHSPOHIKQW[vGIPFZmQHABBO_CLUB_BASIC_3_MONTHSQKHHKQW[vGIPF
Encoder = "J[mQHABBO_CLUB_VIP_1_MONTHQFHIIQY[vGJIXnQHABBO_CLUB_VIP_3_MONTHSPOHIKSh[vGPAPA";
} else {
// IqPAYmQHABBO_CLUB_BASIC_1_MONTHSCHHISGZvGSBSE[mQHABBO_CLUB_VIP_1_MONTHQFHIISGZvGSBSEXnQHABBO_CLUB_VIP_3_MONTHSPOHIKQW[vGIPFZmQHABBO_CLUB_BASIC_3_MONTHSQKHHKQW[vGIPF
Encoder = "PAYmQHABBO_CLUB_BASIC_1_MONTHSCHHISGZvGSBSE[mQHABBO_CLUB_VIP_1_MONTHQFHIISGZvGSBSEXnQHABBO_CLUB_VIP_3_MONTHSPOHIKQW[vGIPFZmQHABBO_CLUB_BASIC_3_MONTHSQKHHKQW[vGIPF";
}
GetResponse().Init(625);
GetResponse().AppendString(Encoder);
SendResponse();
}
if (Page.Layout == "club_gifts")
{
//
GetResponse().Init(623);
GetResponse().AppendString(@"PCJPF[dQhc2_sofaIHIsXXLIMZdQhc3_sofaIHIs[WLIM[eQhc2_sofatblIHIsXYLIMZfQhc3_tableIHIs[YLIMXbQhc2_biglampIHIsYULIMY^Qhc3_bardIHIsZQLIMX_Qhc2_cartIHIsYRLIMXaQhc3_lightIHIsYTLIMXdQhc2_vaseIHIsYWLIMYbQhc3_dcIHIsZULIMZ]Qhc2_dividerIHIs[PLIMYfQhc3_shelfIHIsZYLIMZ_Qhc2_carpetIHIs[RLIMYdQhc3_stoolIHIsZWLIMXeQhc2_dvnIHIsYXLIMY]Qhc3_dividerIHIsZPLIM[cQhc2_coffeeIHIsXWLIMY`Qhc3_hugelampIHIsZSLIM[bQhc2_frplcIHIsXVLIMXhQhc3_walldecoIHIiYPIM[_Qhc2_barchairIHIsXSLIMXrQhc3_stereoIHIs[\LIMX`Qhc2_armchairIHIsYSLIMYoQhc3_vaseIHIsXZLIMPF[dQHIIZdQIII[eQHPHHZfQIPHHXbQHSOHY^QISOHX_QHRWHXaQIRWHXdQHQ_HYbQIQ_HZ]QHPgHYfQIPgHZ_QHSnHYdQISnHXeQHRvHY]QIRvH[cQHQ~HY`QIQ~H[bQHXFAHXhQIXFAH[_QH[MAHXrQI[MAHX`QHZUAHYoQIZUAH");
SendResponse();
}
AddCode:private void CheckPetName()
{
Session.GetMessageHandler().GetResponse().Init(36);
Session.GetMessageHandler().GetResponse().AppendInt32(UberEnvironment.GetGame().GetCatalog().CheckPetName(Request.PopFixedString()) ? 0 : 2);
Session.GetMessageHandler().SendResponse();
}
Thank me if I helped you.Code:
private void CheckClub()
{
int PageId = Request.PopWiredInt32();
uint ItemId = Request.PopWiredUInt();
string ExtraData = Request.PopFixedString();
if(ItemId == 4536) {
UpgradeVIP(7776000);
Session.GetHabbo().Credits = Session.GetHabbo().Credits - 60;
Session.GetHabbo().UpdateCreditsBalance(true);
} else if(ItemId == 4535) {
UpgradeVIP(2592000);
Session.GetHabbo().Credits = Session.GetHabbo().Credits - 25;
Session.GetHabbo().UpdateCreditsBalance(true);
} else if(ItemId == 4533) {
UpgradeClub(2592000);
Session.GetHabbo().Credits = Session.GetHabbo().Credits - 15;
Session.GetHabbo().UpdateCreditsBalance(true);
} else if(ItemId == 4534) {
UpgradeClub(7776000);
Session.GetHabbo().Credits = Session.GetHabbo().Credits - 45;
Session.GetHabbo().UpdateCreditsBalance(true);
} else if(ItemId == 4537) {
UpgradeVIP(2592000);
Session.GetHabbo().Credits = Session.GetHabbo().Credits - 10;
Session.GetHabbo().UpdateCreditsBalance(true);
} else if(ItemId == 4539) {
UpgradeVIP(7776000);
Session.GetHabbo().Credits = Session.GetHabbo().Credits - 50;
Session.GetHabbo().UpdateCreditsBalance(true);
}
UberEnvironment.GetGame().GetCatalog().HandlePurchase(Session, PageId, ItemId, ExtraData, false, "", "");
}
private void UpgradeClub(int seconds)
{
Session.GetHabbo().GetSubscriptionManager().AddOrExtendSubscription("habbo_club", seconds);
if (!Session.GetHabbo().GetBadgeComponent().HasBadge("HC1"))
{
Session.GetHabbo().GetBadgeComponent().GiveBadge("HC1", true);
}
Session.GetMessageHandler().GetResponse().Init(7);
Session.GetMessageHandler().GetResponse().AppendStringWithBreak("habbo_club");
if (Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
{
Double Expire = Session.GetHabbo().GetSubscriptionManager().GetSubscription("habbo_club").ExpireTime;
Double TimeLeft = Expire - UberEnvironment.GetUnixTimestamp();
int TotalDaysLeft = (int)Math.Ceiling(TimeLeft / 86400);
int MonthsLeft = TotalDaysLeft / 31;
if (MonthsLeft >= 1) MonthsLeft--;
Session.GetMessageHandler().GetResponse().AppendInt32(TotalDaysLeft - (MonthsLeft * 31));
Session.GetMessageHandler().GetResponse().AppendBoolean(false);
Session.GetMessageHandler().GetResponse().AppendInt32(MonthsLeft);
Session.GetMessageHandler().GetResponse().AppendInt32(TotalDaysLeft - (MonthsLeft * 31));
Session.GetMessageHandler().GetResponse().AppendBoolean(true);
}
else
{
for (int i = 0; i < 3; i++)
{
Session.GetMessageHandler().GetResponse().AppendInt32(0);
}
}
Session.GetMessageHandler().SendResponse();
List<string> Rights = UberEnvironment.GetGame().GetRoleManager().GetRightsForHabbo(Session.GetHabbo());
Session.GetMessageHandler().GetResponse().Init(2);
Session.GetMessageHandler().GetResponse().AppendInt32(Rights.Count);
foreach (string Right in Rights)
{
Session.GetMessageHandler().GetResponse().AppendStringWithBreak(Right);
}
Session.GetMessageHandler().SendResponse();
}
private void UpgradeVIP(int seconds)
{
Session.GetHabbo().GetSubscriptionManager().AddOrExtendSubscription("habbo_vip", seconds);
if (!Session.GetHabbo().GetBadgeComponent().HasBadge("ACH_VipClub1"))
{
Session.GetHabbo().GetBadgeComponent().GiveBadge("ACH_VipClub1", true);
}
Session.GetMessageHandler().GetResponse().Init(7);
Session.GetMessageHandler().GetResponse().AppendStringWithBreak("habbo_vip");
if (Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_vip"))
{
Double Expire = Session.GetHabbo().GetSubscriptionManager().GetSubscription("habbo_vip").ExpireTime;
Double TimeLeft = Expire - UberEnvironment.GetUnixTimestamp();
int TotalDaysLeft = (int)Math.Ceiling(TimeLeft / 86400);
int MonthsLeft = TotalDaysLeft / 31;
if (MonthsLeft >= 1) MonthsLeft--;
Session.GetMessageHandler().GetResponse().AppendInt32(TotalDaysLeft - (MonthsLeft * 31));
Session.GetMessageHandler().GetResponse().AppendBoolean(false);
Session.GetMessageHandler().GetResponse().AppendInt32(MonthsLeft);
Session.GetMessageHandler().GetResponse().AppendInt32(TotalDaysLeft - (MonthsLeft * 31));
Session.GetMessageHandler().GetResponse().AppendBoolean(true);
Session.GetMessageHandler().GetResponse().AppendBoolean(true);
}
else
{
for (int i = 0; i < 3; i++)
{
Session.GetMessageHandler().GetResponse().AppendInt32(0);
}
}
Session.GetMessageHandler().SendResponse();
List<string> Rights = UberEnvironment.GetGame().GetRoleManager().GetRightsForHabbo(Session.GetHabbo());
Session.GetMessageHandler().GetResponse().Init(2);
Session.GetMessageHandler().GetResponse().AppendInt32(Rights.Count);
foreach (string Right in Rights)
{
Session.GetMessageHandler().GetResponse().AppendStringWithBreak(Right);
}
Session.GetMessageHandler().SendResponse();
}
public void PurchaseGiftVIP()
{
int PageId = Request.PopWiredInt32();
uint ItemId = Request.PopWiredUInt();
string ExtraData = Request.PopFixedString();
UberEnvironment.GetLogging().WriteLine("[Packet de Compra: ID:" + ItemId + ", Pagina: " + PageId + ", Extradata: " + ExtraData + "]");
Session.GetHabbo().GetInventoryComponent().AddItem(ItemId, ItemId , ExtraData);
}
Now go to your database.
Go to catalog_pages -> Structure -> Edit page_layout
Change
inCode:'default_3x3','frontpage','spaces','recycler','recycler_info','recycler_prizes','trophies','plasto','marketplace','marketplace_own_items','pets','pets2'
By club_gifts page choose club_gifts and by club_buy page choose club_buy.Code:'default_3x3','frontpage','spaces','recycler','recycler_info','recycler_prizes','trophies','plasto','marketplace','marketplace_own_items','pets','pets2','club_buy','club_gifts'
Remember: THank me if I helped you.

