
Add some Fishing things to the Fishing button
fhdfhd89 opened this issue ยท 0 comments
What version of AutoBar were you using
Version: 11.1.0.02
Hi! Thanks for a great addon, I've used it a long time, and thought I would chip in.
Could you add some things to the fishing button?
Number 1)
Oversized Bobber ItemID: 136377
It should be added to:
\AutoBar\libs\LibPeriodicTable-3.1-Tradeskill\LibPeriodicTable-3.1-Tradeskill.lua
Line 174: ["Tradeskill.Tool.Fishing.Other"]
So the line becomes:
["Tradeskill.Tool.Fishing.Other"]="85500:0,34832:10,88535:15,85973:0,136377",
Number 2)
Fishing Journal spell (to enter the profession window), to the fishing button, preferably last.
Fishing Journal SpellID: 271990
https://www.wowhead.com/spell=271990/fishing-journal
I did it like this, but I'm not sure it's the best way:
In: \AddOns\AutoBar\AutoBarButton.lua
Line 1504: Add:
self:AddCategory("Spell.FishingJournal")
So that Line 1501 - Line 1521 becomes:
function AutoBarButtonFishing.prototype:init(parentBar, buttonDB)
AutoBarButtonFishing.super.prototype.init(self, parentBar, buttonDB)
self:AddCategory("Spell.FishingJournal")
self:AddCategory("Muffin.Skill.Fishing.Bait")
self:AddCategory("Muffin.Skill.Fishing.Lure")
self:AddCategory("Muffin.Skill.Fishing.Misc")
self:AddCategory("Muffin.Skill.Fishing.Pole")
self:AddCategory("Muffin.Skill.Fishing.Rare Fish")
if (ABGData.is_mainline_wow) then
AutoBarCategoryList["Muffin.Toys.Fishing"].only_favourites = false
self:AddCategory("Muffin.Toys.Fishing")
end
self:AddCategory("Tradeskill.Tool.Fishing.Gear")
self:AddCategory("Tradeskill.Tool.Fishing.Other")
self:AddCategory("Tradeskill.Tool.Fishing.Tool")
self:AddCategory("Tradeskill.Tool.Fishing.Bait")
self:AddCategory("Spell.Fishing")
end
Then in: \AutoBar\locale\Locale-enUS.lua
Line 424: Add:
["Spell.FishingJournal"] = "Fishing Journal";
Then in: \AutoBar\retail\ABCategoryData_retail.lua
Line 465: Add:
AutoBarCategoryList["Spell.FishingJournal"] = SpellsCategory:new("Spell.FishingJournal", spellIconList["Fishing Journal"],
{
"*", code.get_spell_name_by_name("Fishing Journal"),
})
Thanks!