Skip to content

Commit

Permalink
Merge pull request #32 from GovtGeek/talent-automation
Browse files Browse the repository at this point in the history
Added talent swap automation script
  • Loading branch information
GovtGeek authored Jul 27, 2024
2 parents b4b6684 + 5060924 commit ba190db
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions OutfitterScripting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,23 @@ Outfitter.PresetScripts =
Class = "ROGUE",
Script = Outfitter:GenerateLockpickingScript(Outfitter.cLockpickingDescription),
},
{
Name = Outfitter.cTalentSwapAutomation,
ID = "TALENTSWAP",
Category = "GENERAL",
Script =
[[
-- $EVENTS ACTIVE_TALENT_GROUP_CHANGED
-- $DESC Equips event on Spec Change
-- $SETTING spec={Label="Spec", Type="Number"}
if not isEquipped and GetActiveTalentGroup() == setting.spec then
equip = true
else
return
end
]],
},
{ -- PvP Flagged
Name = Outfitter.cPvPFlaggedOutfit,
ID = "PVP_FLAGGED",
Expand Down
1 change: 1 addition & 0 deletions OutfitterStrings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Outfitter.cSpellcastOutfit = "Spellcast"
Outfitter.cRestingOutfit = "Resting"
Outfitter.cFlameLeviathanOutfit = "Flame Leviathan"
Outfitter.cQuestTurninOutfit = "Quest Turn-in"
Outfitter.cTalentSwapAutomation = "Talents changed"

Outfitter.cArgentDawnOutfitDescription = "Equips the outfit when you're in the Plaguelands"
Outfitter.cRidingOutfitDescription = "Equips the outfit when you're mounted"
Expand Down

0 comments on commit ba190db

Please sign in to comment.