[1.23] Camera Hack with source

This is a discussion on [1.23] Camera Hack with source within the Warcraft 3 Hacks, bots and tools board part of the Warcraft 3 forum category; Updated stand-alone hack to change the camera distance in Warcraft 3 1.23. Source (colors.cpp is in the .zip file): Clean, ...

Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    TyranO's Avatar
    TyranO is offline Retired hacker


    Array
    Join Date
    Aug 2008
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    17
    Reputation
    1405

    [1.23] Camera Hack with source

    Updated stand-alone hack to change the camera distance in Warcraft 3 1.23.

    Source (colors.cpp is in the .zip file):
    Clean, highlighted source for 1.22: Source:WC3CameraHack/camhack.cpp
    #include <windows.h>
    #include <Tlhelp32.h>
    #include <iostream>
    #include "colors.cpp"
    #define WRITE(i,w,l) WriteProcessMemory(hProc,reinterpret_cast<LPVOID>( GameDLL+i),w,l,&dSize)

    using namespace std;

    // Get PID for process (proc).
    DWORD GetPID (char* proc)
    {
    BOOL working=0;
    PROCESSENTRY32 lppe= {0};
    DWORD targetPid=0;
    HANDLE hSnapshot=CreateToolhelp32Snapshot(TH32CS_SNAPPROC ESS ,0);

    if (hSnapshot)
    {
    lppe.dwSize=sizeof(lppe);
    working=Process32First(hSnapshot,&lppe);
    while (working)
    {
    if (_stricmp(lppe.szExeFile,proc)==0)
    {
    targetPid=lppe.th32ProcessID;
    break;
    }
    working=Process32Next(hSnapshot,&lppe);
    }
    }

    CloseHandle( hSnapshot );
    return targetPid;
    }

    // Debug Priviledges.
    void EnableDebugPriv()
    {
    HANDLE hToken;
    LUID sedebugnameValue;
    TOKEN_PRIVILEGES tkp;
    OpenProcessToken( GetCurrentProcess( ), TOKEN_ADJUST_PRIVILEGES |TOKEN_QUERY, &hToken );
    LookupPrivilegeValue( NULL, SE_DEBUG_NAME, &sedebugnameValue );
    tkp.PrivilegeCount = 1;
    tkp.Privileges[0].Luid = sedebugnameValue;
    tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
    AdjustTokenPrivileges( hToken, false, &tkp, sizeof( tkp ), NULL, NULL );
    CloseHandle( hToken );
    }

    // Base (mostly 6F)
    DWORD GetDLL(char* DllName, DWORD tPid)
    {
    HANDLE snapMod;
    MODULEENTRY32 me32;

    if (tPid == 0) return 0;
    snapMod = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, tPid);
    me32.dwSize = sizeof(MODULEENTRY32);

    if (Module32First(snapMod, &me32)){
    do{
    if (strcmp(DllName,me32.szModule) == 0){
    CloseHandle(snapMod);
    return (DWORD) me32.modBaseAddr;
    }
    }while(Module32Next(snapMod,&me32));
    }

    CloseHandle(snapMod);
    return 0;

    }

    int main(void)
    {
    SetColor(-1,1);
    ClearConsole();

    SetColor(7);
    cout <<" |||||||||||||||||||||||||||||||||||||||||||||||||| |||\n";
    SetColor(-20);
    cout << " ~ TyranO's Camera Hack for Warcraft III 1.23.0.6352 ~\n";
    SetColor(7);
    cout <<" |||||||||||||||||||||||||||||||||||||||||||||||||| |||\n" << endl;
    SetColor(11);

    SetConsoleTitle("TyranO's Camera Hack");


    if(GetPID("war3.exe") == 0)
    {
    SetColor(10);
    cout << "Please open Warcraft III 1.22 before loading the hack." << endl << endl;
    SetColor(-1);
    system("Pause");
    return(0);
    }
    else
    {
    EnableDebugPriv();
    HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, false, GetPID("war3.exe"));
    if(hProc)
    {
    SetColor(-5);
    cout << "Camera Hack Loaded!" << endl << endl;

    TCHAR War3Name[32] = TEXT("Warcraft III");
    HWND hWar3 = FindWindow(War3Name, NULL);
    //DWORD Address = 11147656; 1.22
    DWORD Address = 11249624;
    DWORD Buffer;
    DWORD WINAPI GetLastError(void);
    DWORD GameDLL = GetDLL("Game.dll",GetPID("war3.exe"));
    SIZE_T BytesRead = 0;
    DWORD pid;
    GetWindowThreadProcessId( hWar3, &pid );
    HANDLE hOpen = OpenProcess( PROCESS_ALL_ACCESS, false, pid );
    DWORD dSize = 0;

    ReadProcessMemory(hOpen, (LPCVOID)(GameDLL+Address), &Buffer, 4, &BytesRead);
    SetColor(10);
    if(Buffer == 0)
    {
    cout << "You are not in a game." <<endl << endl;
    }

    else
    {
    cout << "You are in a game." <<endl << endl;
    }

    for(;;)
    {



    SetColor(-5);
    cout << "Insert new Camera Distance:" << endl << endl;
    SetColor(-2);
    char distance[16];
    cin >> distance;

    float realdistance;
    realdistance = atof(distance);
    //DWORD ecxaddr = 0x00AA1988; 1.22
    DWORD ecxaddr = 0x00ABA7D8;
    ecxaddr += GameDLL;
    /* 1.22
    WRITE(0x284628, "\xE9\x47\x78\x5D\x00",5);
    WRITE(0x85BE74, "\xE8\x27\x36\xCD\xFF\x6A\x01\x6A\x00\x68",10) ;
    WRITE(0x85BE7E, &realdistance, sizeof(float));
    WRITE(0x85BE82, "\x6A\x00\x8B\x0D\x88\x19\xAA\x6F\x8B\x89\x54\x02\ x00\x00\xE8\x4B\x90\xAA\xFF\xE9\x93\x87\xA2\xFF",2 4);
    WRITE(0x85BE86, &ecxaddr, sizeof(DWORD));
    */
    WRITE(0x285B68, "\xE9\x04\xA3\x5E\x00",5);
    WRITE(0x86FE71, "\xE8\xDA\x13\xCC\xFF\x6A\x01\x6A\x00\x68",10) ;
    WRITE(0x86FE7B, &realdistance, sizeof(float));
    WRITE(0x86FE7F, "\x6A\x00\x8B\x0D\xD8\xA7\xAB\x6F\x8B\x89\x54\x02\ x00\x00\xE8\x8E\x65\xA9\xFF\xE9\xD6\x5C\xA1\xFF",2 4);
    WRITE(0x86FE83, &ecxaddr, sizeof(DWORD));
    SetColor(-1);
    cout << endl << "Camera distance set to ";
    SetColor(-2);
    cout << distance;
    SetColor(-1);
    cout << "." << endl << endl;
    SetColor(-20);
    cout << "www.d3scene.com" << endl << endl;
    }
    }
    }
    }

    Attached Files
    Last edited by TyranO; 03-31-2009 at 11:05 PM.
    Retired

  2. The Following User Says Thank You to TyranO For This Useful Post:


  3. #2
    neverfo1 is offline Newbie
    Array
    Join Date
    Mar 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Hm, I was hoping I could changed angle of attack as well. That's not too hard to add is it?

  4. #3
    swede is offline Wannabe Member
    Array
    Join Date
    Mar 2009
    Location
    Minnesota
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    4
    Will only let me change it the first time. I need to restart the program if i want to change the program, or reboot wc3.

    Also, any number seems to zoom all the way down to the feet.

  5. #4
    justgood is offline Wannabe Member
    Array
    Join Date
    Oct 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    is there any way to make the camera lock in its position? where in-game triggers cant effect it?

  6. #5
    Wynthar's Avatar
    Wynthar is offline Advanced Hacker
    Array
    Join Date
    Feb 2009
    Location
    So Cal, USA
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    243
    Thanks TyranO.

    Nice to have a separate Camera Zoom only program. =)


  7. #6
    monkeyseemonkeydo's Avatar
    monkeyseemonkeydo is offline Master Hacker
    Array
    Join Date
    Oct 2008
    Posts
    614
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    33
    ty

  8. #7
    RosheL--_'s Avatar
    RosheL--_ is offline Addict
    Array
    Join Date
    Nov 2008
    Location
    I ilve in your greatest nightmares
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    9
    Reputation
    3
    what does camera zoom do?can any1 help me just asking

  9. #8
    Wynthar's Avatar
    Wynthar is offline Advanced Hacker
    Array
    Join Date
    Feb 2009
    Location
    So Cal, USA
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    243
    Camera zoom rocks!

    Basically, it allows you to zoom out and see more on your screen! Always helpful to be able to see someone rushing up behind you to gank.

    Here is a normal screen shot. (Default Camera Zoom: 1500)


    Here is a zoomed out screen shot. (Camera Zoom: 2400)


    Here is a cool screen shot of techies! (Camera Zoom 2800)

  10. #9
    monkeyseemonkeydo's Avatar
    monkeyseemonkeydo is offline Master Hacker
    Array
    Join Date
    Oct 2008
    Posts
    614
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    33
    so zoom out.. i can see more with this.. ty

  11. #10
    sd333221 is offline Guru
    Array
    Join Date
    Feb 2008
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    146
    your code
    Code:
    cout << "Insert new Camera Distance:" << endl << endl;
                    char distance[16];
                    cin >> distance;
     
                    float realdistance;
                    realdistance = atof(distance);
    better code
    Code:
    float realdistance;
    cout << "Insert new Camera Distance:" << endl << endl;
                     cin >> realdistance;
    cin rocks and is stronger than you might think :laugh:

Page 1 of 3 123 LastLast

Similar Threads

  1. [Detected]Ubermaphack
    By Bendik in forum Warcraft 3 Hacks, bots and tools
    Replies: 175
    Last Post: 12-24-2010, 07:03 PM
  2. [Release]Bendik's Maphack v1.22
    By Bendik in forum Warcraft 3 Hacks, bots and tools
    Replies: 280
    Last Post: 12-12-2008, 02:02 AM
  3. [YOUR CD KEY HAS BEEN DISABLED] DaUberMap + Tiehack 1.22
    By DaUberBird in forum Warcraft 3 Hacks, bots and tools
    Replies: 268
    Last Post: 11-04-2008, 09:33 PM
  4. Warcraft 3 maphack
    By hendricius in forum Warcraft 3 Hacks, bots and tools
    Replies: 88
    Last Post: 08-22-2008, 06:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •