public override void OnSpeech(SpeechEventArgs e)
        {
            base.OnSpeech(e);

            if (!e.Handled && InRange(e.Mobile, 3))
            {
                if (e.HasKeyword(0x30) && m_GaveNews == false)
                {
                    m_GaveNews = true;
                    this.Say(m_BroadcastMessage);
                    this.Move(GetDirectionTo(e.Mobile.Location));
                    NewsTimer t = new NewsTimer();
                    t.Start();
                }
            }
        }
示例#2
0
        //news
        private void news_Tick(object sender, EventArgs e)
        {
            //new instance nini
            IniConfigSource launcher    = new IniConfigSource("launcher.ini");
            IConfig         miscSection = launcher.Configs["Misc"];

            //Get string
            string NEWSFEEDURL = miscSection.Get("BannerUrl");

            if (NEWSFEEDURL == "" || NEWSFEEDURL == null || NEWSFEEDURL == "http://")
            {
                string news = "";
                this.news_panel.BackgroundImage = global::AionLauncher.Properties.Resources.u3jsplashblank;
                this.lblNews.Text          = news;
                this.BannerBrowser.Visible = false;
            }
            else
            {
                this.BannerBrowser.Url     = new System.Uri(NEWSFEEDURL, System.UriKind.Absolute);
                this.BannerBrowser.Visible = true;
            }
            NewsTimer.Stop();
        }