View Single Post
11/04/20, 04:02 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Try CallSecureProtected as wrapper around UseItem.
Lua Code:
  1. if IsProtectedFunction("UseItem") then
  2.             CallSecureProtected("UseItem", bagId, slotIndex)
  3.         else
  4.             UseItem(bagId, slotIndex)
  5.         end


If this does not work I'm not sure if there is a way to make your code NOT taint the inventory code. I'm pretty unsure why the code get's insecure though. Are you hooking/chaning any inventory code for your menu? If so try SecurePostHook instead of ZO_PostHook etc.
  Reply With Quote