Ejemplo n.º 1
0
 public static void InitPageTexts()
 {
     ContentMgr.Load <PageTextEntry>();
     foreach (PageTextEntry entry in PageTextEntry.Entries)
     {
         if (entry != null && entry.NextPageId != 0U)
         {
             entry.NextPageEntry = PageTextEntry.GetEntry(entry.NextPageId);
         }
     }
 }
Ejemplo n.º 2
0
		public static void SendPageText(Character chr, PageTextEntry entry)
		{
			var locale = chr.Locale;
			while (entry != null)
			{
				using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_PAGE_TEXT_QUERY_RESPONSE, 100))
				{
					packet.Write(entry.PageId);
					packet.Write(entry.Texts.Localize(locale));
					packet.Write(entry.NextPageId);
					chr.Send(packet);
				}
				entry = entry.NextPageEntry;
			}
		}