if "%1" == "public" and "%2" == "on" then
tracker_db.report_check = 1
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Now reporting to the public!")
elseif "%1" == "public" and "%2" == "off" then
tracker_db.report_check = 0
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "No longer reporting to the public!")
elseif "%1" == "local" and "%2" == "on" then
tracker_db.local_check = 1
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Now reporting locally!")
else
tracker_db.local_check = 0
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "No longer reporting locally!")
end
if string.len("%1") > 0 then
SendNoEcho("%1 " .. tracker_db.last_quest_report)
else
SendNoEcho(tracker_db.report_channel .. tracker_db.last_quest_report)
end
new_theme("%1")
local name, field, color = string.len("%1"), string.len("%2"), string.len("%3")
if name > 0 and field > 0 and color > 0 then
custom_theme("%1", "%2", "%3")
else
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Correct syntax is: ", tracker_db.themes[tracker_db.set_theme].special, "", "q settheme [name of theme] [field name] [color]")
end
if string.len("%1") > 0 then
color_table("%1")
else
color_table()
end
q_stats(tracker_db.set_theme)
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Quest ", tracker_db.themes[tracker_db.set_theme].special, "", "start", tracker_db.themes[tracker_db.set_theme].text, "", " string is: ", tracker_db.themes[tracker_db.set_theme].title, "", tracker_db.strings.quest_start_string)
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Quest ", tracker_db.themes[tracker_db.set_theme].special, "", "killed", tracker_db.themes[tracker_db.set_theme].text, "", " string is: ", tracker_db.themes[tracker_db.set_theme].title, "", tracker_db.strings.quest_killed_string)
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Quest ", tracker_db.themes[tracker_db.set_theme].special, "", "failed", tracker_db.themes[tracker_db.set_theme].text, "", " string is: ", tracker_db.themes[tracker_db.set_theme].title, "", tracker_db.strings.quest_failed_string)
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Quest ", tracker_db.themes[tracker_db.set_theme].special, "", "completed", tracker_db.themes[tracker_db.set_theme].text, "", " string is: ", tracker_db.themes[tracker_db.set_theme].title, "", tracker_db.strings.quest_completed_string)
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Quest ", tracker_db.themes[tracker_db.set_theme].special, "", "ready", tracker_db.themes[tracker_db.set_theme].text, "", " string is: ", tracker_db.themes[tracker_db.set_theme].title, "", tracker_db.strings.quest_ready_string)
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Quest ", tracker_db.themes[tracker_db.set_theme].special, "", "reset", tracker_db.themes[tracker_db.set_theme].text, "", " string is: ", tracker_db.themes[tracker_db.set_theme].title, "", tracker_db.strings.quest_reset_string)
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Quest ", tracker_db.themes[tracker_db.set_theme].special, "", "bonus", tracker_db.themes[tracker_db.set_theme].text, "", " string is: ", tracker_db.themes[tracker_db.set_theme].title, "", tracker_db.strings.quest_bonus_string)
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Quest ", tracker_db.themes[tracker_db.set_theme].special, "", "nobonus", tracker_db.themes[tracker_db.set_theme].text, "", " string is: ", tracker_db.themes[tracker_db.set_theme].title, "", tracker_db.strings.quest_nobonus_string)
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Use ", tracker_db.themes[tracker_db.set_theme].special, "", "'q custom [highlighted term] [string]'", tracker_db.themes[tracker_db.set_theme].text, "", " to set a new string value.")
if string.len("%1") > 0 and string.len("%2") == 0 then
q_reset("%1")
elseif string.len("%1") > 0 and string.len("%2") > 0 then
q_reset("%1", "%2")
else
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Did you mean qreset self, or ", tracker_db.themes[tracker_db.set_theme].special, "", "'q reset [all|current|themes]'", tracker_db.themes[tracker_db.set_theme].text, "", "?")
end
if string.len("%1") > 0 then
local field = "%1"
if string.len(string.gsub("%2", "^%s", "")) > 0 then
local strv = string.gsub("%2", "^%s", "")
set_custom(field, strv) else set_custom(field)
end
else
set_custom()
end
if string.len("%1") > 0 then
set_theme("%1")
else
set_theme()
end
if string.len("%1") > 0 then
tracker_db.report_channel = "%1 "
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Tracker now reports to: ", tracker_db.themes[tracker_db.set_theme].special, "", tracker_db.report_channel)
SetVariable("atracker", serialize.save("tracker_db"))
else
ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Tracker reports to: ", tracker_db.themes[tracker_db.set_theme].special, "", tracker_db.report_channel)
end