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(); }
public Warrior(Client client, ProdMboxV2 mbox) : base(client) { this.mbox = mbox; const int viewDistanceMax = 1250; me.ExecLua($"SetCVar('farclip', {viewDistanceMax})"); }
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()); }
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"); } } } } }); }
public Druid(Client client, ProdMboxV2 mbox) : base(client) { this.mbox = mbox; }
public Rogue(Client client, ProdMboxV2 mbox) : base(client) { this.mbox = mbox; }
public Hunter(Client client, ProdMboxV2 mbox) : base(client) { this.mbox = mbox; }