Esempio n. 1
0
 private static void ValueChanged(bool enabled)
 {
     if (enabled)
     {
         SpawnBoxes.Draw();
     }
     else
     {
         SpawnBoxes.Clear();
     }
 }
Esempio n. 2
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (!Utils.SleepCheck("anotherSpawnBoxes"))
            {
                return;
            }

            if (!inGame)
            {
                if (!Game.IsInGame || ObjectMgr.LocalHero == null)
                {
                    Utils.Sleep(1000, "anotherSpawnBoxes");
                    return;
                }

                SpawnBoxes.Clear();

                if (Menu.Item("enabled").GetValue <bool>())
                {
                    SpawnBoxes.Draw();
                }

                inGame = true;
            }

            if (!Game.IsInGame)
            {
                inGame = false;
                return;
            }

            if (Menu.Item("enabledB").GetValue <bool>())
            {
                SpawnBoxes.BlockCheck();
                Utils.Sleep(250, "anotherSpawnBoxes");
            }
            else
            {
                Utils.Sleep(2000, "anotherSpawnBoxes");
            }
        }