Thread Tools Display Modes
06-08-07, 12:27 PM   #1
shiin
A Fallenroot Satyr
Join Date: Feb 2005
Posts: 23
Secure hooking

Hi there,
I want to securley hook GameTooltip:SetUnit but I don't know the correct syntax - e.g. hooksecurefunc("GameTooltip:SetUnit", ColoredTooltip_SetUnit); wasn't the right way to do it.
Could anybody help me in how this works?


bye
shiin

Edit:
found it: hooksecurefunc(GameTooltip,"SetUnit", func);

Last edited by shiin : 06-08-07 at 12:53 PM.
  Reply With Quote
06-08-07, 12:53 PM   #2
Kaomie
A Scalebane Royal Guard
 
Kaomie's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 438
Here is the API:
http://www.wowwiki.com/API_hooksecurefunc

Hope it helps,
__________________
Kaomie
"WE LOTS OF PEOPLE FROM STRONG SERVER GUILDS" - Trade Channel
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Secure hooking


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