Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > WarRock
You last visited: Today at 00:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Warrock - Code Snippets

Discussion on Warrock - Code Snippets within the WarRock forum part of the Shooter category.

Closed Thread
 
Old 02/27/2013, 17:57   #751
 
n4n033's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 726
Received Thanks: 1,128
Quote:
Originally Posted by [N]oSoul View Post
fk all

Health Bar
Credits to MaxyLopez93
n4n033 is offline  
Old 02/27/2013, 18:17   #752
 
SonyRazzer's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 182
Received Thanks: 223
Quote:
Originally Posted by n4n033 View Post
Credits to MaxyLopez93
Ich sehe das nichts, was auf MaxyLopez93 zurückweist .. Außerdem sind solche Beiträge voll unnötig, sonst müsste man das bei 9/10 Codes die hier veröffentlicht werden machen ..
SonyRazzer is offline  
Old 02/27/2013, 18:30   #753
 
elite*gold: 0
Join Date: Sep 2012
Posts: 35
Received Thanks: 0
Quote:
Originally Posted by ~ExoduS~* View Post
but this methode crash and making partyprogramm too on 32bit system
Quote:
Originally Posted by n4n033 View Post
not if you got a good detour
I do not have a good detour, virtually hack does not work on 32-bit systems. And if there is another ways to speedhack?, Me wondering with structs, the figure runs fast, but when the keys are in the works as mieszją S, S acts as the W, A acts as a D, D acts as A;/ /
This is my source:
Code:
if (CH_SpeedHack==1)
{
	g_pBase->pLocal->PlayerSpeed = 96;

}
if (CH_SpeedHack==2)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 2;


}
if (CH_SpeedHack==3)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 3;


}
if (CH_SpeedHack==4)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 5;


}
if (CH_SpeedHack==5)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 10;


}
ignorehax is offline  
Old 02/27/2013, 19:56   #754
 
n4n033's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 726
Received Thanks: 1,128
Quote:
Originally Posted by ignorehax View Post
I do not have a good detour, virtually hack does not work on 32-bit systems. And if there is another ways to speedhack?, Me wondering with structs, the figure runs fast, but when the keys are in the works as mieszją S, S acts as the W, A acts as a D, D acts as A;/ /
This is my source:
Code:
if (CH_SpeedHack==1)
{
	g_pBase->pLocal->PlayerSpeed = 96;

}
if (CH_SpeedHack==2)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 2;


}
if (CH_SpeedHack==3)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 3;


}
if (CH_SpeedHack==4)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 5;


}
if (CH_SpeedHack==5)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 10;


}
Ye xD but is bit different working with structs :P
n4n033 is offline  
Thanks
1 User
Old 02/27/2013, 20:28   #755
 
elite*gold: 0
Join Date: Apr 2012
Posts: 594
Received Thanks: 810
Quote:
Originally Posted by ignorehax View Post
I do not have a good detour, virtually hack does not work on 32-bit systems. And if there is another ways to speedhack?, Me wondering with structs, the figure runs fast, but when the keys are in the works as mieszją S, S acts as the W, A acts as a D, D acts as A;/ /
This is my source:
Code:
if (CH_SpeedHack==1)
{
	g_pBase->pLocal->PlayerSpeed = 96;

}
if (CH_SpeedHack==2)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 2;


}
if (CH_SpeedHack==3)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 3;


}
if (CH_SpeedHack==4)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 5;


}
if (CH_SpeedHack==5)
{
	g_pBase->pLocal->PlayerSpeed = 96 * 10;


}
Quote:
Originally Posted by n4n033 View Post
Ye xD but is bit different working with structs :P
What N4N033 said and btw the source you're using should be right even though it can be made another simple way and you need to change a sign..

If it's going backwards have you thought of how to make it go forward?

Tip: You're missing a sign just before the value
GigaByte™ is offline  
Old 02/28/2013, 15:18   #756
 
elite*gold: 0
Join Date: Sep 2012
Posts: 35
Received Thanks: 0
Quote:
Originally Posted by GigaByte™ View Post
What N4N033 said and btw the source you're using should be right even though it can be made another simple way and you need to change a sign..

If it's going backwards have you thought of how to make it go forward?

Tip: You're missing a sign just before the value
Hmmm about which character are you talking about? The structures have rather good, do not know if this is the full code for the speed of the structures


AND@

Request@ GetPlayerInfo and EnemyOnle struckt.

What it is:
Code:
if([B]GetScreenCoordFromWorld[/B](pDevice, g_vView, g_pPlayer)
ignorehax is offline  
Old 03/01/2013, 01:02   #757
 
n4n033's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 726
Received Thanks: 1,128
Quote:
Originally Posted by SonyRazzer View Post
Ich sehe das nichts, was auf MaxyLopez93 zurückweist .. Außerdem sind solche Beiträge voll unnötig, sonst müsste man das bei 9/10 Codes die hier veröffentlicht werden machen ..
Nothing say it's MaxyLopez93 source but i know it cos i know this exact source from now 1 year & half and i know that it's his made.
n4n033 is offline  
Old 03/01/2013, 15:11   #758
 
[N]oSoul's Avatar
 
elite*gold: 0
Join Date: Nov 2012
Posts: 109
Received Thanks: 142
Fk All

Check Hack

for this credit to : i dont know

Code:
int checkhack (void)
{  
    char szLink[256]="";
    char szReponse[256]="";
	
    sprintf(szLink,"http://yoursite/Check1.php");
    if ( URLgetpage(szLink,szReponse,256) == 0 ) return (0);
if ( strcmp(szReponse,"Offline") == 0 )
 { 
	 ExitProcessSurvive=1;	

     if ( strcmp(szReponse,"Online") == 0 )
	 {
		 
 }
 }
}
Code:
int checkhack (void)
{  
    char szLink[256]="";
    char szReponse[256]="";
	
    sprintf(szLink,"http://yoursite/Check2.php");
    if ( URLgetpage(szLink,szReponse,256) == 0 ) return (0);
if ( strcmp(szReponse,"Offline") == 0 )
 { 
	 ExitProcessSurvive=2;	

     if ( strcmp(szReponse,"Online") == 0 )
	 {
		 
 }
 }
}


for this , credits to me and C++ Builder xD


Code:
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
	if (dwReason==DLL_PROCESS_ATTACH) 
	{
		//YourThread...
	} 
	

	else if (ExitProcessSurvive == 1) 
	{

		MessageBoxA(GetActiveWindow(),"Frenz >> Hack Detected, Need an Update. ","<Error>",MB_OK);
		ExitProcess(0); 
	}else if (ExitProcessSurvive == 2) 
	{

		MessageBoxA(GetActiveWindow(),"Frenz >> Hack Expired ","<Error>",MB_OK);
		ExitProcess(0); 
	}


	return FALSE;
}
[N]oSoul is offline  
Old 03/01/2013, 16:37   #759
 
elite*gold: 0
Join Date: Nov 2012
Posts: 51
Received Thanks: 21
#Request detour

if( memcmp((void *)VTable[17], (void *)"\x8B\xFF", 2) == 0 )
{
pPresent = (oPresent) memorydetour((DWORD)myPresent, (DWORD)VTable[17]);
}
if( memcmp((void *)VTable[44], (void *)"\x8B\xFF", 2) == 0 )
{
pSetTransform = (oSetTransform)memorydetour((DWORD)nSetTransform,( DWORD)VTable[44]);
}

Kicking me.
Lazl07 is offline  
Old 03/01/2013, 19:33   #760
 
elite*gold: 20
Join Date: Sep 2012
Posts: 289
Received Thanks: 120
Quote:
Originally Posted by Lazl07 View Post
#Request detour

if( memcmp((void *)VTable[17], (void *)"\x8B\xFF", 2) == 0 )
{
pPresent = (oPresent) memorydetour((DWORD)myPresent, (DWORD)VTable[17]);
}
if( memcmp((void *)VTable[44], (void *)"\x8B\xFF", 2) == 0 )
{
pSetTransform = (oSetTransform)memorydetour((DWORD)nSetTransform,( DWORD)VTable[44]);
}

Kicking me.
These Hooks:
Code:
  if( memcmp((void *)VTable[17], (void *)"\x8B\xFF", 2) == 0 )
  {
	pPresent              = (oPresent)	            memorydetour((DWORD)myPresent, (DWORD)VTable[17]);
  }
   if( memcmp((void *)VTable[44], (void *)"\x8B\xFF", 2) == 0 )
  {
	pSetTransform = (oSetTransform)memorydetour((DWORD)nSetTransform,(DWORD)VTable[44]);
	 }
are using the HotPatch detours ( *Hackz* , BlackLegend ):
Code:
DWORD MEMhotpatch(DWORD dwAddress, DWORD dwFunction)
{
    BYTE OriginalBytes[] = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x8b, 0xff};
    BYTE NewBytes[] = { 0xe9, 0x00, 0x00, 0x00, 0x00, 0xeb, 0xf9};
    dwAddress -= 5;
    if (memcmp((void *)dwAddress,(void *)OriginalBytes, 7) != 0)
    {
        return 0;
    }
    *(DWORD*)(&NewBytes[1]) = (dwFunction - dwAddress) - 5;
    WriteMemory((void *)dwAddress, (void *)NewBytes, 7);
    return (dwAddress + 7);
}
But i would use a VMT Hook:
Code:
VMTInitialize(17,myPresent);
VMTInitialize(44,mySetTransformations);
iSkyLikeX is offline  
Thanks
2 Users
Old 03/02/2013, 07:00   #761
 
elite*gold: 0
Join Date: Nov 2012
Posts: 51
Received Thanks: 21
i got no menu with this MemPatch thing.
Lazl07 is offline  
Old 03/02/2013, 09:41   #762
 
elite*gold: 20
Join Date: Sep 2012
Posts: 289
Received Thanks: 120
Quote:
Originally Posted by Lazl07 View Post
i got no menu with this MemPatch thing.
Code:
#define ADR_DEVICEPOINTER           0x00A53440
#define OFS_DEVICEPOINTER           0x002B930

HRESULT   __stdcall nPresent   (  LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion );
typedef HRESULT ( APIENTRY* Present_t )(  LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion );
Present_t   pPresent;

HRESULT   __stdcall nReset    (  LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters );
typedef HRESULT ( APIENTRY* Reset_t ) (  LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters );
Reset_t     pReset;

HRESULT _stdcall nPresent(LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
	_asm PUSHAD;

         //Your Code Here :D

	_asm POPAD;

	return pPresent(pDevice,pSourceRect, pDestRect,hDestWindowOverride,pDirtyRegion); 
}

HRESULT __stdcall nReset (LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
{
	_asm PUSHAD;

	pFont->OnLostDevice();
	HRESULT hRet = pReset(pDevice, pPresentationParameters);
	pFont->OnResetDevice();

	_asm POPAD;

    return hRet;
}


DWORD WarRockDevice (int index)
{
	if (!ADR_DEVICEPOINTER) return 0;
	DWORD dwDevicePointer = *(DWORD*)ADR_DEVICEPOINTER;
    if(!dwDevicePointer) return 0;
	DWORD dwDeviceAddress = *(DWORD*)(dwDevicePointer + OFS_DEVICEPOINTER);
    if(!dwDeviceAddress) return 0;
    dwDeviceAddress = *(DWORD*)dwDeviceAddress;
    if(!dwDeviceAddress) return 0;
    return dwDeviceAddress + (4*index);
}

#define InitializeDevice(name, index)\
        DWORD dw##name##1 = WarRockDevice (index);\
        if(*(DWORD*)dw##name##1 != (DWORD)&n##name && dw##name##1 != NULL)\
{\
         p##name = (name##_t) *(DWORD*)dw##name##1;\
        *(DWORD*)dw##name##1 = (DWORD)&n##name;\
}

int __stdcall DeviceHook(void)
{
    bool Ready = false;
    while( true ) 
    {
        Ready = WarRockDevice(0) > 0;
        if( Ready )
        {
            InitializeDevice(Reset,16);
            InitializeDevice(Present,17);
        }
		Sleep(300);
	}
}
Try this one
iSkyLikeX is offline  
Thanks
1 User
Old 03/02/2013, 10:07   #763
 
Phantom.'s Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 1,510
Received Thanks: 3,014
Quote:
Originally Posted by iSkyLikeX View Post
Code:
#define ADR_DEVICEPOINTER           0x00A53440
#define OFS_DEVICEPOINTER           0x002B930

HRESULT   __stdcall nPresent   (  LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion );
typedef HRESULT ( APIENTRY* Present_t )(  LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion );
Present_t   pPresent;

HRESULT   __stdcall nReset    (  LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters );
typedef HRESULT ( APIENTRY* Reset_t ) (  LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters );
Reset_t     pReset;

HRESULT _stdcall nPresent(LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
	_asm PUSHAD;

         //Your Code Here :D

	_asm POPAD;

	return pPresent(pDevice,pSourceRect, pDestRect,hDestWindowOverride,pDirtyRegion); 
}

HRESULT __stdcall nReset (LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
{
	_asm PUSHAD;

	pFont->OnLostDevice();
	HRESULT hRet = pReset(pDevice, pPresentationParameters);
	pFont->OnResetDevice();

	_asm POPAD;

    return hRet;
}


DWORD WarRockDevice (int index)
{
	if (!ADR_DEVICEPOINTER) return 0;
	DWORD dwDevicePointer = *(DWORD*)ADR_DEVICEPOINTER;
    if(!dwDevicePointer) return 0;
	DWORD dwDeviceAddress = *(DWORD*)(dwDevicePointer + OFS_DEVICEPOINTER);
    if(!dwDeviceAddress) return 0;
    dwDeviceAddress = *(DWORD*)dwDeviceAddress;
    if(!dwDeviceAddress) return 0;
    return dwDeviceAddress + (4*index);
}

#define InitializeDevice(name, index)\
        DWORD dw##name##1 = WarRockDevice (index);\
        if(*(DWORD*)dw##name##1 != (DWORD)&n##name && dw##name##1 != NULL)\
{\
         p##name = (name##_t) *(DWORD*)dw##name##1;\
        *(DWORD*)dw##name##1 = (DWORD)&n##name;\
}

int __stdcall DeviceHook(void)
{
    bool Ready = false;
    while( true ) 
    {
        Ready = WarRockDevice(0) > 0;
        if( Ready )
        {
            InitializeDevice(Reset,16);
            InitializeDevice(Present,17);
        }
		Sleep(300);
	}
}
Try this one
You need an Bypass for this
Phantom. is offline  
Thanks
1 User
Old 03/02/2013, 15:08   #764
 
elite*gold: 0
Join Date: Aug 2011
Posts: 726
Received Thanks: 3,211
Quote:
Originally Posted by Phantom. View Post
You need an Bypass for this
Exactly
R3d_L!n3 is offline  
Thanks
1 User
Old 03/03/2013, 04:57   #765
 
boknoy24's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 119
Received Thanks: 45
#Request Weapon Binder Source Menu :/
boknoy24 is offline  
Closed Thread


Similar Threads Similar Threads
WarRock EU - Code Snippets
07/12/2012 - WarRock - 7490 Replies
Hi Leute, in diesem Thread könnt ihr: -> Nach Sourcecodes fragen(Beispiel unten) -> Eure Sourcecodes posten(Wenn sie nicht von euch sind mit Credits!) -> Fragen ob eure Source evtl. einen Fehler hat -> Fragen was welcher Fehler bedeuted -> Sourcecodes entnehmen(Bitte beim Release dann Credits angeben!)



All times are GMT +1. The time now is 00:32.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.