google-site-verification: googlebaca44933768a824.html How does I IGameResources? - Old Royal Hack Forum

Announcement

Collapse
No announcement yet.

How does I IGameResources?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How does I IGameResources?

    PHP Code:
        IGameResourcesGetGameResources( )
        {
            
    IGameResourcesres;
            static 
    DWORD funcadd NULL;
            if( !
    funcadd )
                
    funcadd Utils::FindPattern( (DWORDGetModuleHandle_T("client.dll") ), 0x5F600, (PBYTE"\xA1\x00\x00\x00\x00\x85\xC0\x74\x06\x05""x????xxxxx" );
            
            
    typedef IGameResources* (*GGR_t) (void);
            
    GGR_t GGR = (GGR_tfuncadd;
            return 
    GGR();
        } 

    #2
    Does this compile with Notepad (Windows 7 version?)
    lolmaoman: Germans are born with a lifetime x22 login engraved into their birth certificates. True story.
    I DONT HAVE TEAMVIEWER AND IM NOT GOING TO GIVE ANY 24/7 ONLINE SUPPORT VIA STEAM, XFIRE OR OTHER IM PROGRAMS SO DONT BOTHER ASKING. THANKS.

    Comment


      #3
      You may need wordpad :|

      Comment


        #4
        CSS:

        Code:
        2406F6D0   A1 C0A33B24      MOV EAX,DWORD PTR DS:[243BA3C0]
        2406F6D5   85C0             TEST EAX,EAX
        2406F6D7   74 06            JE SHORT client.2406F6DF
        2406F6D9   05 60040000      ADD EAX,460
        2406F6DE   C3               RETN
        2406F6DF   33C0             XOR EAX,EAX
        2406F6E1   C3               RETN
        
        
        client Base 24000000 Size 479000 \xA1\x00\x00\x00\x00\x85\xC0\x74\x06\x05\x00\x00\x00\x00\xC3\x33\xC0\xC3 x????xxxxx????xxxx
        
        GetModuleHandle( "client" ) + 0x6f6d0; // Address 2406f6d0 Base 24000000
        Code:
        		DWORD dwGameResources = *( (PDWORD) 0x243BA3C0 );
        		My_GameResources = (IGameResources*) ( dwGameResources + 0x460 );
        :party0019:
        Last edited by Lawgiver; 11-04-2009, 10:55 AM.

        Comment


          #5
          code tags please! I am aging every second and cannot bare to read that horrid text any longer!
          /* fibre */

          Comment


            #6
            Law, what you are failing to understand ( no offense though ) with that is what you are sigscanning for originally (or what you have the address for) is a function that returns igameresources. Therefore, there's no need to duplicate the functionality of that function, simply call the function and IGameResources* is it's retval :)
            Last edited by Xeno123; 11-04-2009, 03:42 AM.

            Comment


              #7
              Originally posted by Xeno123 View Post
              Law, what you are failing to understand ( no offense though ) with that is what you are sigscanning for originally (or what you have the address for) is a function that returns igameresources. Therefore, there's no need to duplicate the functionality of that function, simply call the function and IGameResources* is it's retval :)
              I have pretty much understood that but I think my solution is nicer than making a function-typedef, sigscanning for the adress and then calling the function.

              I've just redone the function in my code, what's wrong with it? :P

              I often do that, WeaponIDToAlias, GetBaseCombatWeapon, GetWeaponID... ;)

              I assume it goes into coding style? :)

              Comment


                #8
                Yeah I s'pose it's just coding style :P

                Comment


                  #9
                  I'm pretty sure GameResources has been posted 5000 times so far... It's all the same.

                  Comment


                    #10
                    but now we got an example on rh for people who dont know about gd for example..
                    I 0x90 you!

                    Comment


                      #11
                      usefull spam :p thanks






                      gibs coins @
                      1KatP9B8KG7mvcoFhdLGua1isG88nYZE8C

                      Comment

                      Working...
                      X