Simple lua code help
Want to do the following
lets say we have a function called X in the middle of the code, I want to add code to that function X but adding it at the end of the Lua file or even better in another Lua file In the practice what I want is to add all that code again to that function but instead of looking all over the addon and messing the code I just want to add my custom code:eek: and then just call a line or 2 in that function, that way I know my custom code its at the end of the file(or another file would be even better) |
http://www.wowpedia.org/Hooking_functions is what you're looking for.
|
thanks, but thats is abit out of my league...
Would you be so kind to exemplify in this how I can do it? Code:
function Whatever() |
Code:
local function yourfunction() |
Quote:
What you can do is: Lua Code:
Lua Code:
Please post the function you want to alter and the code you want to use. Then we can get more into detail. |
Oh boy spread the taint, break everything! I hope protected/secure API get involved. :P
|
All times are GMT -6. The time now is 07:55 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI