Jelly 0 Report post Posted May 26, 2016 can someone make a hooking guide? i think a lot of us dont know how to do it Quote Share this post Link to post Share on other sites
Foxseiz 138 Report post Posted May 26, 2016 Hooking what? There are lots of kind of hooking. If you know what I mean ?? Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted May 26, 2016 Thread moved to 'Questions & Help' section. Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
MonkeyCode 453 Report post Posted May 26, 2016 Couple hooking that I know:First (hooking a fishing pole): buy a fishing pole buy fishing lines buy a hook tie hook to fishing lines Second (hooking up with a girl): find a girl you like impress her Third (hooking in lua): I assume this is the one you're looking for. lets begin by saying functions in LUA does not need a name. a) function say(str) print(str) end say("Hello World")is the same as: b) say = function(str) print(str) end say("Hello World)is also the same as: c) (function(str) print(str) end)("Hello World") when we are hooking, it is essential that functions have a "name" (like a and b) By using this mechanism of assigning functions to variable/name, we are able to hook very easily in LUA. oldSay = Say -- this assigns the Say function to oldSay Say = function(str) -- this is the new Say function print("NEW") oldSay(str) -- but we are also calling the old say, Therefore "hooking" end Not really a guide, but a simple explanation.Fourth (hooking exe): Know what you want to change in exe (maybe an instruction or hardcoded value) Find location where instructions does not exist and insert your new codes Find the location of instructions you want to change via breakpoints, jump address to your new code jump back to the ending of the original codes 2 Quote Share this post Link to post Share on other sites
Foxseiz 138 Report post Posted May 26, 2016 Seems like @xtc knows what I mean. LOL Quote Share this post Link to post Share on other sites
Jelly 0 Report post Posted May 27, 2016 (edited) @xtc hahah thx man a detailed guide of different hookings I was wondering about the hooking function (hook.lua) that is made by MaTT (i think?) why do ppl do it? what is the purpose? thx also another thing i found is called Serialize i hope to know what both of them are and what they are for Edited May 27, 2016 by Jelly Quote Share this post Link to post Share on other sites