/trunk/Broadcaster/Modules
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 |