Quantcast How to get a book-object ID - WoWInterface
Thread Tools Display Modes
04-28-18, 11:58 AM   #1
Platine
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 15
Post How to get a book-object ID

In the Royal Library at Stormwind Keep, there are books on the table.
You can not pick them up and take them with you.
But you can open them and read them in the window ItemTextFrame.



We can retrieve title of book, text and page number from functions:
ItemTextGetItem()
ItemTextGetText()
ItemTextGetPage()

How to get this object ID ?

Last edited by Platine : 04-28-18 at 03:12 PM.
  Reply With Quote
04-29-18, 06:02 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,732
The only way I can think of is check the tooltip for a mouseover unit when it pops up and query it for a UnitGUID(). This is if the game triggers the tooltip with tooltip:SetUnit() instead of just tooltip:SetText() internally. It does this with some objects, but not all.

You may also check on events such as UPDATE_MOUSEOVER_UNIT.
__________________
ESOUI AddOns | 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)

Last edited by SDPhantom : 04-29-18 at 06:08 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » How to get a book-object ID

Thread Tools
Display Modes

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