Question: How to keep a lua callback registered, after WoW UI is reloaded menu

Shout-Out

User Tag List

Results 1 to 11 of 11
  1. #1
    noctural's Avatar Active Member Captain Copypasta CoreCoins Purchaser
    Reputation
    26
    Join Date
    Apr 2009
    Posts
    76
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question: How to keep a lua callback registered, after WoW UI is reloaded

    I'm able to register a lua callback via injection. After I log out of one character and onto another, the registered callback is now gone (I'm guessing because lua is reloaded during login).

    My question is, do most people have an EndScene hook that calls lua_gettype on the registered callback name and check the return value for "nil" or "function" ? If not found, reregister?

    I was hoping there would be a better function to hook than EndScene....so I'm not checking every frame. Maybe a method like "Lua engine is loaded" ?

    Thanks!

    Question: How to keep a lua callback registered, after WoW UI is reloaded
  2. #2
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most of us just hook the LoadFunctions... function. Shouldn't be hard to find it.

    Reregister your stuff after the func is called.

  3. #3
    Chinchy's Avatar Active Member
    Reputation
    21
    Join Date
    Mar 2009
    Posts
    71
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Watch for events or register every frame. There might be a method that gets called after a reload but I'm not sure.

    Edit:
    Apoc beat me. Apparently there is a function to hook.
    Last edited by Chinchy; 02-11-2011 at 04:23 PM.

  4. #4
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You don't have to hook anything.

    Just reregister whenever the player pointer or the game 'state' changes (there was a global I used to use, can't remember what it was called).

  5. #5
    noctural's Avatar Active Member Captain Copypasta CoreCoins Purchaser
    Reputation
    26
    Join Date
    Apr 2009
    Posts
    76
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    You don't have to hook anything.

    Just reregister whenever the player pointer or the game 'state' changes (there was a global I used to use, can't remember what it was called).
    With only an injected dll(no outside process debugging), in order to read the game state on intervals, would I need to hook EndScene?

    note: Function hook works.
    Last edited by noctural; 02-12-2011 at 09:55 AM.

  6. #6
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why would you hook an engine function over simply hooking endscene? In a private injected bot the former can (not saying it will, but it CAN if the Warden guy decides to up his game) get you banned, the latter won't.

  7. #7
    noctural's Avatar Active Member Captain Copypasta CoreCoins Purchaser
    Reputation
    26
    Join Date
    Apr 2009
    Posts
    76
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    Why would you hook an engine function over simply hooking endscene? In a private injected bot the former can (not saying it will, but it CAN if the Warden guy decides to up his game) get you banned, the latter won't.
    I guess the short answer is that I'm lazy and I understand patching/hooking.. but not necessarily VMT and D3D device instantiation to find EndScene.

  8. #8
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by noctural View Post
    but not necessarily VMT and D3D device instantiation to find EndScene.
    This part of your statement shows you know more about it than half the people here who do it. And by that I mean you can find copy pasta here that does it.

  9. #9
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by namreeb View Post
    This part of your statement shows you know more about it than half the people here who do it. And by that I mean you can find copy pasta here that does it.
    ^ This .

  10. #10
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    (shorter Cypher) hook EndScene
    Don't believe everything you think.

  11. #11
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by noctural View Post
    I guess the short answer is that I'm lazy and I understand patching/hooking.. but not necessarily VMT and D3D device instantiation to find EndScene.
    That, and if you're lazy like me; it gives you the same "EndScene" hook, for any current graphics device WoW is using. (OGL, DX9/DX11, etc) If you wanna draw inside WoW, it's different. :P

Similar Threads

  1. [How-To] Question how to keep the best Magikarp
    By Qu1ckSilveR in forum Pokemon GO Hacks|Cheats
    Replies: 5
    Last Post: 08-15-2016, 05:38 PM
  2. how to keep your Hyjal/Uldum.. items after ban
    By Nanda in forum World of Warcraft Exploits
    Replies: 6
    Last Post: 12-03-2010, 08:35 PM
  3. [Question] How do you make your own design for WoW
    By aznboy in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 02-17-2008, 12:15 AM
  4. Question: How to keep a stolen Account.
    By Torx in forum Community Chat
    Replies: 4
    Last Post: 12-17-2007, 11:14 AM
  5. [Question]How do I get the proper animations after a model swap?
    By DragonRealms in forum WoW ME Questions and Requests
    Replies: 8
    Last Post: 11-24-2007, 09:12 AM
All times are GMT -5. The time now is 11:56 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search