public
Description: WoW addon - Track down those needy and greedy party members
Homepage: http://www.tekkub.net
Clone URL: git://github.com/tekkub/greedbeacon.git
Search Repo:
Click here to lend your support to: greedbeacon and make a donation at www.pledgie.com !
Remove debug event generator
tekkub (author)
Sun Jun 01 17:21:49 -0700 2008
commit  bf53bb566a91516816d5a818af0f94eb9beba963
tree    b70bd0e454766fe80581e391fef156c9c6a0b747
parent  974a26a41729b30f0d734342b64b5c72285913d4
...
18
19
20
21
 
 
22
23
24
...
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
...
18
19
20
 
21
22
23
24
25
...
125
126
127
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
@@ -18,7 +18,8 @@ local rolls = {}
0
 
0
 local function Print(...) ChatFrame1:AddMessage(string.join(" ", "|cFF33FF99GreedBeacon|r:", ...)) end
0
 
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
 
0
 
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
     ItemRefTooltip:Show()
0
   else return orig2(link, text, button) end
0
 end
0
-
0
-
0
--- Debugging event generator
0
-local oe = f:GetScript("OnEvent")
0
-local function e(msg)
0
- Print(msg)
0
- oe(f, "CHAT_MSG_LOOT", msg)
0
- filter(msg)
0
-end
0
-
0
-
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
-
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
-
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.