Пример #1
0
    public BossTimer AddTimer(EnemySpellInfo _spellInfo, bool _loop)
    {
        int _timer = _spellInfo.cooldown + Random.Range(0, 30);

        timer[timerAmount] = new BossTimer(timerAmount, _spellInfo, _timer, _loop, this);
        timerAmount++;
        return(timer[timerAmount - 1]);
    }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            // 관리자실행
            if (!IsRunningAsAdministrator())
            {
                ProcessStartInfo processStartInfo = new ProcessStartInfo(Assembly.GetEntryAssembly().CodeBase);
                {
                    var withBlock = processStartInfo;
                    withBlock.UseShellExecute = true;
                    withBlock.Verb            = "runas";
                    Process.Start(processStartInfo);
                    Application.Exit();
                }
            }
            else
            {
                this.Text += " " + "(Administrator)";
            }

            //프로그램 업데이트
            curProgramVersion = "1.0";
            upProgramVersion  = ProgramUpdateCheck(curProgramVersion);


            //  단축키
            this.HookedKeyboardNofity += new KeyboardHooker.HookedKeyboardUserEventHandler(Form1_HookedKeyboardNofity);
            KeyboardHooker.Hook(HookedKeyboardNofity);

            // 변수 기본값
            keyF123         = 1;
            timer1.Interval = 200;
            nextChat        = 1;
            label1.Text     = "대기중";

            versionSelected = cbVersion.SelectedItem as string;

            string[] chatDelayData = { "30", "60", "90", "120" };
            cbchatdelay.Items.AddRange(chatDelayData);
            cbchatdelay.SelectedIndex = 1;
            chatDelaySelected         = int.Parse(cbchatdelay.SelectedItem as string);


            string[] versionData = { "1902151002", "( 직접입력 )" };
            cbVersion.Items.AddRange(versionData);
            cbVersion.SelectedIndex = 0;
            hWnd = FindWindow(null, "Lineage Windows Client (" + versionSelected + ") ");
            GetWindowRect((int)hWnd, ref stRect);

            saveTopPos  = stRect.top;
            saveLeftPos = stRect.left;


            bTimer = new BossTimer();
        }
Пример #3
0
        public virtual bool OnLeaveCombat(Object mob, object args)
        {
            // save statistics
            InstanceService.SaveDeathCountPerBoss(Instance.ZoneID + ":" + Instance.ID, mob.GetInstanceBossSpawn(), PlayerDeathsCount);

            if (!mob.GetInstanceBossSpawn().IsDead)
            {
                // save statistics
                InstanceService.SaveAttemptsPerBoss(Instance.ZoneID + ":" + Instance.ID, this, 1);

                if (InstanceGroupSpawnId > 0)
                {
                    Instance.BossRespawnInstanceGroup(InstanceGroupSpawnId);
                }
            }
            else
            {
                PlayerDeathsCount = 0;

                // save statistics
                InstanceService.SaveTtkPerBoss(Instance.ZoneID + ":" + Instance.ID, this, BossTimer.Elapsed);
            }
            // Want to keep the add list on the boss instance.
            //// reset add list
            //AddDictionary = new List<Creature>();

            // reset all Modify Scalers
            ModifyDmgHealScaler = 1f;
            List <Player> plrs = GetPlayersInRange(300, false);

            foreach (Player plr in plrs)
            {
                plr.ModifyDmgHealScaler = 1f;
            }
            // reset the outgoing damage of the boss
            try
            {
                StsInterface.RemoveBonusMultiplier(GameData.Stats.OutgoingDamagePercent, 1.0f, BuffClass.Standard);
            }
            catch (Exception e)
            {
                Log.Error("Exception", e.Message + "\r\n" + e.StackTrace);
            }

            if (BossTimer != null)
            {
                BossTimer.Reset();
            }

            return(false);
        }
Пример #4
0
 void Awake()
 {
     uiManager = FindObjectOfType <UIManager> ();
     bossTimer = bossTimer_Obj.GetComponent <BossTimer> ();
     bossUIDisable.SetActive(false);
 }
Пример #5
0
 public void AddTimer(BossTimer _timer)
 {
     timer[timerAmount++] = _timer;
 }