Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.42 KB | None | 0 0
  1.         private void GetCatalogPage()
  2.         {
  3.             int pageID = Request.PopWiredInt32();
  4.             List<CatalogPage> cPage = Ion.LimeEnvironment.GetHabboHotel().GetCatalog().CataPage(pageID);
  5.  
  6.             Response.Initialize(ResponseOpcodes.CatalogPage);
  7.             Response.AppendString("ai", 127);
  8.             Response.Append("G");
  9.             foreach (CatalogPage cataPage in cPage)
  10.             {
  11.                 if (cataPage.Layout != "")
  12.                 {
  13.                     Response.AppendString(cataPage.Layout);
  14.                     Response.AppendInt32(3);
  15.                     Response.AppendString(cataPage.ImgHeader);
  16.                     Response.AppendString(cataPage.ImgSide);
  17.  
  18.                     if (cataPage.LabelText != "")
  19.                         Response.AppendString("catalog_special_txtbg2");
  20.                     else
  21.                         Response.Append(Convert.ToChar(2));
  22.  
  23.                     Response.AppendInt32(3);
  24.                     Response.AppendString(cataPage.LabelDesc);
  25.                     Response.AppendString(cataPage.MoreDetails);
  26.                     Response.AppendString(cataPage.LabelText);
  27.                 }
  28.                 else if (cataPage.Layout == "")
  29.                 {
  30.                     Response.Append(cataPage.HeaderElse);
  31.                     Response.Append(cataPage.ContentElse);
  32.                 }
  33.                 SendResponse();
  34.             }
  35.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement