Download
(2Kb)
Download
Updated: 02-04-09 03:36 AM
Pictures
File Info
Updated:02-04-09 03:36 AM
Created:unknown
Downloads:10,944
Favorites:97
MD5:

Junk!  Popular! (More than 5000 hits)

Version: 1.0.4
by: Kremonte [More]

Sell your junk!

A small, lightweight mod to, well, sell your junk! Automatically sells grays in your inventory, as well as a select, modifiable list of any other items you don't want to keep.

AutoProfit wasn't working patch after patch, and finally after going to fix it myself for this one I saw how much garbage code was in it. All I used AutoProfit for was to sell my junk, and there were way too many widgets and doodads that I was never using. Even its method of adding exceptions was bloated! Enter Junk.

If you've used AutoProfit, it functions all the same. When you open up a vendor window, there is an icon in the top right of the window (a Mote of Mana). Hover over it, you'll see the price you'll get, and click on it, and it will automatically sell all grays in your bags.

If there are whites (or greens, or blues, or purples, or oranges) you want to vendor on a regular basis, just type /junk [link], and it will be added to the exceptions list. Type /junk [link] again to remove it. Next time you click to sell your junk, it will be added with them.

Huh. Last time this addon was updated was four days away from being two years ago to the date, and the addon still functions perfectly. Well, at least there's cool little coin icons I can use now.

1.0.4
rewrote some things because i got bored
also i love the ternary operator it's pretty cool
oh and i fixed that bug i think! i hope :(
when you have no junk the icon becomes a sadface
this is important stuff guys
1.0.3
updated toc version number by a few thousand
changed the icon
1.0.2
added autosell and autorepair
fixed error when bags had empty slots
1.0.1
fixed bug causing not all grays to be shown
1.0.0
initial release
Optional Files (0)


Post A Reply Comment Options
Unread 10-31-10, 05:09 AM  
colgategao
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
hi, i use this addon for a long time. but now, my priest always says the bug as follow:

Message: Interface\AddOns\Junk\Junk.lua:101: attempt to index global 'this' (a nil value)
Time: 10/31/10 19:04:05
Count: 11
Stack: Interface\AddOns\Junk\Junk.lua:101: in function <Interface\AddOns\Junk\Junk.lua:101>

Locals: (*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index global 'this' (a nil value)"
JunkButtonUpdate = <function> defined @Interface\AddOns\Junk\Junk.lua:81

and the other charters has no bug.
how can i handle this? thx~
can i use "junkbutton" instead of "this"?
Last edited by colgategao : 10-31-10 at 05:21 AM.
Report comment to moderator  
Reply With Quote
Unread 10-17-10, 11:14 AM  
GRiM
An Aku'mai Servant
 
GRiM's Avatar

Forum posts: 29
File comments: 46
Uploads: 0
Re: 4.01 error

Originally posted by GRiM
Code:
Message: Interface\AddOns\Junk\Junk.lua:102: attempt to index global 'this' (a nil value)
Time: 10/13/10 18:24:58
Count: 274
Stack: Interface\AddOns\Junk\Junk.lua:102: in function <Interface\AddOns\Junk\Junk.lua:102>

Locals: (*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index global 'this' (a nil value)"
JunkButtonUpdate = <function> defined @Interface\AddOns\Junk\Junk.lua:82
Fixed. Find line 102
Code:
JunkButton:SetScript("OnEvent", function() if not this:IsVisible() then return end JunkButtonUpdate() end)
and replace with
Code:
JunkButton:SetScript("OnEvent", function() if not JunkButton:IsVisible() then return end JunkButtonUpdate() end)
Turns out "this:whatever" was deprecated a few patches ago and finally removed in 4.01. So I just explicitly defined the object. Working fine for me, hope it helps others still using this useful little addon.
__________________
Too busy playing WoW to make a proper sig...
Report comment to moderator  
Reply With Quote
Unread 10-13-10, 04:26 PM  
GRiM
An Aku'mai Servant
 
GRiM's Avatar

Forum posts: 29
File comments: 46
Uploads: 0
4.01 error

Code:
Message: Interface\AddOns\Junk\Junk.lua:102: attempt to index global 'this' (a nil value)
Time: 10/13/10 18:24:58
Count: 274
Stack: Interface\AddOns\Junk\Junk.lua:102: in function <Interface\AddOns\Junk\Junk.lua:102>

Locals: (*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index global 'this' (a nil value)"
JunkButtonUpdate = <function> defined @Interface\AddOns\Junk\Junk.lua:82
__________________
Too busy playing WoW to make a proper sig...
Report comment to moderator  
Reply With Quote
Unread 08-15-09, 05:51 PM  
GRiM
An Aku'mai Servant
 
GRiM's Avatar

Forum posts: 29
File comments: 46
Uploads: 0
Re: Re: Bug

Originally posted by zjxian
Yes, same problem. Exactly doubled, minor problem but still annoying.

ok..solved

add 1 line in function GetJunkValue()

local function GetJunkValue()
JunkValue = 0 <<<<---- this
for bag=0,4 do
if GetContainerNumSlots(bag) then
for slot=1,GetContainerNumSlots(bag) do
if IsJunk(bag, slot) then JunkTooltip:SetBagItem(bag,slot) end
end
end
end
end
Thank You!
__________________
Too busy playing WoW to make a proper sig...
Report comment to moderator  
Reply With Quote
Unread 08-10-09, 06:49 PM  
zjxian
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Re: Bug

Originally posted by GRiM
For some reason my "Junk" button reports a total sell price of grey items double of what they are actually worth.

/junk flush - doesn't help

Can anyone else confirm this?
Yes, same problem. Exactly doubled, minor problem but still annoying.

ok..solved

add 1 line in function GetJunkValue()

local function GetJunkValue()
JunkValue = 0 <<<<---- this
for bag=0,4 do
if GetContainerNumSlots(bag) then
for slot=1,GetContainerNumSlots(bag) do
if IsJunk(bag, slot) then JunkTooltip:SetBagItem(bag,slot) end
end
end
end
end
Last edited by zjxian : 08-11-09 at 12:32 AM.
Report comment to moderator  
Reply With Quote
Unread 07-26-09, 09:46 AM  
GRiM
An Aku'mai Servant
 
GRiM's Avatar

Forum posts: 29
File comments: 46
Uploads: 0
Question Bug

For some reason my "Junk" button reports a total sell price of grey items double of what they are actually worth.

/junk flush - doesn't help

Can anyone else confirm this?
__________________
Too busy playing WoW to make a proper sig...
Report comment to moderator  
Reply With Quote
Unread 07-22-09, 04:52 PM  
KleinerMink
A Deviate Faerie Dragon

Forum posts: 11
File comments: 70
Uploads: 0
Got this error after many hours of errorfree play:

Date: 2009-07-23 00:50:06
ID: 2
Error occured in: Global
Count: 1
Message: ..\AddOns\Junk\Junk.lua line 113:
attempt to concatenate a boolean value
Debug:
[C]: ?
Junk\Junk.lua:113:
Junk\Junk.lua:109
AddOns:
ClassColors, v3.1.2.14
Swatter, v3.1.13 (<%codename%>)
acbAuras, v09.05.17
acbCastBar, v09.05.17
acbMirror, v09.05.17
ACP, v3.1.0.17
Align, v
ArenaCountDown, v1.0
Atlas, v1.14.1
AtlasOutdoorRaids, v1.14.1
AutoLootToggle, vr4
AzCastBar, v09.05.17
Buffet, v3.1.0.28
Butsu, v1.10
ButtonFacade, v3.1.270
ButtonFacadeNumein, v1.0
caelNamePlates, v
Carbonite, v3.13
CarboniteTransfer, v1.01
cargBags, v1.3
cargBagsAnywhere, v1.3
cargBagsNivaya, v
cError, v
Clique, vwowi:revision
DBMCore, v
Dolemite, v30100.7
EMLib, v
Engravings, v3.1.0.13
Fane, v1.3
FeedIt, vv1.5
FishermansFriend, v
Gladius, vr28
Junk, v1.0.4
kgPanels, vv1.31
kRestack, v1.0.8
LearningAid, v1.07.2
MikScrollingBattleText, v5.4.61
Molinari, v30100.16
NeonChat, v
numeinSharedMedia, v1.0
oGlow, v1.12
OmniCC, v2.5.5
OmniCCOptions, v
OmniCCPulse, v1.1.0
OPie, v
Postal, v3.1.2
rActionBarStyler, v
rActionButtonStyler, v
RangeDisplay, v3.5.0
RatingBuster, v
Reflux, v1.7RC2
SatrinaBuffFrame, v3.1
SBFOptions, v3.1
SellFish, v2.1.10
ShadowedUFArena, v
ShadowedUFGrid, v
ShadowedUFSmoothBars, v
ShadowedUnitFrames, v
ShadowedUnitFramesFive, v
ShadowsightTimer, v1.30
SharedMedia, v3.0.1-177
SharedMediaAdditionalFonts, v1.0
Skada, v1.2-17
SkadaAbsorbs, v1.0
SkadaCC, v1.0
SkadaDamage, v1.0
SkadaDamageTaken, v1.0
SkadaDeaths, v1.0
SkadaDebuffs, v1.0
SkadaDispels, v1.0
SkadaEnemies, v1.0
SkadaFailbot, v1.0
SkadaHealing, v1.0
SkadaPower, v1.0
SkadaThreat, v1.0
Skillet, v
SlideBar, v3.1.13 (<%codename%>)
SmartBuff, v3.1a
SmartDebuff, v3.1a
TidyThreat, v
TipTac, v09.05.26
TipTacItemRef, v09.05.25
TipTacTalents, v09.05.25
TrainerSkills, v3.11c
TukuiCDT, v
TukuiSimpleChat, v
TukzStats, v
(ck=71f)
Report comment to moderator  
Reply With Quote
Unread 02-04-09, 09:29 AM  
jadakren
A Flamescale Wyrmkin
 
jadakren's Avatar
AddOn Author - Click to view AddOns

Forum posts: 103
File comments: 112
Uploads: 2
Originally posted by Andeh
this addon no longer works.
Three cheers for the master of bug reporting, please neck yourself.
Report comment to moderator  
Reply With Quote
Unread 01-27-09, 07:27 AM  
serbaut
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Do a /junk flush and it will resolve itself.
Report comment to moderator  
Reply With Quote
Unread 01-18-09, 01:00 PM  
Andeh
A Wyrmkin Dreamwalker

Forum posts: 54
File comments: 27
Uploads: 0
this addon no longer works.
Report comment to moderator  
Reply With Quote
Unread 01-17-09, 11:09 AM  
bknab
An Aku'mai Servant

Forum posts: 32
File comments: 20
Uploads: 0
I'm having the same issues as the previous posters.
Report comment to moderator  
Reply With Quote
Unread 01-14-09, 01:39 AM  
Flak
A Murloc Raider

Forum posts: 4
File comments: 84
Uploads: 0
Also getting this error when mousing over the button to sell:
Message: ..\AddOns\Junk\Junk.lua line 32:
attempt to index global 'JunkItems' (a nil value)
Report comment to moderator  
Reply With Quote
Unread 01-13-09, 10:08 AM  
karmamuscle
A Cobalt Mageweaver
 
karmamuscle's Avatar
AddOn Author - Click to view AddOns

Forum posts: 205
File comments: 173
Uploads: 1
Got this error today.
Code:
Date: 2009-01-13 17:06:40
ID: 2
Error occured in: Global
Count: 1
Message: ..\AddOns\Junk\Junk.lua line 32:
   attempt to index global 'JunkItems' (a nil value)
Debug:
   [C]: ?
   Junk\Junk.lua:32: TotalPrice()
   Junk\Junk.lua:88:
      Junk\Junk.lua:85
Report comment to moderator  
Reply With Quote
Unread 01-12-09, 03:00 PM  
karmamuscle
A Cobalt Mageweaver
 
karmamuscle's Avatar
AddOn Author - Click to view AddOns

Forum posts: 205
File comments: 173
Uploads: 1
I get this error when trying to push the sell button
Code:
Date: 2009-01-12 21:57:59
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Junk\Junk.lua line 13:
   attempt to index global 'JunkItems' (a nil value)
Debug:
   [C]: ?
   Junk\Junk.lua:13:
      Junk\Junk.lua:8
I am using version 1.0.3
Report comment to moderator  
Reply With Quote
Unread 07-03-07, 05:48 PM  
jacelongbow
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 6
Uploads: 1
Nice addon

Hi, I am just gonna leave a comment saying how much I love this add on! It helps get extra inv. space, it gives you a little extra cash, and I love the fact that you can do /junk (link of item) to make that item be sold as well. This mod rocks!


..simple to
__________________
Man#1: you put your seed in my daughters belly! get outta my house!
Man#2: Man your lucky your my brother ot id mess you up right here!
Man#1: Hey Watch your language!
Man#2: Sorry Pa

WhaaAaAA
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: