Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void GetCatalogPage()
- {
- int pageID = Request.PopWiredInt32();
- List<CatalogPage> cPage = Ion.LimeEnvironment.GetHabboHotel().GetCatalog().CataPage(pageID);
- Response.Initialize(ResponseOpcodes.CatalogPage);
- //Response.AppendInt32(pageID);
- Response.AppendString("ai", 127);
- Response.Append("G");
- foreach (CatalogPage cataPage in cPage)
- {
- if (cataPage.Layout != "")
- {
- Response.AppendString(cataPage.Layout);
- Response.AppendInt32(3);
- Response.AppendString(cataPage.ImgHeader);
- Response.AppendString(cataPage.ImgSide);
- if (cataPage.LabelText != "")
- Response.AppendString("catalog_special_txtbg2");
- else
- Response.Append(Convert.ToChar(2));
- Response.AppendInt32(3);
- Response.AppendString(cataPage.LabelDesc);
- Response.AppendString(cataPage.MoreDetails);
- Response.AppendString(cataPage.LabelText);
- }
- else if (cataPage.Layout == "")
- {
- Response.Append(cataPage.HeaderElse);
- Response.Append(cataPage.ContentElse);
- }
- SendResponse();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement