Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/04/22, 05:35 AM   #1
static_recharge
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 35
Prehooking DestroyAllJunk

I'm having an issue with Prehooking the DestroyAllJunk() function. I'm fairly new to Prehooking but I followed a few examples and can't seem to get it to work. I want to grab some info about the items before they are all destroyed. Here is my code, right now it's just a message to chat to make sure it works and nothing happens. I have return set to true so that the original function doesn't run just for testing purposes but it runs anyway.

Code:
ZO_PreHook("DestroyAllJunk", function() d("test") return true end)
That line is in my Initialization function. Any help always appreciated!
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Prehooking DestroyAllJunk


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