|
You last visited: Today at 23:58
Advertisement
WarRock EU - Code Snippets
Discussion on WarRock EU - Code Snippets within the WarRock forum part of the Shooter category.
|
View Poll Results: Wie findet ihr diesen Thread
|
|
Klasse!
|
  
|
78 |
60.94% |
Geht so
|
  
|
17 |
13.28% |
|
Sinnlos, braucht keiner
|
  
|
33 |
25.78% |
08/20/2011, 16:35
|
#4951
|
elite*gold: 0
Join Date: May 2011
Posts: 313
Received Thanks: 323
|
Quote:
Originally Posted by _TradEmArk_:)
Code:
error C2065: 'WINAPI': nichtdeklarierter Bezeichner
error C2065: 'oReset': nichtdeklarierter Bezeichner
error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" wird von C++ nicht unterstützt.
fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.
error C3861: "HacksInGame": Bezeichner wurde nicht gefunden.
Obwohl alles Deklariert ist..
|
vllt. fehlt ein Include oda so xD ?
|
|
|
08/20/2011, 16:36
|
#4952
|
elite*gold: 0
Join Date: Aug 2011
Posts: 224
Received Thanks: 262
|
Include mal "windows.h"
Wenn es dann nicht geht, komme gleich Skype, dann kannst mir TeamViewer Daten geben.
|
|
|
08/21/2011, 10:23
|
#4953
|
elite*gold: 0
Join Date: Jun 2011
Posts: 161
Received Thanks: 470
|
Code:
#include <d3d9.h>
typedef long ( __stdcall *Reset_t )( IDirect3DDevice9*, D3DPRESENT_PARAMETERS* );
Reset_t oReset;
long __stdcall myReset( IDirect3DDevice9* pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
{
DestroyFont( pDevice );
HRESULT hRet = oReset( pDevice, pPresentationParameters );
if( SUCCEEDED( hRet ) )
RecreateFont( pDevice );
return hRet;
}
|
|
|
08/21/2011, 16:59
|
#4954
|
elite*gold: 15
Join Date: Apr 2011
Posts: 1,154
Received Thanks: 267
|
Was ist dran falsch
Code:
#include <Windows.h>
#include <stdio.h>
#define Playerpointer 0x009D8AF0
#define Serverpointer 0x009D8A8C
#define OFS_Z 0x00102E4
#define OFS_NFD 0x102C4
#define OFS_5SLOT 0x001021A4
#define OFS_6SLOT 0x001021A5
#define OFS_7SLOT 0x001021A6
#define OFS_8SLOT 0x001021A7
#define OFS_NORECOIL1 0x00C43C
#define OFS_NORECOIL2 0x00C440
#define OFS_NORECOIL3 0x00C444
#define OFS_NOSPREAD 0x009D879C
DWORD *ingame = (DWORD*)ADR_Playerpointer;
DWORD *outgame = (DWORD*)ADR_Serverpointer;
void PlayerHacks()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
//Super Jump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
*(float*)(dwPlayerPtr + OFS_Z) = 2000;
}
}
//No Fall Damage
{
*(float*)(dwPlayerPtr + OFS_NFD) = -20000;
}
}
}
//Recoil / Spread Stuff
//Recoil
{
*(float*)(dwPlayerPtr + OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL3) = 0;
}
//Spread
{
*(float*)ADR_NOSPREAD = 0;
void ServerHacks()
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0)
{
//Slot Stuff
//5 Slot
{
*(long*)(dwSrvrPtr + OFS_5SLOT) = 1;
}
//6 Slot
{
*(long*)(dwSrvrPtr + OFS_6SLOT) = 1;
}
//7 Slot
{
*(long*)(dwSrvrPtr + OFS_7SLOT) = 1;
}
//8 Slot
{
*(long*)(dwSrvrPtr + OFS_8SLOT) = 1;
}
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
PlayerHacks();
}
if(*outgame)
{
ServerHacks();
}
}
Sleep( 30 );
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
Code:
1>------ Erstellen gestartet: Projekt: Myxirs new nomenü hack, Konfiguration: Debug Win32 ------
1> main.cpp
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(18): error C2065: 'ADR_Playerpointer': nichtdeklarierter Bezeichner
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(19): error C2065: 'ADR_Serverpointer': nichtdeklarierter Bezeichner
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(23): error C2065: 'ADR_Playerpointer': nichtdeklarierter Bezeichner
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(42): error C2447: '{': Funktionsheader fehlt - Parameterliste im alten Stil?
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(49): error C2447: '{': Funktionsheader fehlt - Parameterliste im alten Stil?
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(107): fatal error C1004: Unerwartetes Dateiende gefunden.
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
|
|
|
08/21/2011, 17:02
|
#4955
|
elite*gold: 0
Join Date: May 2011
Posts: 313
Received Thanks: 323
|
Quote:
Originally Posted by Myxir™
Was ist dran falsch
Code:
#include <Windows.h>
#include <stdio.h>
#define Playerpointer 0x009D8AF0
#define Serverpointer 0x009D8A8C
#define OFS_Z 0x00102E4
#define OFS_NFD 0x102C4
#define OFS_5SLOT 0x001021A4
#define OFS_6SLOT 0x001021A5
#define OFS_7SLOT 0x001021A6
#define OFS_8SLOT 0x001021A7
#define OFS_NORECOIL1 0x00C43C
#define OFS_NORECOIL2 0x00C440
#define OFS_NORECOIL3 0x00C444
#define OFS_NOSPREAD 0x009D879C
DWORD *ingame = (DWORD*)ADR_Playerpointer;
DWORD *outgame = (DWORD*)ADR_Serverpointer;
void PlayerHacks()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
//Super Jump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
*(float*)(dwPlayerPtr + OFS_Z) = 2000;
}
}
//No Fall Damage
{
*(float*)(dwPlayerPtr + OFS_NFD) = -20000;
}
}
}
//Recoil / Spread Stuff
//Recoil
{
*(float*)(dwPlayerPtr + OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL3) = 0;
}
//Spread
{
*(float*)ADR_NOSPREAD = 0;
void ServerHacks()
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0)
{
//Slot Stuff
//5 Slot
{
*(long*)(dwSrvrPtr + OFS_5SLOT) = 1;
}
//6 Slot
{
*(long*)(dwSrvrPtr + OFS_6SLOT) = 1;
}
//7 Slot
{
*(long*)(dwSrvrPtr + OFS_7SLOT) = 1;
}
//8 Slot
{
*(long*)(dwSrvrPtr + OFS_8SLOT) = 1;
}
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
PlayerHacks();
}
if(*outgame)
{
ServerHacks();
}
}
Sleep( 30 );
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
Code:
1>------ Erstellen gestartet: Projekt: Myxirs new nomenü hack, Konfiguration: Debug Win32 ------
1> main.cpp
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(18): error C2065: 'ADR_Playerpointer': nichtdeklarierter Bezeichner
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(19): error C2065: 'ADR_Serverpointer': nichtdeklarierter Bezeichner
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(23): error C2065: 'ADR_Playerpointer': nichtdeklarierter Bezeichner
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(42): error C2447: '{': Funktionsheader fehlt - Parameterliste im alten Stil?
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(49): error C2447: '{': Funktionsheader fehlt - Parameterliste im alten Stil?
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(107): fatal error C1004: Unerwartetes Dateiende gefunden.
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
|
#define Playerpointer 0x009D8AF0
#define Serverpointer 0x009D8A8C
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(18): error C2065: 'ADR_Playerpointer': nichtdeklarierter Bezeichner
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(19): error C2065: 'ADR_Serverpointer': nichtdeklarierter Bezeichner
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(23): error C2065: 'ADR_Playerpointer': nichtdeklarierter Bezeichner
mach mal aus
#define Playerpointer
das:
#define ADR_Playerpointer
und das gleiche mit ServerPointer
|
|
|
08/21/2011, 17:06
|
#4956
|
elite*gold: 15
Join Date: Apr 2011
Posts: 1,154
Received Thanks: 267
|
Danke jetzt nurnoch das
Code:
#include <Windows.h>
#include <stdio.h>
#define ADR_Playerpointer 0x009D8AF0
#define ADR_Serverpointer 0x009D8A8C
#define OFS_Z 0x00102E4
#define OFS_NFD 0x102C4
#define OFS_5SLOT 0x001021A4
#define OFS_6SLOT 0x001021A5
#define OFS_7SLOT 0x001021A6
#define OFS_8SLOT 0x001021A7
#define OFS_NORECOIL1 0x00C43C
#define OFS_NORECOIL2 0x00C440
#define OFS_NORECOIL3 0x00C444
#define OFS_NOSPREAD 0x009D879C
DWORD *ingame = (DWORD*)ADR_Playerpointer;
DWORD *outgame = (DWORD*)ADR_Serverpointer;
void PlayerHacks()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
//Super Jump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
*(float*)(dwPlayerPtr + OFS_Z) = 2000;
}
}
//No Fall Damage
{
*(float*)(dwPlayerPtr + OFS_NFD) = -20000;
}
}
}
//Recoil / Spread Stuff
//Recoil
{
*(float*)(dwPlayerPtr + OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL3) = 0;
}
//Spread
{
*(float*)ADR_NOSPREAD = 0;
void ServerHacks()
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0)
{
//Slot Stuff
//5 Slot
{
*(long*)(dwSrvrPtr + OFS_5SLOT) = 1;
}
//6 Slot
{
*(long*)(dwSrvrPtr + OFS_6SLOT) = 1;
}
//7 Slot
{
*(long*)(dwSrvrPtr + OFS_7SLOT) = 1;
}
//8 Slot
{
*(long*)(dwSrvrPtr + OFS_8SLOT) = 1;
}
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
PlayerHacks();
}
if(*outgame)
{
ServerHacks();
}
}
Sleep( 30 );
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
Code:
1>------ Erstellen gestartet: Projekt: Myxirs new nomenü hack, Konfiguration: Debug Win32 ------
1> main.cpp
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(42): error C2447: '{': Funktionsheader fehlt - Parameterliste im alten Stil?
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(49): error C2447: '{': Funktionsheader fehlt - Parameterliste im alten Stil?
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(107): fatal error C1004: Unerwartetes Dateiende gefunden.
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
|
|
|
08/21/2011, 17:08
|
#4957
|
elite*gold: 0
Join Date: May 2011
Posts: 313
Received Thanks: 323
|
Quote:
Originally Posted by Myxir™
Danke jetzt nurnoch das
Code:
#include <Windows.h>
#include <stdio.h>
#define ADR_Playerpointer 0x009D8AF0
#define ADR_Serverpointer 0x009D8A8C
#define OFS_Z 0x00102E4
#define OFS_NFD 0x102C4
#define OFS_5SLOT 0x001021A4
#define OFS_6SLOT 0x001021A5
#define OFS_7SLOT 0x001021A6
#define OFS_8SLOT 0x001021A7
#define OFS_NORECOIL1 0x00C43C
#define OFS_NORECOIL2 0x00C440
#define OFS_NORECOIL3 0x00C444
#define OFS_NOSPREAD 0x009D879C
DWORD *ingame = (DWORD*)ADR_Playerpointer;
DWORD *outgame = (DWORD*)ADR_Serverpointer;
void PlayerHacks()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
//Super Jump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
*(float*)(dwPlayerPtr + OFS_Z) = 2000;
}
}
//No Fall Damage
{
*(float*)(dwPlayerPtr + OFS_NFD) = -20000;
}
}
}
//Recoil / Spread Stuff
//Recoil
{
*(float*)(dwPlayerPtr + OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL3) = 0;
}
//Spread
{
*(float*)ADR_NOSPREAD = 0;
void ServerHacks()
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0)
{
//Slot Stuff
//5 Slot
{
*(long*)(dwSrvrPtr + OFS_5SLOT) = 1;
}
//6 Slot
{
*(long*)(dwSrvrPtr + OFS_6SLOT) = 1;
}
//7 Slot
{
*(long*)(dwSrvrPtr + OFS_7SLOT) = 1;
}
//8 Slot
{
*(long*)(dwSrvrPtr + OFS_8SLOT) = 1;
}
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
PlayerHacks();
}
if(*outgame)
{
ServerHacks();
}
}
Sleep( 30 );
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
Code:
1>------ Erstellen gestartet: Projekt: Myxirs new nomenü hack, Konfiguration: Debug Win32 ------
1> main.cpp
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(42): error C2447: '{': Funktionsheader fehlt - Parameterliste im alten Stil?
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(49): error C2447: '{': Funktionsheader fehlt - Parameterliste im alten Stil?
1>c:\users\dvorak\documents\visual studio 2010\projects\myxirs new nomenü hack\myxirs new nomenü hack\main.cpp(107): fatal error C1004: Unerwartetes Dateiende gefunden.
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
|
void PlayerHacks()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
//Super Jump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
*(float*)(dwPlayerPtr + OFS_Z) = 2000;
}
}
//No Fall Damage
{
*(float*)(dwPlayerPtr + OFS_NFD) = -20000;
}
}
}
//Recoil / Spread Stuff
//Recoil
{
*(float*)(dwPlayerPtr + OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL3) = 0;
}
//Spread
{
*(float*)ADR_NOSPREAD = 0;
mach das so:
void PlayerHacks()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
//Super Jump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
*(float*)(dwPlayerPtr + OFS_Z) = 2000;
}
}
//No Fall Damage
{
*(float*)(dwPlayerPtr + OFS_NFD) = -20000;
}
//Recoil / Spread Stuff
//Recoil
{
*(float*)(dwPlayerPtr + OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL3) = 0;
}
//Spread
{
*(float*)ADR_NOSPREAD = 0;
}
}
|
|
|
08/21/2011, 22:24
|
#4958
|
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 4,650
Received Thanks: 5,731
|
*(DWORD*)(ADR_PLAYERPOINTER + OFS_PLAYERSTATE) = *(DWORD*)ADR_DEATHKILL;
credits to me
|
|
|
08/21/2011, 23:20
|
#4959
|
elite*gold: 0
Join Date: Aug 2011
Posts: 224
Received Thanks: 262
|
Code:
ADR_PLAYERPOINTER 0x009D8AF0
ADR_DEATHKILL 0x009D8B64
OFS_PLAYERSTATE 0x00000C4BC
Credits to Me :)
|
|
|
08/22/2011, 09:43
|
#4960
|
elite*gold: 0
Join Date: Jun 2011
Posts: 161
Received Thanks: 470
|
Wenn man nicht überprüft ob man tot ist, macht deathkill Schwierigkeiten beim bewegen.
Code:
DWORD *pPlayer = (DWORD *)ADR_PLAYERPOINTER;
if( *(DWORD *)( *pPlayer + OFS_PLAYERSTATE ) == *(DWORD *)ADR_DEATHKILL1 )
*(DWORD *)( *pPlayer + OFS_PLAYERSTATE ) = *(DWORD *)ADR_DEATHKILL2;
|
|
|
08/22/2011, 10:02
|
#4961
|
elite*gold: 0
Join Date: Jul 2011
Posts: 3,812
Received Thanks: 1,840
|
Quote:
Was ist dran falsch
Code:
#include <Windows.h>
#include <stdio.h>
#define Playerpointer 0x009D8AF0
#define Serverpointer 0x009D8A8C
#define OFS_Z 0x00102E4
#define OFS_NFD 0x102C4
#define OFS_5SLOT 0x001021A4
#define OFS_6SLOT 0x001021A5
#define OFS_7SLOT 0x001021A6
#define OFS_8SLOT 0x001021A7
#define OFS_NORECOIL1 0x00C43C
#define OFS_NORECOIL2 0x00C440
#define OFS_NORECOIL3 0x00C444
#define OFS_NOSPREAD 0x009D879C
DWORD *ingame = (DWORD*)ADR_Playerpointer;
DWORD *outgame = (DWORD*)ADR_Serverpointer;
void PlayerHacks()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
//Super Jump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
*(float*)(dwPlayerPtr + OFS_Z) = 2000;
}
}
//No Fall Damage
{
*(float*)(dwPlayerPtr + OFS_NFD) = -20000;
}
}
}
//Recoil / Spread Stuff
//Recoil
{
*(float*)(dwPlayerPtr + OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr + OFS_NORECOIL3) = 0;
}
//Spread
{
*(float*)ADR_NOSPREAD = 0;
void ServerHacks()
{
DWORD dwSrvrPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwSrvrPtr != 0)
{
//Slot Stuff
//5 Slot
{
*(long*)(dwSrvrPtr + OFS_5SLOT) = 1;
}
//6 Slot
{
*(long*)(dwSrvrPtr + OFS_6SLOT) = 1;
}
//7 Slot
{
*(long*)(dwSrvrPtr + OFS_7SLOT) = 1;
}
//8 Slot
{
*(long*)(dwSrvrPtr + OFS_8SLOT) = 1;
}
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
PlayerHacks();
}
if(*outgame)
{
ServerHacks();
}
}
Sleep( 30 );
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
|
Du hast vergessen bei NoSpread die Klammer zuzumachen.
du hast das so :
Code:
//Spread
{
*(float*)ADR_NOSPREAD = 0;
versuch es mal so :
Code:
//Spread
{
*(float*)ADR_NOSPREAD = 0;
}
|
|
|
08/22/2011, 10:09
|
#4962
|
elite*gold: 0
Join Date: Jun 2011
Posts: 161
Received Thanks: 470
|
Code:
#include <Windows.h>
#include <stdio.h>
#define Playerpointer 0x009D8AF0
#define Serverpointer 0x009D8A8C
#define OFS_Z 0x00102E4
#define OFS_NFD 0x102C4
#define OFS_5SLOT 0x001021A4
#define OFS_6SLOT 0x001021A5
#define OFS_7SLOT 0x001021A6
#define OFS_8SLOT 0x001021A7
#define OFS_NORECOIL1 0x00C43C
#define OFS_NORECOIL2 0x00C440
#define OFS_NORECOIL3 0x00C444
#define OFS_NOSPREAD 0x009D879C
DWORD *player = (DWORD *)ADR_Playerpointer;
DWORD *server = (DWORD *)ADR_Serverpointer;
void PlayerHacks()
{
// Superjump
if(GetAsyncKeyState(VK_CONTROL) &1)
{
*(float*)(*player + OFS_Z) = 2000;
}
// No Fall Damage
*(float*)(*player + OFS_NFD) = -20000;
// No Recoil
*(float*)(*player + OFS_NORECOIL1) = 0;
*(float*)(*player + OFS_NORECOIL2) = 0;
*(float*)(*player + OFS_NORECOIL3) = 0;
// No Spread
*(float*)ADR_NOSPREAD = 0;
}
void ServerHacks()
{
*(long*)(*server + OFS_5SLOT) = 1;
*(long*)(*server + OFS_6SLOT) = 1;
*(long*)(*server + OFS_7SLOT) = 1;
*(long*)(*server + OFS_8SLOT) = 1;
}
void HackThread()
{
for(;;)
{
if(*player)
PlayerHacks();
if(*server)
ServerHacks();
Sleep( 30 );
}
}
BOOL WINAPI DllMain( HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved )
{
if( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
|
|
|
08/22/2011, 17:30
|
#4963
|
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 4,650
Received Thanks: 5,731
|
Quote:
Originally Posted by Yazzn :)
Wenn man nicht überprüft ob man tot ist, macht deathkill Schwierigkeiten beim bewegen.
Code:
DWORD *pPlayer = (DWORD *)ADR_PLAYERPOINTER;
if( *(DWORD *)( *pPlayer + OFS_PLAYERSTATE ) == *(DWORD *)ADR_DEATHKILL1 )
*(DWORD *)( *pPlayer + OFS_PLAYERSTATE ) = *(DWORD *)ADR_DEATHKILL2;
|
dann mach noch paar langweile checks rein xd
Code:
if(Ch_Deathkill == 1)
{
if(info->health == 0 && GameMode == 0)
{
*(DWORD*)(ADR_PLAYERPOINTER + OFS_PLAYERSTATE) = *(DWORD*)ADR_DEATHKILL;
}
}
checkst ob du explosiv zockst und ob du tot bist dann kann das vorher nicht schwierigkeiten geben
oder einfach
Code:
if(Ch_Deathkill == 1 && info->health == 0 && GameMode == 0)
{
*(DWORD*)(ADR_PLAYERPOINTER + OFS_PLAYERSTATE) = *(DWORD*)ADR_DEATHKILL;
}
|
|
|
08/22/2011, 19:21
|
#4964
|
elite*gold: 0
Join Date: Jun 2011
Posts: 161
Received Thanks: 470
|
health ist nicht immer 0 sondern oft auch darunter
if( info->health <= 0 )
|
|
|
08/22/2011, 19:41
|
#4965
|
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 4,650
Received Thanks: 5,731
|
Quote:
Originally Posted by Yazzn :)
health ist nicht immer 0 sondern oft auch darunter
if( info->health <= 0 )
|
dann mach es halt so xD
Code:
if(Ch_Deathkill == 1)
{
if((info->health == 0 || info->health <= 0) && GameMode == 0)
{
*(DWORD*)(ADR_PLAYERPOINTER + OFS_PLAYERSTATE) = *(DWORD*)ADR_DEATHKILL;
}
}
jetzt glücklich bro :S
credits to yazzn and me xD
|
|
|
 |
|
Similar Threads
|
WTB Flyff Source code snippets
04/01/2012 - Flyff Trading - 0 Replies
Hellow I posted this because I wanted to buy a fix scroll of unbinding.Which removes soul-link of an item.If you have its code snippets PM me.Don't sell me a code which is release because all of them are not working.I wanted to buy a fix one and a non-buggy code
Payment:via Paypal
|
[Autoit] Youtube Code Snippets
07/29/2011 - AutoIt - 5 Replies
Tag Zusammen.
Wie wohl die meisten von euch mitbekommen haben, bieten derzeit sehr viele User hier sogenannte Youtube Services an, bei denen man Abos, Likes, Dislikes etc. kaufen kann.
Doch wer wirklich Erfolg haben will, braucht natürlich viele Abonnenten und Likes, was per Hand Tage dauern würde.
Deshalb werden hier in letzter Zeit immer mehr Youtube Bots verkauft.
Was, wie ich finde, ein ziemliche Abzocke ist, da das meist nur sehr schlechte Bots sind, die lediglich den Internet...
|
Some Code-Snippets[PSERVER]
07/15/2011 - Kal Hacks, Bots, Cheats & Exploits - 17 Replies
This is the code of the hack which Fremo released..
I got new methods so I dont need this anymore & maybe it'll help some people...
G31 Adult Skill
if(comboBox4->Text=="Panther'crit'")
{
KC->Chat(255," Panther Skill ON");
KC->Threads=1;
KC->lasttime = timeGetTime()-15000;
}
else if(comboBox4->Text=="Tiger'otp'")
|
[Release] Code Snippets Manager
01/21/2011 - Coding Releases - 0 Replies
Code Snippets Manager
http://upit.cc/images/1d47d78e.jpg
Hab mich heute mal rangesetzt, und einen kleinen Manager für
Code-Snippets(Code-Fetzen) gecodet, da ich alles sortiert
in einer Anwendung wollte.
Da es sicherlich jemand nützlich finden wird, lad ich es hier mal hoch.
|
All times are GMT +1. The time now is 23:59.
|
|