First, I just want to express my great thanks for this add'on and I like to help as much as possible
not long ago installed this add'on on my wow (3.1) but there re some errors which forced me to modify the source code but after the server I play on upgraded to version 3.3.5a, I just want to give some help to enhance this add'on
Note: those my modification for 3.1 version it should work well for 3.3.5a
-- Declaration for var
local StartMoney = GetMoney() or 0
-- register close event [ addon:OnEnable() ]
-- get current money [ addon:MERCHANT_SHOW() ]
StartMoney = GetMoney()
self.total = 0
-- get final money and print message [ addon:MERCHANT_CLOSED() ]
self.total = GetMoney() - StartMoney
self.total = 0
--enhance gary (poor) item searching by using WoW Api
-- local found = string_find(item,"|cff9d9d9d")
local itemQuality = select(3, GetItemInfo(item))
local found = ( itemQuality == 0 )
I also recode [ addon:PrintGold() ] to print Lose or Gain message and color the money instead of words (gold, silver, copper)
local gained = true
if self.total == 0 then
if (self.total < 0 ) then
self.total = 0 - self.total
gained = false
local ret = ""
local gold = floor(self.total / (COPPER_PER_SILVER * SILVER_PER_GOLD));
local silver = floor((self.total - (gold * COPPER_PER_SILVER * SILVER_PER_GOLD)) / COPPER_PER_SILVER);
local copper = mod(self.total COPPER_PER_SILVER);
if gold > 0 then
ret = gold.."|cffffd700g|r "
if silver > 0 or gold > 0 then
ret = ret..silver.."|cffc7c7cfs|r "
ret = ret..copper.."|cffeda55fc|r."
if gained == true then
self:Print("SellJunk |cff00ff00GAINED|r : "..ret)
self:Print("SellJunk |cffff0000LOST|r : "..ret)
Well; there are some lines I deleted but this is most of things; I'm looking forward to a new release
Wishes (currently trying to code it)
1- when calling destroy it destroys the lowest priced items
2- when calling destroy it shows a list of what will destroy first (can be disabled)
3- whenever action done related to money it will display message in chat window (like money spent for deposits in auction house, in flight ...)
4- track a history for incoming and outgoing money daily and weekly ... (just wanted to know everything about my money ^^ )
- 1 comment
- Last updated
- Aug 17, 2010
- Jul 22, 2010
- Declined - We decided not to take action on this ticket.
- Enhancement - A change which is intended to better the project in some way
- Medium - Normal priority.