![]() |
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 |
Is it possible you could use GetItemInfo with ItemTextGetItem(), and retrieve the item id from item link?
|
GetItemInfo(ItemTextGetItem()) return empty result
|
![]() 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. |
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. |
My mistake for assuming you were looking for an item ID rather than an object ID.
In not sure, then. |
All times are GMT -6. The time now is 07:56 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI