0
@@ -18,7 +18,8 @@ local rolls = {}
0
local function Print(...) ChatFrame1:AddMessage(string.join(" ", "|cFF33FF99GreedBeacon|r:", ...)) end
0
-local function Debug(...) ChatFrame1:AddMessage(string.join(", ", ...)) end
0
+local debugf = tekDebug and tekDebug:GetFrame("GreedBeacon")
0
+local function Debug(...) if debugf then debugf:AddMessage(string.join(", ", ...)) end end
0
local chatframes = {[ChatFrame1] = false, [ChatFrame2] = false, [ChatFrame3] = false, [ChatFrame4] = false, [ChatFrame5] = false, [ChatFrame6] = false, [ChatFrame7] = false}
0
@@ -124,39 +125,3 @@ function SetItemRef(link, text, button)
0
else return orig2(link, text, button) end
0
--- Debugging event generator
0
-local oe = f:GetScript("OnEvent")
0
- oe(f, "CHAT_MSG_LOOT", msg)
0
-local _, link = GetItemInfo(6948)
0
-e(string.format(LOOT_ROLL_NEED, "Joe", link))
0
-e(string.format(LOOT_ROLL_NEED_SELF, link))
0
-e(string.format(LOOT_ROLL_GREED, "Bob", link))
0
-e(string.format(LOOT_ROLL_PASSED, "Ike", link))
0
-e(string.format(LOOT_ROLL_ROLLED_NEED, 85, link, "Joe"))
0
-e(string.format(LOOT_ROLL_ROLLED_NEED, 8, link, UnitName("player")))
0
-e(string.format(LOOT_ROLL_WON, "Joe", link))
0
-local _, link = GetItemInfo(33809)
0
-e(string.format(LOOT_ROLL_GREED, "Joe", link))
0
-e(string.format(LOOT_ROLL_GREED_SELF, link))
0
-e(string.format(LOOT_ROLL_GREED, "Bob", link))
0
-e(string.format(LOOT_ROLL_PASSED, "Ike", link))
0
-e(string.format(LOOT_ROLL_ROLLED_GREED, 42, link, "Joe"))
0
-e(string.format(LOOT_ROLL_ROLLED_GREED, 99, link, UnitName("player")))
0
-e(string.format(LOOT_ROLL_ROLLED_GREED, 70, link, "Bob"))
0
-e(string.format(LOOT_ROLL_ROLLED_GREED, 91, link, "Ike"))
0
-e(string.format(LOOT_ROLL_WON, YOU, link))
0
-local _, link = GetItemInfo(11411)
0
-e(string.format(LOOT_ROLL_PASSED_AUTO, "Joe", link))
0
-e(string.format(LOOT_ROLL_PASSED_AUTO_FEMALE, "May", link))
0
-e(string.format(LOOT_ROLL_PASSED_SELF, link))
0
-e(string.format(LOOT_ROLL_ALL_PASSED, link))
Comments
No one has commented yet.