Esempio n. 1
0
        public void OnEnter(L2Player player)
        {
            if ((Announcements == null) || (Announcements.Count == 0))
            {
                return;
            }

            CreatureSay cs = new CreatureSay(SayIDList.CHAT_ANNOUNCE);

            foreach (AnnouncementContract announcement in Announcements.Where(announcement => announcement.Type == 0))
            {
                cs.Text = announcement.Text;
                player.SendPacket(cs);
            }
        }