public override void Initialize() { if (AutoEquipSettings.ChosenWeightSet == null) { AutoEquipSettings.LoadDefaultSet(); } BotEvents.OnBotStart += BotEvents_OnBotStart; BotEvents.Player.OnLevelUp += Player_OnLevelUp; Lua.Events.AttachEvent("UNIT_INVENTORY_CHANGED", HandleLootClosed); Lua.Events.AttachEvent("LOOT_CLOSED", HandleLootClosed); Lua.Events.AttachEvent("AUTOEQUIP_BIND_CONFIRM", HandleBindConfirm); Lua.Events.AttachEvent("EQUIP_BIND_CONFIRM", HandleBindConfirm); Lua.Events.AttachEvent("LOOT_BIND_CONFIRM", HandleBindConfirm); _initialized = true; }
public AutoEquip() { AutoEquipSettings.InitializeSettings(); // If this is because of a recompile, we will be able to find the default set right now. Else we will do it again in the first pulse. :) AutoEquipSettings.LoadDefaultSet(); }