From a5ebfaeb6dbf23b56b08041f8ad08f582e253004 Mon Sep 17 00:00:00 2001 From: Road-block Date: Sun, 18 Feb 2018 03:50:21 +0200 Subject: [PATCH] Move the chat command initialization earlier Add some feedback to chat commands. --- localization.lua | 6 +++++- prices.lua | 2 +- shootyepgp.lua | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/localization.lua b/localization.lua index 958f53f..12a07a5 100644 --- a/localization.lua +++ b/localization.lua @@ -8,7 +8,8 @@ L:RegisterTranslations("enUS", function() return { ["Clear"] = true, ["Name"] = true, ["Raid Only"] = true, - ["Only show members in raid."] = true, + ["Only show members in raid."] = true, + ["Restarted"] = true, -- bids ["shootyepgp bids"] = true, ["Winning Mainspec Bid: %s (%.03f PR)"] = true, @@ -173,6 +174,7 @@ Results will print here when done.]], ["Naxxramas"] = true, ["There are %d loot drops stored. It is recommended to clear loot info before a new raid. Do you want to clear it now?"] = true, ["Show me"] = true, + ["Logs cleared"] = true, ["Loot info cleared"] = true, ["Loot info can be cleared at any time from the Tablet context menu or '/shooty clearloot' command"] = true, ["Set your main to be able to participate in Reserve List EPGP Checks."] = true, @@ -404,4 +406,6 @@ L:RegisterTranslations("zhCN", function() return { [", %s\'s Main."] = ", %s\'s Main.", ["Your main has been set to %s"] = "Your main has been set to %s", ["Alts"] = "Alts", + ["Logs cleared"] = "Logs cleared", + ["Restarted"] = "Restarted", } end) \ No newline at end of file diff --git a/prices.lua b/prices.lua index 6a889d9..79ad6de 100644 --- a/prices.lua +++ b/prices.lua @@ -365,7 +365,7 @@ local prices = { [21701] = {88,"T2.5"}; --Cloak of the Concentrated Hatred [21702] = {4,"T2.5"}; --Amulet of Foul Warding [21703] = {24,"T2.5"}; --Hammer of Ji'zhi - [21704] = {68,"T2.5"}; --Boots of the Redeemed Prophecy + [21704] = {70,"T2.5"}; --Boots of the Redeemed Prophecy [21705] = {12,"T2.5"}; --Boots of the Fallen Prophet [21706] = {28,"T2.5"}; --Boots of the Unwavering Will [21707] = {48,"T2.5"}; --Ring of Swarming Thought diff --git a/shootyepgp.lua b/shootyepgp.lua index b085e82..87e8eff 100644 --- a/shootyepgp.lua +++ b/shootyepgp.lua @@ -68,6 +68,7 @@ local admincmd, membercmd = {type = "group", handler = sepgp, args = { desc = L["Clear Loot Table."], func = function() sepgp_looted = {} + sepgp:defaultPrint(L["Loot info cleared"]) end, }, clearlogs = { @@ -76,6 +77,7 @@ local admincmd, membercmd = {type = "group", handler = sepgp, args = { desc = L["Clear Logs Table."], func = function() sepgp_log = {} + sepgp:defaultPrint(L["Logs cleared"]) end, }, show = { @@ -92,6 +94,7 @@ local admincmd, membercmd = {type = "group", handler = sepgp, args = { desc = L["Restart shootyepgp if having startup problems."], func = function() sepgp:OnEnable() + sepgp:defaultPrint(L["Restarted"]) end, }, }}, @@ -110,6 +113,7 @@ local admincmd, membercmd = {type = "group", handler = sepgp, args = { desc = L["Restart shootyepgp if having startup problems."], func = function() sepgp:OnEnable() + sepgp:defaultPrint(L["Restarted"]) end, }, }} @@ -194,6 +198,7 @@ function sepgp:OnEnable() -- PLAYER_LOGIN (2) else self:RegisterEvent("AceEvent_FullyInitialized") end + self:RegisterChatCommand({"/shooty","/sepgp","/shootyepgp"},self.cmdtable()) end function sepgp:OnDisable() @@ -251,7 +256,6 @@ function sepgp:AceEvent_FullyInitialized() -- SYNTHETIC EVENT, later than PLAYER for i=1,6 do self:make_escable(string.format("Tablet20DetachedFrame%d",i),"add") end - self:RegisterChatCommand({"/shooty","/sepgp","/shootyepgp"},self.cmdtable()) self._hasInitFull = true end