Thread Tools Display Modes
03-21-24, 02:28 PM   #1
Codger
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2021
Posts: 35
10.2.6 API Changes to Item functions

Most of the item functions now require the use of the C_item namespace as noted here Warcraft Wiki - Patch_10.2.6 API changes

As an example:
previously: name = GetItemInventorySlotInfo(inventoryType);
10.2.6: name = C_Item.GetItemInventorySlotInfo(inventoryType);

Last edited by Codger : 03-21-24 at 02:31 PM.
  Reply With Quote
06-28-24, 11:42 PM   #2
Kharthus
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 27
hooksecurefunc("C_Item.UseItemByName", newfunc)

Gives an error of function not found, but the following code works. So weird.

UseItemByName = C_Item.UseItemByName
hooksecurefunc("UseItemByName", newfunc)
  Reply With Quote
06-29-24, 09:09 AM   #3
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,974
Improper use of hooksecurefunc

Code:
hooksecurefunc(C_Item, "UseItemByName", newfunc)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote

WoWInterface » PTR » PTR API and Graphics Changes » 10.2.6 API Changes to Item functions

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