Esempio n. 1
0
            public Warlock(Client client, ProdMboxV2 mbox) : base(client)
            {
                this.mbox = mbox;

                me.LuaEventListener.Bind("PET_BAR_UPDATE", args =>
                {
                    if (me.GetObjectMgrAndPlayer())
                    {
                        try
                        {
                            SetCurrentPet();
                        }
                        catch (Exception e)
                        {
                            Console.WriteLine($"Exception happened while processing GetCurrentPetType:\n{e.Message}");
                        }
                        finally
                        {
                            Console.WriteLine($"Current Warlock pet type: {currentPet.type}");
                        }
                    }
                });

                SetCurrentPet();
            }
Esempio n. 2
0
            public Warrior(Client client, ProdMboxV2 mbox) : base(client)
            {
                this.mbox = mbox;

                const int viewDistanceMax = 1250;

                me.ExecLua($"SetCVar('farclip', {viewDistanceMax})");
            }
Esempio n. 3
0
            public PriestV2(Client client, ProdMboxV2 mbox) : base(client)
            {
                this.mbox = mbox;

                var clientsCount = mbox.clients.Count();

                LowHealthPlayers    = new List <GameObject>(clientsCount);
                MidHealthPlayers    = new List <GameObject>(clientsCount);
                SteadyHealthPlayers = new List <GameObject>(clientsCount);

                me.LuaEventListener.Bind("SPELLS_CHANGED", args => RefreshSpellIds());
            }
Esempio n. 4
0
            public Shaman(Client client, ProdMboxV2 mbox) : base(client)
            {
                this.mbox = mbox;

                me.LuaEventListener.Bind("SPELL_AURA_REMOVED", args =>
                {
                    if (mbox.slavesAI)
                    {
                        long destGuid = Convert.ToInt64(args.Args[5], 16);
                        if (destGuid == me.Player.GUID)
                        {
                            var auraName = args.Args[9];
                            if (auraName == "Bloodlust" || auraName == "Power Infusion")
                            {
                                if (me.GetObjectMgrAndPlayer() && me.Player.IsInCombat())
                                {
                                    /* continue burst after boost expired */
                                    me.CastSpell("Elemental Mastery");
                                }
                            }
                        }
                    }
                });
            }
Esempio n. 5
0
 public Druid(Client client, ProdMboxV2 mbox) : base(client)
 {
     this.mbox = mbox;
 }
Esempio n. 6
0
 public Rogue(Client client, ProdMboxV2 mbox) : base(client)
 {
     this.mbox = mbox;
 }
Esempio n. 7
0
 public Hunter(Client client, ProdMboxV2 mbox) : base(client)
 {
     this.mbox = mbox;
 }