BurningMan Rev1

Results 1 to 13 of 13
  1. #1
    Account Upgraded | Title Enabled! PenguinGuys is offline
    MemberRank
    Sep 2009 Join Date
    AlabamaLocation
    261Posts

    BurningMan Rev1

    I just re-started it yesterday, literally about 1 hour of coding it. I'll fix up some issues later, in the mean time, maybe someone could tidy it up.

    Known issues:
    -Chat Commands are to buggy to use
    -You can only save 1 spot
    -Fire is a little to small

    Not much in it, I know.

    Code:
    #include "stdafx.h"
    #include <windows.h>
    
    #define Keys(a, b) GetAsyncKeyState(a)&0x8000 && GetAsyncKeyState(b)
    
    struct MUID
    {
    	unsigned long Low;
    	unsigned long High;
    };
    
    DWORD ZChar;
    DWORD *pGame               = (DWORD*)0x00672F68;
    DWORD ZChatAdd             = 0x0042A230;
    DWORD SpawnItemAdd         = 0x004B4640;
    DWORD ZEffectManagerAdd    = 0x004ABDB0;
    DWORD ZGetGameAdd          = 0x004ABDD0;
    DWORD ZGetClientAdd        = 0x004ABCC0;
    DWORD ZGetInterfaceAdd     = 0x004ABCF0;
    DWORD AddFireAdd           = 0x00468150;
    DWORD SetHPAdd             = 0x00473750;
    DWORD SetAPAdd             = 0x00473760;
    DWORD GetHPAdd             = 0x00473730;
    DWORD GetAPAdd             = 0x00473740;
    
    float D3D[3];
    float D3D1[3];
    float D3D2[3];
    
    MUID* HOLD  = new MUID();
    MUID* CHARR = new MUID();
    MUID* STAGG = new MUID();
    
    typedef void(__cdecl *ZChatType) (const char*, int, int, DWORD);
    ZChatType ZChat = (ZChatType)ZChatAdd;
    
    typedef void(__cdecl *SpawnItemType) (MUID*, int, float*);
    SpawnItemType SpawnItem = (SpawnItemType)SpawnItemAdd;
    
    typedef DWORD(__cdecl *ZGetClientType) ();
    ZGetClientType ZGetClient = (ZGetClientType)ZGetClientAdd;
    
    typedef DWORD(__cdecl *ZGetGameType) ();
    ZGetGameType ZGetGame = (ZGetGameType)ZGetGameAdd;
    
    typedef DWORD(__cdecl *ZGetInterfaceType) ();
    ZGetInterfaceType ZGetInterface = (ZGetInterfaceType)ZGetInterfaceAdd;
    
    DWORD pChar()
    {
        if (pGame != NULL && *pGame != NULL)
    	{
    		return *(DWORD*)(*pGame + 0x50);
    	}
    	return NULL;
    }
    
    unsigned long GetMe()
    {
        return *(DWORD*)(ZGetClient() + 0x1A4);
    }
    
    unsigned long GetStage()
    {
        return *(DWORD*)(ZGetClient() + 0x1B4);
    }
    
    float *GetPos(DWORD ZChar)
    {
        DWORD ECX = ZChar; 
        DWORD EAX = *(DWORD*)(ECX + 0x58);
        ECX = *(DWORD*)(EAX + 0x20);
        DWORD EDX = *(DWORD*)(EAX + 0xC);
        EAX = *(DWORD*)(EDX + ECX * 0x4);
        return (float*)EAX;
    }
    
    void SetPos(float *AllPos)
    {
        float *Poss = GetPos(pChar());
        Poss[0] = AllPos[0];
        Poss[1] = AllPos[1];
        Poss[2] = AllPos[2];
    }
    
    char *LastInput()
    {
        return (char*)(ZGetInterface() + 0x3A8);
    }
    void ClearInput()
    {
        (*(char*)(ZGetInterface() + 0x3A8)) = '/n';
    }
    
    
    void Fire()
    {
    	ZChar = pChar();
    	__asm
    	{
    		PUSH ZChar
    		CALL ZEffectManagerAdd
    		MOV ECX, EAX
    		CALL AddFireAdd
    	}
    }
    
    void SetHP(int nHP)
    {
    	ZChar = pChar();
    	__asm
    	{
    		MOV ECX, ZChar
    		MOV EAX, SetHPAdd
    		PUSH nHP
    		CALL EAX
    	}
    }
    
    void SetAP(int nAP)
    {
    	ZChar = pChar();
    	__asm
    	{
    		MOV ECX, ZChar
    		MOV EAX, SetAPAdd
    		PUSH nAP
    		CALL EAX
    	}
    }
    
    int GetHP()
    {
    	ZChar = pChar();
    	int ReturnVal;
    	__asm
    	{
    		MOV ECX, ZChar
    		MOV EAX, GetHPAdd
    		CALL EAX
    		MOV ReturnVal, EAX
    	}
    	return ReturnVal;
    }
    
    int GetAP()
    {
    	ZChar = pChar();
    	int ReturnVal;
    	__asm
    	{
    		MOV ECX, ZChar
    		MOV EAX, GetAPAdd
    		CALL EAX
    		MOV ReturnVal, EAX
    	}
    	return ReturnVal;
    }
    
    
    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////          ////////          ////////          ////////          ////////          ////////          /////
    ////////          ////////          ////////          ////////          ////////          ////////          ////
    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////
    
    bool bHelper = false;
    bool bGame   = false;
    bool bFire   = false;
    
    int spot = 0;
    
    void Helper()
    {
    	while(1)
    	{
    	    if(bHelper && pChar())
    	    {
    		    if(Keys(VK_MENU, 'P'))
    		    {
    			    float *Pos = GetPos(pChar());
    			    D3D[0] = Pos[0];
    			    D3D[1] = Pos[1];
    			    D3D[2] = Pos[2];
    			    ZChat("Spot saved!", 2, 0, 0xFFFFFF);
    				spot = 1;
    			}
    		}
    		Sleep(20);
    	}
    }
    
    void FireT()
    {
    	while(1)
    	{
    	    if(bGame && pChar())
    	    {
    		    Fire();
    		    Sleep(100);
    		}
    		Sleep(20);
    	}
    }
    
    void Game()
    {
    	while(1)
    	{
    	    if(bGame && pChar())
    	    {
    		    Sleep(150);
    		    SpawnItem(HOLD, **** D3D); //The *** is  the worlditem ID  fkin RZ censorship.
    		    SetHP(GetHP() - 10);
    		    SetAP(GetAP() - 7);
    		    Sleep(700);
    		}
    		Sleep(20);
    	}
    }
    
    void Keyys()
    {
    	while(1)
    	{
    		if(Keys(VK_MENU, 'M'))
    		{
    			ZChat("Game Mode Activated!", 2, 0, 0xFFFFFF);
    			bGame = !bGame;
    			bFire = !bFire;
    			Sleep(150);
    		}
    		if(Keys(VK_MENU, 'H'))
    		{
    			ZChat("Helper Activated!", 2, 0, 0xFFFFFF);
    			bHelper = !bHelper;
    			Sleep(150);
    		}
    		if(Keys(VK_MENU, 'O'))
    		{
    			ZChat("Alt + M = GameMode", 2, 0, 0xFFFFFF);
    			ZChat("Alt + H = HelperModule", 2, 0, 0xFFFFFF);
    			ZChat("@helper = HelperModule", 2, 0, 0xFFFFFF);
    			ZChat("@mode = GameMode", 2, 0, 0xFFFFFF);
    			Sleep(150);
    		}
    		if(memcmp(LastInput(), "@helper", 6) == 0 || memcmp(LastInput(), "@Helper", 6) == 0)
    		{
    			bHelper = !bHelper;
    			ClearInput();
    		}
    		if(memcmp(LastInput(), "@mode", 5) == 0 || memcmp(LastInput(), "@Mode", 5) == 0)
    		{
    			bGame = !bGame;
    			ClearInput();
    		}
    		Sleep(20);
    	}
    }
    
    
    
    extern "C"
    {
        __declspec(dllexport) BOOL __stdcall DllMain(HINSTANCE hInst, DWORD reason, LPVOID lpv)
        {
            DisableThreadLibraryCalls(hInst);
            if (reason == DLL_PROCESS_ATTACH)
            {
                CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)Helper, NULL, 0, NULL);
                CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&FireT, NULL, 0, NULL);
                CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&Game,0, NULL, NULL);
                CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&Keyys, 0, NULL, NULL);
            }
            return true;
        }
    }
    I attempted to add a few things, but failed. So some things are useless in their.

    Enjoy, and don't flame. I haven't even been coding for a year.

    P.S: Do NOT ask how to use this, or what to do with this code.
    Last edited by PenguinGuys; 05-10-09 at 02:18 AM.


  2. #2

    Re: BurningMan Rev1

    Thanks!

    Off-topic: Are you x1nixmzeng?

  3. #3
    Account Upgraded | Title Enabled! Torsen is offline
    MemberRank
    Jan 2009 Join Date
    294Posts

    Re: BurningMan Rev1

    That is TMan.

  4. #4
    Account Upgraded | Title Enabled! PenguinGuys is offline
    MemberRank
    Sep 2009 Join Date
    AlabamaLocation
    261Posts

    Re: BurningMan Rev1

    No I'm not x1. No I'm not TMan.
    I am PenguinGuy.
    Last edited by PenguinGuys; 06-10-09 at 01:11 AM.

  5. #5
    Account Upgraded | Title Enabled! Axium is offline
    MemberRank
    May 2008 Join Date
    Delhi, IndiaLocation
    604Posts

    Re: BurningMan Rev1

    Goodjob :)

  6. #6
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    Re: BurningMan Rev1

    I see a lot of my code in there, but there's no need to make five threads for that. Also, if this is for a private server why not use ZChatInput and RealSpace2::RFlip detours?

  7. #7
    Account Upgraded | Title Enabled! PenguinGuys is offline
    MemberRank
    Sep 2009 Join Date
    AlabamaLocation
    261Posts

    Re: BurningMan Rev1

    Phail, I don't know which code your talking about.
    The only thing I didn't do was GetPos & ChatInput.

    I know their don't need to be 5 threads, but it helps me organize it.

    And I can't really do detours, I just picked up M$ detour's and started reading about it.
    Last edited by PenguinGuys; 06-10-09 at 12:46 PM.

  8. #8
    Ā  Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: BurningMan Rev1

    Off Topic : Phail couldn't look into the "Go go go Play System Gunz" thread and ban the leecher even though he came online :|

  9. #9
    Music<3 Katsuro is offline
    MemberRank
    Oct 2006 Join Date
    Kailua-Kona, HILocation
    1,051Posts

    Re: BurningMan Rev1

    Quote Originally Posted by phoenix_147 View Post
    Off Topic : Phail couldn't look into the "Go go go Play System Gunz" thread and ban the leecher even though he came online :|
    iLol'ed.

  10. #10
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    Re: BurningMan Rev1

    Quote Originally Posted by PenguinGuy View Post
    Code:
    unsigned long GetMe()
    {
        return *(DWORD*)(ZGetClient() + 0x1A4);
    }
    
    unsigned long GetStage()
    {
        return *(DWORD*)(ZGetClient() + 0x1B4);
    }
    
    float *GetPos(DWORD ZChar)
    {
        DWORD ECX = ZChar; 
        DWORD EAX = *(DWORD*)(ECX + 0x58);
        ECX = *(DWORD*)(EAX + 0x20);
        DWORD EDX = *(DWORD*)(EAX + 0xC);
        EAX = *(DWORD*)(EDX + ECX * 0x4);
        return (float*)EAX;
    }
    
    void SetPos(float *AllPos)
    {
        float *Poss = GetPos(pChar());
        Poss[0] = AllPos[0];
        Poss[1] = AllPos[1];
        Poss[2] = AllPos[2];
    }
    
    char *LastInput()
    {
        return (char*)(ZGetInterface() + 0x3A8);
    }
    
    void SetAP(int nAP)
    {
    	ZChar = pChar();
    	__asm
    	{
    		MOV ECX, ZChar
    		MOV EAX, SetAPAdd
    		PUSH nAP
    		CALL EAX
    	}
    }
    
    int GetHP()
    {
    	ZChar = pChar();
    	int ReturnVal;
    	__asm
    	{
    		MOV ECX, ZChar
    		MOV EAX, GetHPAdd
    		CALL EAX
    		MOV ReturnVal, EAX
    	}
    	return ReturnVal;
    }
    
    int GetAP()
    {
    	ZChar = pChar();
    	int ReturnVal;
    	__asm
    	{
    		MOV ECX, ZChar
    		MOV EAX, GetAPAdd
    		CALL EAX
    		MOV ReturnVal, EAX
    	}
    	return ReturnVal;
    }
    That's the exact code I had in my DarkX hack, lol. It was released on GamerzPlanet. Also, I haven't had time to do anything guys, sorry. I fixed the spammer though.

  11. #11
    @RaGEZONE IRC hackerz10001 is offline
    MemberRank
    Aug 2008 Join Date
    RaGEZONELocation
    579Posts

    Re: BurningMan Rev1

    Off-Topic: @Theoretical Thanks for killing the leacher
    On-Topic: That has alot of peoples codes in it. Wheres the credits?

  12. #12
    Alpha Member gregon13 is offline
    MemberRank
    Nov 2007 Join Date
    CanadaLocation
    1,945Posts

    Re: BurningMan Rev1

    Quote Originally Posted by hackerz10001 View Post
    Off-Topic: @Theoretical Thanks for killing the leacher
    On-Topic: That has alot of peoples codes in it. Wheres the credits?
    he might not credit the proper people and fight he never used any1's code

    which is possible he didn't and that this is his work and people just code similar to him

  13. #13
    Account Upgraded | Title Enabled! PenguinGuys is offline
    MemberRank
    Sep 2009 Join Date
    AlabamaLocation
    261Posts

    Re: BurningMan Rev1

    I tried to download the DarkX sources (I think it was DarX sources o.o), but since GzP had a rollback, I can't download anything before a certain date.

    And I learned almost everything I know from looking into sources, that's what got me learning C++.
    I have admitted I didn't do GetPos & ChatInput, but I can't remember who's sources I looked into for that.



Advertisement