Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.47 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.AppendInt32(pageID);
  8.             Response.AppendString("ai", 127);
  9.             Response.Append("G");
  10.             foreach (CatalogPage cataPage in cPage)
  11.             {
  12.                 if (cataPage.Layout != "")
  13.                 {
  14.                     Response.AppendString(cataPage.Layout);
  15.                     Response.AppendInt32(3);
  16.                     Response.AppendString(cataPage.ImgHeader);
  17.                     Response.AppendString(cataPage.ImgSide);
  18.  
  19.                     if (cataPage.LabelText != "")
  20.                         Response.AppendString("catalog_special_txtbg2");
  21.                     else
  22.                         Response.Append(Convert.ToChar(2));
  23.  
  24.                     Response.AppendInt32(3);
  25.                     Response.AppendString(cataPage.LabelDesc);
  26.                     Response.AppendString(cataPage.MoreDetails);
  27.                     Response.AppendString(cataPage.LabelText);
  28.                 }
  29.                 else if (cataPage.Layout == "")
  30.                 {
  31.                     Response.Append(cataPage.HeaderElse);
  32.                     Response.Append(cataPage.ContentElse);
  33.                 }
  34.                 SendResponse();
  35.             }
  36.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement