/
local options = { |
res = { |
name = "Resurrection", |
name = L["Resurrection"], |
type = "group", |
arg = class, |
args = { |
enable = { |
name = "Enable", |
desc = "Announce messages for this spell.", |
name = L["Enable"], |
desc = L["Announce messages for this spell."], |
type = "toggle", |
order = 1, |
get = function() |
end, |
}, |
pick = { |
name = "Pull messages from...", |
desc = "Use the default messages, your own, or both.", |
name = L["Pull messages from..."], |
desc = L["Use the default messages, your own, or both."], |
type = "select", |
order = 2, |
values = {"Default", "Custom", "Both"}, |
values = {L["Default"], L["Custom"], L["Both"]}, |
get = function() |
for k, v in pairs(pick) do |
if db.reschoose == v then |
end, |
}, |
custom = { |
name = "Custom messages", |
desc = "Enter in any custom messages you would like to use, one per line.\n\n%t = the spell's target", |
name = L["Custom messages"], |
desc = L["Enter in any custom messages you would like to use, one per line."].."\n\n%t = "..L["the spell's target"], |
type = "input", |
order = 3, |
multiline = true, |
else |
msg = list[random] |
end |
if coredb.channel == "Self" then |
if coredb.channel == L["Self"] then |
self:Print(msg) |
else |
SendChatMessage(msg, coredb.channel) |
local options = { |
rebirth = { |
name = "Rebirth", |
name = L["Rebirth"], |
type = "group", |
arg = class, |
args = { |
enable = { |
name = "Enable", |
desc = "Announce messages for this spell.", |
name = L["Enable"], |
desc = L["Announce messages for this spell."], |
type = "toggle", |
order = 1, |
get = function() |
end, |
}, |
pick = { |
name = "Pull messages from...", |
desc = "Use the default messages, your own, or both.", |
name = L["Pull messages from..."], |
desc = L["Use the default messages, your own, or both."], |
type = "select", |
order = 2, |
values = {"Default", "Custom", "Both"}, |
values = {L["Default"], L["Custom"], L["Both"]}, |
get = function() |
for k, v in pairs(pick) do |
if db.rebirthchoose == v then |
end, |
}, |
custom = { |
name = "Custom messages", |
desc = "Enter in any custom messages you would like to use, one per line.\n\n%t = the spell's target", |
name = L["Custom messages"], |
desc = L["Enter in any custom messages you would like to use, one per line."].."\n\n%t = "..L["the spell's target"], |
type = "input", |
order = 3, |
multiline = true, |
else |
msg = list[random] |
end |
if coredb.channel == "Self" then |
if coredb.channel == L["Self"] then |
self:Print(msg) |
else |
SendChatMessage(msg, coredb.channel) |
local options = { |
ancsp = { |
name = "Ancestral Spirit", |
name = L["Ancestral Spirit"], |
type = "group", |
arg = class, |
args = { |
enable = { |
name = "Enable", |
desc = "Announce messages for this spell.", |
name = L["Enable"], |
desc = L["Announce messages for this spell."], |
type = "toggle", |
order = 1, |
get = function() |
end, |
}, |
pick = { |
name = "Pull messages from...", |
desc = "Use the default messages, your own, or both.", |
name = L["Pull messages from..."], |
desc = L["Use the default messages, your own, or both."], |
type = "select", |
order = 2, |
values = {"Default", "Custom", "Both"}, |
values = {L["Default"], L["Custom"], L["Both"]}, |
get = function() |
for k, v in pairs(pick) do |
if db.ancspchoose == v then |
end, |
}, |
custom = { |
name = "Custom messages", |
desc = "Enter in any custom messages you would like to use, one per line.\n\n%t = the spell's target", |
name = L["Custom messages"], |
desc = L["Enter in any custom messages you would like to use, one per line."].."\n\n%t = "..L["the spell's target"], |
type = "input", |
order = 3, |
multiline = true, |
else |
msg = list[random] |
end |
if coredb.channel == "Self" then |
if coredb.channel == L["Self"] then |
self:Print(msg) |
else |
SendChatMessage(msg, coredb.channel) |
local options = { |
redempt = { |
name = "Redemption", |
name = L["Redemption"], |
type = "group", |
arg = class, |
args = { |
enable = { |
name = "Enable", |
desc = "Announce messages for this spell.", |
name = L["Enable"], |
desc = L["Announce messages for this spell."], |
type = "toggle", |
order = 1, |
get = function() |
end, |
}, |
pick = { |
name = "Pull messages from...", |
desc = "Use the default messages, your own, or both.", |
name = L["Pull messages from..."], |
desc = L["Use the default messages, your own, or both."], |
type = "select", |
order = 2, |
values = {"Default", "Custom", "Both"}, |
values = {L["Default"], L["Custom"], L["Both"]}, |
get = function() |
for k, v in pairs(pick) do |
if db.redemptchoose == v then |
end, |
}, |
custom = { |
name = "Custom messages", |
desc = "Enter in any custom messages you would like to use, one per line.\n\n%t = the spell's target", |
name = L["Custom messages"], |
desc = L["Enter in any custom messages you would like to use, one per line."].."\n\n%t = "..L["the spell's target"], |
type = "input", |
order = 3, |
multiline = true, |
else |
msg = list[random] |
end |
if coredb.channel == "Self" then |
if coredb.channel == L["Self"] then |
self:Print(msg) |
else |
SendChatMessage(msg, coredb.channel) |
local options = { |
poly = { |
name = "Polymorph", |
name = L["Polymorph"], |
type = "group", |
arg = class, |
args = { |
enable = { |
name = "Enable", |
desc = "Announce messages for this spell.", |
name = L["Enable"], |
desc = L["Announce messages for this spell."], |
type = "toggle", |
order = 1, |
get = function() |
end, |
}, |
pick = { |
name = "Pull messages from...", |
desc = "Use the default messages, your own, or both.", |
name = L["Pull messages from..."], |
desc = L["Use the default messages, your own, or both."], |
type = "select", |
order = 2, |
values = {"Default", "Custom", "Both"}, |
values = {L["Default"], L["Custom"], L["Both"]}, |
get = function() |
for k, v in pairs(pick) do |
if db.polychoose == v then |
end, |
}, |
custom = { |
name = "Custom messages", |
desc = "Enter in any custom messages you would like to use, one per line.\n\n%t = the spell's target", |
name = L["Custom messages"], |
desc = L["Enter in any custom messages you would like to use, one per line."].."\n\n%t = "..L["the spell's target"], |
type = "input", |
order = 3, |
multiline = true, |
}, |
}, |
port = { |
name = "Portals", |
name = L["Portals"], |
type = "group", |
arg = class, |
args = { |
enable = { |
name = "Enable", |
desc = "Announce messages for this spell.", |
name = L["Enable"], |
desc = L["Announce messages for this spell."], |
type = "toggle", |
order = 1, |
get = function() |
end, |
}, |
pick = { |
name = "Pull messages from...", |
desc = "Use the default messages, your own, or both.", |
name = L["Pull messages from..."], |
desc = L["Use the default messages, your own, or both."], |
type = "select", |
order = 2, |
values = {"Default", "Custom", "Both"}, |
values = {L["Default"], L["Custom"], L["Both"]}, |
get = function() |
for k, v in pairs(pick) do |
if db.portchoose == v then |
end, |
}, |
custom = { |
name = "Custom messages", |
desc = "Enter in any custom messages you would like to use, one per line.\n\n%d = the portal's destination", |
name = L["Custom messages"], |
desc = L["Enter in any custom messages you would like to use, one per line."].."\n\n%d = "..L["the portal's destination"], |
type = "input", |
order = 3, |
multiline = true, |
}, |
}, |
table = { |
name = "Ritual of Refreshment", |
name = L["Ritual of Refreshment"], |
type = "group", |
arg = class, |
args = { |
enable = { |
name = "Enable", |
desc = "Announce messages for this spell.", |
name = L["Enable"], |
desc = L["Announce messages for this spell."], |
type = "toggle", |
order = 1, |
get = function() |
end, |
}, |
pick = { |
name = "Pull messages from...", |
desc = "Use the default messages, your own, or both.", |
name = L["Pull messages from..."], |
desc = L["Use the default messages, your own, or both."], |
type = "select", |
order = 2, |
values = {"Default", "Custom", "Both"}, |
values = {L["Default"], L["Custom"], L["Both"]}, |
get = function() |
for k, v in pairs(pick) do |
if db.tablechoose == v then |
end, |
}, |
custom = { |
name = "Custom messages", |
desc = "Enter in any custom messages you would like to use, one per line.", |
name = L["Custom messages"], |
desc = L["Enter in any custom messages you would like to use, one per line."], |
type = "input", |
order = 3, |
multiline = true, |
if coredb.channel == "Self" then |
self:Print(msg) |
else |
SendChatMessage(msg, db.channel) |
SendChatMessage(msg, coredb.channel) |
end |
custom, replacee, replacer = nil |
end |
end, |
}, |
channel = { |
name = "Channel", |
desc = "The channel to broadcast your messages to.", |
name = L["Channel"], |
desc = L["The channel to broadcast your messages to."], |
type = "select", |
values = {"RAID", "PARTY", "Self"}, |
values = {L["Raid"], L["Party"], L["Self"]}, |
order = 1, |
get = function() |
for k, v in pairs(chan) do |
I would like to thank people on irc who helped me learn how to do things, and just listened when I was frustrated. The messages in this addon were either taken from other addons (such as Cryolysis), the WoW forums, or were made up my myself and my guildies/friends, so thanks to them, as well. |
Broadcaster reads directly from the combat log. For polymorph, it won't announce the message unless your spell cast is successful. (No longer requires you to set as focus.) |
Broadcaster reads directly from the combat log. For polymorph, for example, it won't announce the message unless your spell cast is successful. (No longer requires you to set as focus.) |
How to use Broadcaster: |
| CHANGELOG | |
============= |
1.2.1 (9/10/08) |
- updated localization table and added localization keys in core and modules |
- corrected typo in mage module |
1.2 (9/6/08) |
- Now a fully fleshed-out GUI - type /bc or /broadcaster to access (or view in Interface Options) |
- You can now put the entire addon into standby mode so no messages are sent |
## Title: Broadcaster |
## Notes: Announces polymorphs to party and raid chat |
## Author: Seerah |
## Version: 1.2 |
## Version: 1.2.1 |
## SavedVariables: BroadcasterDB |
## OptionalDeps: Ace3 |
## X-Embeds: Ace3 |
local L = LibStub("AceLocale-3.0"):NewLocale("Broadcaster", "enUS", true) |
--OPTIONS-- |
--CORE-- |
L["Standby"] = true |
L["Enable/disable the addon, so no messages are sent."] = true |
L["Config"] = true |
L["Opens the options window."] = true |
L["Channel"] = true |
L["The channel to broadcast your messages to."] = true |
L["Raid"] = true |
L["Party"] = true |
L["Self"] = true |
--ALL MODULES-- |
L["Enable"] = true |
L["Announce messages for this spell."] = true |
L["Pull messages from..."] = true |
L["Use the default messages, your own, or both."] = true |
L["Default"] = true |
L["Custom"] = true |
L["Both"] = true |
L["Custom messages"] = true |
L["Enter in any custom messages you would like to use, one per line."] = true |
L["the spell's target"] = true |
--MAGE MODULE-- |
L["Portal:"] = true |
L["Polymorph"] = true |
L["Portals"] = true |
L["the portal's destination"] = true |
L["Ritual of Refreshment"] = true |
--DRUID MODULE-- |
L["Rebirth"] = true |
--PALADIN MODULE-- |
L["Redemption"] = true |
--PRIEST MODULE-- |
L["Resurrection"] = true |
--SHAMAN MODULE-- |
L["Ancestral Spirit"] = true |