Exemplo n.º 1
0
        public void OnEnabled()
        {
            var level = ZetaDia.Service.CurrentHero.Level;
            _name = ZetaDia.Service.CurrentHero.Name;
            _heroClass = ZetaDia.Service.CurrentHero.Class;

            Logging.Write("[WatchFox] watching " + _name + ": lvl " + level + " " + _heroClass + " @ " + ZetaDia.Service.CurrentHero.CurrentDifficulty);

            _sender = new SocketEventSender();

            SubscribeEvents();

            _sender.Enable();

            Logging.Write("WatchFox " + Version +" enabled");
        }
Exemplo n.º 2
0
        public void OnEnabled()
        {
            var level = ZetaDia.Service.CurrentHero.Level;

            _name      = ZetaDia.Service.CurrentHero.Name;
            _heroClass = ZetaDia.Service.CurrentHero.Class;

            Logging.Write("[WatchFox] watching " + _name + ": lvl " + level + " " + _heroClass + " @ " + ZetaDia.Service.CurrentHero.CurrentDifficulty);

            _sender = new SocketEventSender();

            SubscribeEvents();

            _sender.Enable();

            Logging.Write("WatchFox " + Version + " enabled");
        }
Exemplo n.º 3
0
        public void OnEnabled()
        {
            var level = ZetaDia.Service.CurrentHero.Level;

            _name      = ZetaDia.Service.CurrentHero.Name;
            _heroClass = ZetaDia.Service.CurrentHero.Class;

            Logging.Write("[WatchFox] watching " + _name + ": lvl " + level + " " + _heroClass + " @ " + ZetaDia.Service.CurrentHero.CurrentDifficulty);

            _sender = new SocketEventSender();

            BotMain.OnStart         += Start;
            BotMain.OnStop          += Stop;
            GameEvents.OnLevelUp    += OnLevelUp;
            GameEvents.OnItemLooted += OnItemLooted;
            GameEvents.OnGameJoined += OnGameJoined;
            GameEvents.OnGameLeft   += OnGameLeft;

            _sender.Enable();

            Logging.Write("WatchFox " + Version + " enabled");
        }
Exemplo n.º 4
0
        public void OnEnabled()
        {
            var level = ZetaDia.Service.CurrentHero.Level;
            _name = ZetaDia.Service.CurrentHero.Name;
            _heroClass = ZetaDia.Service.CurrentHero.Class;

            Logging.Write("[WatchFox] watching " + _name + ": lvl " + level + " " + _heroClass + " @ " + ZetaDia.Service.CurrentHero.CurrentDifficulty);

            _sender = new SocketEventSender();

            BotMain.OnStart += Start;
            BotMain.OnStop += Stop;
            GameEvents.OnLevelUp += OnLevelUp;
            GameEvents.OnItemLooted += OnItemLooted;
            GameEvents.OnGameJoined += OnGameJoined;
            GameEvents.OnGameLeft += OnGameLeft;

            _sender.Enable();

            Logging.Write("WatchFox " + Version +" enabled");
        }