Пример #1
0
        // 업데이트
        private void Update(object sender, EventArgs e)
        {
            if (potionflag == true)
            {
                AutoPotionUpdate();
            }


            if (timerflag == true)
            {
                ti_Timer++;

                if (timer1sec == ti_Timer)
                {
                    ti_Timer = 0;
                    TimerUpdate();
                    bTimer.Update();
                }
            }

            //Debug.WriteLine(chatFlag + "  ");
            if (chatFlag == true)
            {
                ti_Chat++;


                chatdelay_ = chatDelaySelected * 1000 / timer1.Interval;

                //chatdelay_ = 5;
                //Debug.WriteLine(ti_Chat + " == " + chatdelay_);

                if (chatdelay_ == ti_Chat)
                {
                    ti_Chat = 0;

                    ChatUpdate();
                }
            }


            if (potionflag == false &&
                timerflag == false &&
                chatFlag == false)
            {
                timer1.Stop();
            }
        }