GetObjectByGUID return always NULL menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    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 kynox View Post
    I just hook EndScene via a Virtual Function hook by obtaining the already created IDirect3DDevice9 pointer stored in the CGxDevice3d class.

    Ooooohh well la-di-da then Mr Smartypants.

    /endsarcasm

    GetObjectByGUID return always NULL
  2. #17
    kynox's Avatar Member
    Reputation
    830
    Join Date
    Dec 2006
    Posts
    888
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post

    Ooooohh well la-di-da then Mr Smartypants.

    /endsarcasm
    Jealous.

    /endpwn

  3. #18
    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 kynox View Post
    Jealous.

    /endpwn

    Hardly.

    Hooking D3D funcs is harrrrrd. Amirite?

    Besides, hooking CreateDevice allows me to grab the window's handle in a generic way and set up input detection. Much easier than reversing out a static pointer in every game.

    And anyway, even if I could be bothered to do it in a manner that doesn't require me to create and hook the process on startup it would be pointless, I've got stuff that needs to be done then anyway.

    Silly jew. Trix are for kids.

    Go infect yourself with more spyware.

  4. #19
    goderion's Avatar Active Member
    Reputation
    25
    Join Date
    Oct 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello.

    Thank you all for the responses.

    I have find a way, to hook EndScene without hooking any other function.
    Its really simple, you need to create your own Direct3DDevice9 and then you can get easy the address of EndScene and hook it. This works great and now it dont crash anymore if i interact with all. ^^

    This works only if WoW is running in windowed-mode, if its in fullscreen, i need to get the address of EndScene in my Injector and then pass it to my injected dll. If you create an additional Direct3DDevice9 in a fullscreen-application, weird things will happen. ^^

    If someone is interested in the sourcecode, i will post it here.

    Another question: If i would get Lua_DoString to work, do i need CastSpellById anymore? Currently Lua_DoString dont work, dont know why, nothing happens.

    In WoWXBase it is defined as follows:
    typedef void ( __cdecl * tLua_Dostring )( char * pszString, char * pszString2, void * pState );

    FindPattern find this address:
    Lua_DoString: 0077DEF0

    i call the function like this:
    Lua_DoString("/cast Throw\r\n", NULL, NULL);

    NARF. I searched this and other forums for an example how to use Lua_DoString, but i found nothing.

  5. #20
    hypnodok's Avatar Member
    Reputation
    19
    Join Date
    Nov 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please, do post the code.
    You can find examples on how to call DoString in the 3.0.2 Information thread btw.

  6. #21
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by goderion View Post
    i call the function like this:
    Lua_DoString("/cast Throw\r\n", NULL, NULL);

    NARF. I searched this and other forums for an example how to use Lua_DoString, but i found nothing.
    I seem to remember seeing a post where someone (probably Cypher or Kynox) saying that you have to pass the same string as arguments one and two. Lua_DoString("/cast Throw", "/cast Throw", NULL);, or something. I may be wrong, so I suggest attempting to find the thread I'm thinking of, but you might give it a shot anyway.

  7. #22
    jjaa's Avatar Contributor
    Reputation
    245
    Join Date
    Dec 2006
    Posts
    562
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Shynd View Post
    I seem to remember seeing a post where someone (probably Cypher or Kynox) saying that you have to pass the same string as arguments one and two. Lua_DoString("/cast Throw", "/cast Throw", NULL);, or something. I may be wrong, so I suggest attempting to find the thread I'm thinking of, but you might give it a shot anyway.
    Originally Posted by Cypher View Post
    Hey, what exactly are you passing to the function. Could you give me a real example so I could see?

    typedef void (__cdecl * tDoString)(const char * pszExec1, const char * pszExec2, void * pState = 0);
    tDoString MyDoString = (tDoString)(0x0077DEF0);
    MyDoString("ForceQuit()","ForceQuit()");

    WARNING: The code above is untested and off the top of my head. It should work though.

    If you can't get it working reply again and I'll write up some test code for you.

    Its obvious you're well above the level of the moron in that other thread and the fact that you've been able to jump into IDA and do some research on your own makes me more than happy to give you a hand.


    That's what Cypher posted
    Also i don't think that

    Code:
    Lua_DoString("/cast Throw", "/cast Throw")
    would work i think it would have to be something like

    Code:
    Lua_DoString("CastSpell(1, \"spell\")", "CastSpell(1, \"spell\")");
    Not sure but.

    EDIT:
    Code:
    MyDoString("CastSpellByName(\"Fireball\")", "CastSpellByName(\"Fireball\")");
    Would be better...
    Last edited by jjaa; 12-02-2008 at 02:14 AM.

  8. #23
    goderion's Avatar Active Member
    Reputation
    25
    Join Date
    Oct 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the attachment is the code.

    Thanks to you all. Now it works properly.

    I thought i could use the text, i would paste into the WoW macro-managment (/macro), but this won´t work.

    Lua_DoString("CastSpellByName(\"Throw\");", "CastSpellByName(\"Throw\");", NULL);
    works great! Thanks to you all.

    EDIT: Cant upload my file to the attachment, NARF.
    Here it is: RapidShare: Easy Filehosting
    Last edited by goderion; 12-02-2008 at 12:44 PM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Always get STV Chest
    By Pixo in forum World of Warcraft Guides
    Replies: 17
    Last Post: 09-26-2015, 11:57 AM
  2. IsInMyPartyOrRaid always returns 0.
    By haku43 in forum WoW Memory Editing
    Replies: 1
    Last Post: 04-04-2011, 01:48 AM
  3. LuaStack returning null values
    By miceiken in forum WoW Memory Editing
    Replies: 5
    Last Post: 06-24-2010, 06:25 AM
  4. always get STV chest in the arena! only rogues,sorry!
    By thisistheend861 in forum World of Warcraft Guides
    Replies: 6
    Last Post: 01-29-2007, 08:34 PM
  5. Replies: 52
    Last Post: 01-26-2007, 11:19 PM
All times are GMT -5. The time now is 03:54 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