Thread Tools Display Modes
09-01-10, 11:29 AM   #1
upyursh
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 32
Boe

Hey, does anybody know how I would determine if an item in a loot window is BoE?

Thanks for your help
  Reply With Quote
09-01-10, 11:30 AM   #2
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 384
Tooltip?

(Message too short)
__________________

  Reply With Quote
09-01-10, 11:45 AM   #3
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
Tooltip!

Parse the second line and see if it matches ITEM_BIND_ON_EQUIP. it is probably best to create your own tooltip for this one so that you won't interfere with the GameTooltip.

I've got a working example here, as a module of my bag addon:
tooltip.lua
__________________
« Website | GitHub »

Oh hai!
  Reply With Quote
09-01-10, 12:01 PM   #4
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 384
Also, try to find a auto skip bop message addon (can't remember a name right now) and see how that checks the item.

I guess just a normal item check would do fine.
__________________

  Reply With Quote
09-01-10, 12:43 PM   #5
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Code:
local texture,name,count,quality,bop,canneed,cangreed,cande=GetLootRollItemInfo(lootid);
Practically any item with quality greater than 1 that isn't BoP is BoE.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
09-01-10, 01:03 PM   #6
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 716
Originally Posted by SDPhantom View Post
Code:
local texture,name,count,quality,bop,canneed,cangreed,cande=GetLootRollItemInfo(lootid);
Practically any equippable item with quality greater than 1 that isn't BoP is BoE.
Fixed. 10char
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
  Reply With Quote
09-01-10, 01:14 PM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Originally Posted by nightcracker View Post
Practically any equippable item with quality greater than 1 that isn't BoP is BoE.
Fixed. 10char
That's just a general rule, hence "practically".
BTW, I don't think loot rolling pops up anymore for items that aren't either BoE or BoP.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
09-01-10, 01:49 PM   #8
upyursh
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 32
Thanks peeps This is more for Master Looting, but I will have a look.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Boe


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