You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
282 lines
12 KiB
282 lines
12 KiB
local _, T = ...
|
|
local L, R = T.L, OPie.CustomRings
|
|
if not (R and R.AddDefaultRing) then return end
|
|
local COMPAT = select(4,GetBuildInfo())
|
|
local MODERN, CF_WRATH = COMPAT >= 10e4 or nil, COMPAT < 10e4 and COMPAT >= 3e4 or nil
|
|
|
|
R:AddDefaultRing("RaidSymbols", {
|
|
{"raidmark", 1, _u="y"}, -- yellow star
|
|
{"raidmark", 2, _u="o"}, -- orange circle
|
|
{"raidmark", 3, _u="p"}, -- purple diamond
|
|
{"raidmark", 4, _u="g"}, -- green triangle
|
|
{"raidmark", 5, _u="s"}, -- silver moon
|
|
{"raidmark", 6, _u="b"}, -- blue square
|
|
{"raidmark", 7, _u="r"}, -- red cross
|
|
{"raidmark", 8, _u="w"}, -- white skull
|
|
{"raidmark", 0, _u="c"}, -- clear all
|
|
name=L"Target Markers", hotkey="ALT-R", _u="OPCRS"
|
|
})
|
|
R:AddDefaultRing("CommonTrades", {
|
|
{id="/cast {{spell:3908/51309}}", _u="t"}, -- tailoring
|
|
{id="/cast {{spell:2108/51302}}", _u="l"}, -- leatherworking
|
|
{id="/cast {{spell:2018/51300}}", _u="b"}, -- blacksmithing
|
|
{id="/cast [mod] {{spell:13262}}; {{spell:7411/51313}}", _u="e"}, -- enchanting/disenchanting
|
|
{id="/cast {{spell:2259/51304}}", _u="a"}, -- alchemy
|
|
{id="/cast [mod] {{spell:818}}; {{spell:2550/51296}}; {{spell:818}}", _u="c"}, -- cooking/campfire
|
|
{id="/cast {{spell:4036/51306}}", _u="g"}, -- engineering
|
|
{id=2656, _u="m"}, -- smelting/mining journal
|
|
(MODERN or CF_WRATH) and {id="/cast [mod] {{spell:31252}}; {{spell:25229/51311}};", _u="j"} -- jewelcrafting/prospecting
|
|
or {id="/cast {{spell:3273}}", _u="f"}, -- first aid
|
|
(MODERN or CF_WRATH) and {id="/cast [mod] {{spell:51005}}; {{spell:45357/45363}}", _u="i"}, -- inscription/milling
|
|
(MODERN or CF_WRATH) and {id=53428, _u="u"}, -- runeforging
|
|
MODERN and {id="/cast [mod] {{spell:80451}}; {{spell:78670/89722}}", _u="r"} -- archaeology
|
|
or CF_WRATH and {id="/cast {{spell:3273}}", _u="f"}, -- first aid
|
|
MODERN and {id=271990, _u="fj"}, -- fish journal
|
|
MODERN and {id=194174, _u ="sj"}, -- skinning journal
|
|
MODERN and {id=193290, _u="hj"}, -- herbalism journal
|
|
name=L"Trade Skills", hotkey="ALT-T", _u="OPCCT"
|
|
})
|
|
R:AddDefaultRing("TrinketSlots", {
|
|
{id="/use 13", _u="t"},
|
|
{id="/use 14", _u="b"},
|
|
name=L"Trinkets", _u="OPCTS"
|
|
})
|
|
|
|
if not MODERN then return end
|
|
|
|
R:AddDefaultRing("DruidShift", {
|
|
{id="/cancelform [noflyable,noform:moonkin]\n/cast [flyable,outdoors,nocombat,noswimming,nomod][flying,flyable] {{spell:783}}; [outpost:corral,nomod,nospec:103/104] {{spell:161691}}; [swimming,nomod][flyable,nomod] {{spell:783}}; [nocombat,outdoors,nomod:alt,in:dragon isles] {{mount:dragon}}; [nocombat,outdoors,nomod:alt] {{mount:ground}}; [outdoors] {{spell:783}}\n/stopmacro [swimming,nomod][flyable,nomod][flying][mounted]\n/changeactionbar [noflyable,nocombat,outdoors,nomod:alt,in:dragon isles] 1", show="[known:783]", _u="f"}, -- Travel
|
|
{c="c74cff", id=24858, _u="k"}, -- Moonkin
|
|
{c="fff04d", id=768, _u="c"}, -- Cat
|
|
{c="ff0000", id=5487, _u="b"}, -- Bear
|
|
name=L"Shapeshifts", hotkey="BUTTON4", limit="DRUID", _u="OPCDS"
|
|
})
|
|
R:AddDefaultRing("DruidUtility", {
|
|
{id="/cast [combat][mod,nomod:alt] {{spell:20484}}; [@target,nodead,group,nomod] {{spell:212040}}; {{spell:50769}}", _u="r"}, -- rebirth/revit/revive
|
|
{id="/cast [mod] {{spell:16914}}; {{spell:740/16914}}", _u="t"}, -- hurricane/tranq
|
|
{id="/cast [nomod] {{spell:22812}}; {{spell:61336/22812}}", _u="b"}, -- bark/survival
|
|
{id="/cast {{spell:33891/102560}}", _u="i"}, -- Incarnation
|
|
{id="/cast [mod][+cleanse] {{spell:88423/2782}}; {{spell:18960/193753}}", _u="p"}, -- moonglade/cleanse
|
|
{id=29166, _u="v"}, -- innervate
|
|
{id=2908, _u="s"}, -- soothe
|
|
{id="/cast [@target,help][@player,nomod][] {{spell:1126}}", _u="w"}, -- motw
|
|
name=L"Utility", hotkey="[noform:bear/cat] BUTTON5; ALT-BUTTON5", limit="DRUID", _u="OPCDU"
|
|
})
|
|
R:AddDefaultRing("DruidFeral", {
|
|
{id=106951, _u="k"}, -- berserk
|
|
{id="/cast [noform:bear] {{spell:5217}}; {{spell:22842}}", _u="e"}, -- frenzied / tiger's fury
|
|
{id="/cast [mod][nospec:2/3] {{spell:1850}}; [form:bear] {{spell:77761}}; {{spell:77764}}", _u="r"}, -- dash / stampeding roar
|
|
{id=106839, _u="s"}, -- skull bash
|
|
{id=22812, _u="b"}, -- barkskin
|
|
{id=61336, _u="i"}, -- survival instincts
|
|
{id=102401, _u="c"}, -- feral charge
|
|
{id="/cast {{spell:102543/102558}}", _u="n"}, -- Incarnation
|
|
{id="#nounshift [combat,form:cat]\n/cast [nomod,@player][mod,@none] {{spell:8936}}", show="[spec:102/104/105] hide;", _u="h"}, -- Regrowth
|
|
name=L"Feral", hotkey="[form:bear/cat] BUTTON5; ALT-BUTTON5", limit="DRUID", _u="OPCDF"
|
|
})
|
|
|
|
do -- Hunter Pets
|
|
local m = "#showtooltip [@pet,exists,nodead,nopet:%d] {{spell:%d}};\n/cast [@pet,exists,nopet:%1$d,nodead] {{spell:2641}}\n/cast [@pet,noexists,nomod] {{spell:%2$d}}; [@pet,dead][@pet,noexists] {{spell:982}}; [@pet,help,nomod] {{spell:136}}; [@pet] {{spell:2641}}"
|
|
R:AddDefaultRing("HunterPets", {
|
|
{id=m:format(1,883), show="[known:883,havepet:1]", _u="1"},
|
|
{id=m:format(2,83242), show="[known:83242,havepet:2]", _u="2"},
|
|
{id=m:format(3,83243), show="[known:83243,havepet:3]", _u="3"},
|
|
{id=m:format(4,83244), show="[known:83244,havepet:4]", _u="4"},
|
|
{id=m:format(5,83245), show="[known:83245,havepet:5]", _u="5"},
|
|
name=L"Pets", limit="HUNTER", _u="OPCHP", internal=true
|
|
})
|
|
end
|
|
R:AddDefaultRing("HunterAspects", {
|
|
{id=186257, _u="c"}, -- cheetah
|
|
{id=186265, _u="t"}, -- turtle
|
|
{id=781, _u="d"}, -- disengage
|
|
{id=5384, _u="g"}, -- feign
|
|
{"ring", "HunterPets", _u="e", show="[nospec:2]"},
|
|
{id=147362, _u="i"}, -- counter
|
|
name=L"Aspects", hotkey="BUTTON4", limit="HUNTER", _u="OPCHA"
|
|
})
|
|
R:AddDefaultRing("HunterTraps", {
|
|
{id=191433, _u="e"}, -- explosive
|
|
{id=187650, _u="f"}, -- freezing
|
|
{id=187698, _u="t"}, -- tar/caltrops
|
|
name=L"Traps", hotkey="[spec:3] BUTTON5", limit="HUNTER", _u="OPCHT"
|
|
})
|
|
|
|
R:AddDefaultRing("MageCombat", {
|
|
{id=45438, _u="b"}, -- ice block
|
|
{id=30449, _u="s"}, -- spellsteal
|
|
{id=55342, _u="m"}, -- mirror image
|
|
{id=12051, _u="e"}, -- evocation
|
|
{id=108839, _u="f"}, -- ice floes
|
|
{id=80353, _u="t"}, -- time warp
|
|
{id="/cast {{spell:11426}}; {{spell:235450}}; {{spell:235313}}", _u="i"}, -- barrier
|
|
{id=190319, _u="c"}, -- combustion
|
|
name=L"Combat", limit="MAGE", hotkey="BUTTON4", _u="OPCMC"
|
|
})
|
|
R:AddDefaultRing("MageTools", {
|
|
{id=42955, _u="f"}, -- food
|
|
{id=66, _u="i"}, -- (greater) invisibility
|
|
{"ring", "MagePolymorph", _u="t"},
|
|
{id=130, _u="s"}, -- slow fall
|
|
{id=1459, _u="n"}, -- intellect
|
|
name=L"Utility", limit="MAGE", hotkey="BUTTON5", _u="OPCMT"
|
|
})
|
|
R:AddDefaultRing("MagePolymorph", {
|
|
{id=118, _u="s"}, -- sheep
|
|
{id=161353, _u="p"}, -- polar bear
|
|
{id=61721, _u="r"}, -- rabbit
|
|
{id=61305, _u="b"}, -- black cat
|
|
{id=61780, _u="t"}, -- turkey
|
|
{id=28271, _u="u"}, -- turtle
|
|
{id=28272, _u="i"}, -- pig
|
|
{id=161354, _u="m"}, -- monkey
|
|
{id=161355, _u="e"}, -- penguin
|
|
{id=126819, _u="o"}, -- porcupine
|
|
{id=161372, _u="k"}, -- peacock
|
|
name=L"Polymorphs", limit="MAGE", _u="OPCMP", internal=true
|
|
})
|
|
do -- MageTravel
|
|
local m = "/cast [mod] {{spell:%s}}; {{spell:%s}}"
|
|
R:AddDefaultRing("MageTravel", {
|
|
{id=m:format(395289, 395277), _u="0"}, -- Valdrakken
|
|
{id=m:format(344597, 344587), _u="9"}, -- Oribos
|
|
{id=m:format("268969/281402", "281403/281404"), _u="8"}, -- Dazar'alor/Boralus
|
|
{id=m:format(224871, 224869), _u="b"}, -- Dalaran (Broken Isles)
|
|
{id=m:format("132620/132626", "132621/132627"), _u="v"}, -- Vale of Eternal Blossoms
|
|
{id=m:format(53142, 53140), _u="r"}, -- Dalaran (Northrend)
|
|
{id=m:format("35717/33691", 33690), _u="s"}, -- Shattrath
|
|
{id=m:format(10059, 3561), _u="w"}, -- Stormwind
|
|
{id=m:format(11419, 3565), _u="d"}, -- Darnassus
|
|
{id=m:format(11420, 3566), _u="t"}, -- Thunder Bluff
|
|
{id=m:format(11418, 3563), _u="u"}, -- Undercity
|
|
{id=m:format(11416, 3562), _u="i"}, -- Ironforge
|
|
{id=m:format(11417, 3567), _u="o"}, -- Orgrimmar
|
|
{"ring", "ExtraPortals", _u="e"}, -- Extra Portals
|
|
{id=m:format(32267, 32272), _u="l"}, -- Silvermoon
|
|
{id=m:format(32266, 32271), _u="x"}, -- Exodar
|
|
name=L"Portals and Teleports", hotkey="ALT-G", limit="MAGE", _u="OPCMP"
|
|
})
|
|
R:AddDefaultRing("ExtraPortals", {
|
|
{id=m:format(120146, 120145), _u="a"}, -- Ancient Dalaran
|
|
{id=m:format(49360, 49359), _u="m"}, -- Theramore
|
|
{id=m:format(49361, 49358), _u="n"}, -- Stonard
|
|
{id=m:format("88346/88345", "88344/88342"), _u="b", c="99C5CC"}, -- Tol Barad
|
|
{id=m:format("176246/176244", "176248/176242"), _u="h", c="ff4000"}, -- Ashran
|
|
name=L"Extra Portals", limit="MAGE", _u="OPCME", internal=true
|
|
})
|
|
end
|
|
|
|
R:AddDefaultRing("PaladinAuras", {
|
|
{"ring", "PaladinBlessing", _u="b"},
|
|
{id=1022, _u="t"}, -- hand of protection
|
|
{id=1044, _u="e"}, -- hand of freedom
|
|
{id=25780, _u="f"}, -- righteous fury
|
|
name=L"Paladin Buffs", hotkey="BUTTON4", limit="PALADIN", _u="OPCPA"
|
|
})
|
|
R:AddDefaultRing("PaladinBlessing", {
|
|
{id=203538, _u="k"}, -- kings
|
|
{id=203539, _u="w"}, -- wisdom
|
|
name=L"Blessings", limit="PALADIN", internal=true, _u="OPCPB"
|
|
})
|
|
R:AddDefaultRing("PaladinTools", {
|
|
{id=853, _u="h"}, -- hammer
|
|
{c="ed8f1b", id=498, _u="p"}, -- divine protection
|
|
{id=31884, _u="a"}, -- avenging wrath
|
|
{id=62124, _u="r"}, -- hand of reckoning
|
|
{id=26573, _u="c"}, -- consecration
|
|
{id=183218, _u="i"}, -- hand of hindrance
|
|
{id=213644, _c="l"}, -- cleanse
|
|
name=L"Utility", limit="PALADIN", hotkey="BUTTON5", _u="OPCPT"
|
|
})
|
|
R:AddDefaultRing("WarlockLTS", {
|
|
{"ring", "WarlockDemons", _u="d"},
|
|
{id="/cast [mod][noknown:119898] {{spell:755}}; {{spell:119898}}", _u="a"}, -- funnel/command
|
|
{id="/cast [mod:alt] {{spell:20707}}; [group,nomod][nogroup,mod] {{spell:29893}}; {{spell:6201}}", _u="h"}, -- soul/health/well
|
|
{id=111771, _u="w"}, -- gateway
|
|
{"ring", "WarlockGuardians", _u="g"},
|
|
{id="/cast [flyable,nocombat,nomod] {{mount:air}}; [outdoors,nocombat,nomod:alt] {{mount:ground}}; {{spell:126}}", _u="e"}, -- mount/eye
|
|
name=L"Warlock General", hotkey="BUTTON4", limit="WARLOCK", _u="OPCLS"
|
|
})
|
|
R:AddDefaultRing("WarlockCombat", {
|
|
{id="/cast [nomod] {{spell:48018}}; {{spell:48020}}", _u="t"}, -- demonic circle
|
|
{id=1098, _u="e"}, -- enslave
|
|
{id=710, _u="a"}, -- banish
|
|
{id=111400, _u="m"}, -- burning rush
|
|
{id=5782, _u="f"}, -- fear
|
|
{id=5484, _u="h"}, -- howl
|
|
name=L"Warlock Combat", hotkey="BUTTON5", limit="WARLOCK", _u="OPCLO"
|
|
})
|
|
R:AddDefaultRing("WarlockDemons", {
|
|
{id=30146, _u="f"}, -- felguard
|
|
{id=697, _u="v"}, -- void
|
|
{id=688, _u="i"}, -- imp
|
|
{id=366222, _u="s"}, -- sayaad
|
|
{id=691, _u="h"}, -- felhunter
|
|
name=L"Demons", limit="WARLOCK", _u="OPCLD", internal=true
|
|
})
|
|
R:AddDefaultRing("WarlockGuardians", {
|
|
{id=18540, _u="d"}, -- doomguard
|
|
{id=1122, _u="i"}, -- infernal
|
|
name=L"Guardians", limit="WARLOCK", _u="OPCLG", internal=true
|
|
})
|
|
|
|
R:AddDefaultRing("DKCombat", {
|
|
{c="fff4b2", id=57330, _u="h"}, -- horn
|
|
{c="5891ea", id=48792, _u="f"}, -- fortitude
|
|
{c="bcf800", id=48707, _u="s"}, -- shell
|
|
{c="3d63cc", id=51052, _u="z"}, -- Zone
|
|
{c="b31500", id=55233, _u="b"}, -- blood
|
|
{c="aef1ff", id=51271, _u="p"}, -- pillar of frost
|
|
{c="d0d0d0", id=49039, _u="l"}, -- lich
|
|
name=L"Combat", hotkey="BUTTON5", limit="DEATHKNIGHT", _u="OPCDC"
|
|
})
|
|
|
|
R:AddDefaultRing("WorldMarkers", {
|
|
{"worldmark", 1, _u="b"},
|
|
{"worldmark", 2, _u="g"},
|
|
{"worldmark", 3, _u="p"},
|
|
{"worldmark", 4, _u="r"},
|
|
{"worldmark", 5, _u="y"},
|
|
{"worldmark", 6, _u="o"},
|
|
{"worldmark", 7, _u="s"},
|
|
{"worldmark", 8, _u="w"},
|
|
{"worldmark", 0, c="ccd8e5", _u="c"}, -- clear
|
|
name=L"World Markers", hotkey="[group] ALT-Y", _u="OPCWM"
|
|
})
|
|
|
|
R:AddDefaultRing("CommonHearth", {
|
|
{"item", 6948, _u="h"},
|
|
{"toy", 64488, _u="i"},
|
|
{"toy", 54452, _u="e"},
|
|
{"toy", 93672, _u="d"},
|
|
{"toy", 142542, _u="t"},
|
|
{"toy", 165669, _u="u"},
|
|
{"toy", 165670, _u="v"},
|
|
{"toy", 165802, _u="g"},
|
|
{"toy", 166746, _u="f"},
|
|
{"toy", 166747, _u="b"},
|
|
{"toy", 163045, _u="l"},
|
|
{"toy", 162973, _u="w"},
|
|
{"toy", 168907, _u="m"},
|
|
{"toy", 172179, _u="s"},
|
|
{"toy", 182773, _u="n"},
|
|
{"toy", 184353, _u="k"},
|
|
{"toy", 180290, _u="nf"},
|
|
{"toy", 183716, _u="ve"},
|
|
{"toy", 188952, _u="do"},
|
|
{"toy", 190237, _u="bt"},
|
|
name=L"Hearthstones", internal=true, _u="OPCHS"
|
|
})
|
|
R:AddDefaultRing("SpecMenu", {
|
|
{"specset", 1, _u="1"},
|
|
{"specset", 2, _u="2"},
|
|
{"specset", 3, _u="3"},
|
|
{"specset", 4, _u="4"},
|
|
{id="/cast {{spell:50977}}; {{spell:193753}}; {{spell:126892}}; {{spell:193759}}", _u="c"},
|
|
{"item", 110560, _u="g"},
|
|
{"item", 140192, _u="d"},
|
|
{"ring", "CommonHearth", rotationMode="shuffle", _u="t"},
|
|
{"spell", 556, _u="a"},
|
|
{"item", 141605, _u="w", show="[in:broken isles/bfa]"},
|
|
name=L"Specializations and Travel", hotkey="ALT-H", _u="OPCTA"
|
|
})
|