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, addEnd: false); } entry = entry.NextPageEntry; } }
public static void SendPageText(Character chr, PageTextEntry entry) { ClientLocale locale = chr.Locale; for (; entry != null; entry = entry.NextPageEntry) { using (RealmPacketOut packet = new RealmPacketOut((PacketId)RealmServerOpCode.SMSG_PAGE_TEXT_QUERY_RESPONSE, 100)) { packet.Write(entry.PageId); packet.Write(entry.Texts.Localize(locale)); packet.Write(entry.NextPageId); chr.Send(packet, false); } } }
public static void SendPageText(Character chr, uint pageId) { var entry = PageTextEntry.GetEntry(pageId); if (entry != null) { do { SendPageText(chr, entry); entry = entry.NextPageEntry; } while (entry != null); } else { using (var outPack = new RealmPacketOut(RealmServerOpCode.SMSG_PAGE_TEXT_QUERY_RESPONSE, 100)) { outPack.Write("-page is missing-"); outPack.Write(0); chr.Send(outPack, addEnd: false); } } }
public static void SendPageText(Character chr, uint pageId) { PageTextEntry entry = PageTextEntry.GetEntry(pageId); if (entry != null) { do { QueryHandler.SendPageText(chr, entry); entry = entry.NextPageEntry; } while (entry != null); } else { using (RealmPacketOut packet = new RealmPacketOut((PacketId)RealmServerOpCode.SMSG_PAGE_TEXT_QUERY_RESPONSE, 100)) { packet.Write("-page is missing-"); packet.Write(0); chr.Send(packet, false); } } }