Quantcast ItemTextFrame - WoWInterface
Thread Tools Display Modes
02-07-18, 11:42 AM   #1
Platine
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 15
ItemTextFrame

I display a book in the game into frame ItemTextFrame.
How can I get the ID this book?

I can only get:
ItemTextGetItem() - title of book
ItemTextGetText() - book's contents
ItemTextGetPage() - number of current page
  Reply With Quote
02-07-18, 12:02 PM   #2
Ammako
A Cobalt Mageweaver
 
Ammako's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 249
Is it possible you could use GetItemInfo with ItemTextGetItem(), and retrieve the item id from item link?
__________________
  Reply With Quote
02-09-18, 03:58 PM   #3
Platine
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 15
GetItemInfo(ItemTextGetItem()) return empty result
  Reply With Quote
02-09-18, 04:25 PM   #4
Ammako
A Cobalt Mageweaver
 
Ammako's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 249


If you're getting nil results, make sure the book is currently being read.

If it is, then you could run it again once GET_ITEM_INFO_RECEIVED fires, but since you presumably have the item in your inventory and are reading it, the info should already be available in memory so this shouldn't be happening.


Actually it looks like GetItemInfoInstant just returns itemID directly? I checked that the other day and I thought it didn't, but I must have misread. That would be the better and more straightforward way of doing it.



First output being the itemID for the book item being read.
__________________

Last edited by Ammako : 02-18-18 at 07:16 PM.
  Reply With Quote
02-19-18, 11:05 AM   #5
Platine
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 15
I'm reading a book direct from the table (in Undercity), not from bag.





This book have ID = 175749
http://www.wowhead.com/object=175749...-frozen-throne

GetItemInfo(175749) return empty result too.

Last edited by Platine : 02-19-18 at 11:10 AM.
  Reply With Quote
02-19-18, 12:19 PM   #6
Ammako
A Cobalt Mageweaver
 
Ammako's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 249
My mistake for assuming you were looking for an item ID rather than an object ID.
In not sure, then.
__________________
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » ItemTextFrame

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