Thread Tools Display Modes
12-12-09, 02:09 AM   #1
Darkmoone
A Defias Bandit
AddOn Compiler - Click to view compilations
Join Date: Oct 2007
Posts: 3
Auto Greed/DE instance loot

Simple mod to Auto Disenchant dropped loot in instances and if there is no Enchanter in the group then Auto Greed. Set by color. I realize Passloot is similar but does a mod need to be so complicated?.
  Reply With Quote
12-12-09, 04:36 AM   #2
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
This will auto roll DE on green BoE items or greed if there is no one to DE.

Code:
local f = CreateFrame("Frame", nil, UIParent)
 
f:RegisterEvent("START_LOOT_ROLL")
f:SetScript("OnEvent", function(_, _, id)
if not id then return end
local _, _, _, quality, bop, _, _, canDE = GetLootRollItemInfo(id)
if quality == 2 and not bop then RollOnLoot(id, canDE and 3 or 2) end
end)
This was just talked about on wowace.com.
  Reply With Quote
12-14-09, 06:15 AM   #3
Darkmoone
A Defias Bandit
AddOn Compiler - Click to view compilations
Join Date: Oct 2007
Posts: 3
AH thanks makes life so much easier!
  Reply With Quote
12-16-09, 07:43 AM   #4
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
I try to expand the above example.
There are two requesters that come up that I want to
autoanswer. I think I found the right events and for
the bindonuse I found the right command.

LOOT_BIND_CONFIRM -> ConfirmBindOnUse()

I guess for the disenchant warning the event is

CONFIRM_DISENCHANT_ROLL

but I cant find a function to anwer it

Any ideas ?

Edit: Ah, found it

ConfirmLootRoll(id,type)

Last edited by Rilgamon : 12-16-09 at 09:03 AM.
  Reply With Quote
01-15-10, 01:23 PM   #5
mgameulstee
A Defias Bandit
Join Date: Oct 2006
Posts: 2
Could you post your code it has my intress
  Reply With Quote
01-15-10, 01:55 PM   #6
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 156
Originally Posted by Darkmoone View Post
Simple mod to Auto Disenchant dropped loot in instances and if there is no Enchanter in the group then Auto Greed. Set by color. I realize Passloot is similar but does a mod need to be so complicated?.
Complicated? It's complex, but far from complicated.
If you need help setting it, ask in mod comments.
For you, it seems you need only one rule:

[x] Greed [x] DE
Quality: Uncommon
Bind on: Equip
  Reply With Quote
01-15-10, 02:09 PM   #7
mgameulstee
A Defias Bandit
Join Date: Oct 2006
Posts: 2
Well 1st of all im not good with lua (still learning the code) and what im looking for is following:

1. DE on Greens
2. DE on Blue BoP
3. GR on Blue BoE

But i was thinking to make an mod with settings like:

Item | Need | Greed | DE | Pass
Green | - | - | X | -
  Reply With Quote
01-15-10, 02:35 PM   #8
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 156
Originally Posted by mgameulstee View Post
Well 1st of all im not good with lua (still learning the code) and what im looking for is following:

1. DE on Greens
2. DE on Blue BoP
3. GR on Blue BoE

But i was thinking to make an mod with settings like:

Item | Need | Greed | DE | Pass
Green | - | - | X | -
PassLoot doing that already... :P
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Auto Greed/DE instance loot


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off