Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > WarRock
You last visited: Today at 13:23

  • 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 05/23/2013, 22:06   #991
 
elite*gold: 0
Join Date: May 2013
Posts: 109
Received Thanks: 145
Quote:
Originally Posted by CyberMask View Post
Hi guys, i want to share mine Draw Rounded Border code with you
I use normal DrawRectangle to make it.
Look .


Code:
VOID DrawField(INT iFromX,INT iFromY,INT iToX,INT iToY,DWORD dwColor,LPDIRECT3DDEVICE9 pDevice)
{
	D3DRECT Rect = {iFromX,iFromY,(iFromX+iToX),(iFromY+iToY)};
	pDevice->Clear(1,&Rect,(D3DCLEAR_TARGET),dwColor,1.0F,0);
}
VOID DrawBorder(INT iPosX,INT iPosY,INT iToX,INT iToY,INT iWidth,DWORD dwColor,LPDIRECT3DDEVICE9 pDevice)
{
	DrawField(iPosX,(iPosY+iToY-iWidth),iToX,iWidth,dwColor,pDevice);
	DrawField((iPosX+iToX-iWidth),iPosY,iWidth,iToY,dwColor,pDevice);
	DrawField(iPosX,iPosY,iWidth,iToY,dwColor,pDevice);
	DrawField(iPosX,iPosY,iToX,iWidth,dwColor,pDevice);
}
Code:
VOID DrawRoundedBorder ( INT PosX, INT PosY , INT ToX , INT ToY , INT Width , DWORD dwColor , LPDIRECT3DDEVICE9 pDevice )
{
	DrawBorder(PosX,PosY,ToX,1,Width,dwColor,pDevice);
	

	DrawBorder(PosX-1,PosY+1,1,1,Width,dwColor,pDevice);
	DrawBorder(PosX-2,PosY+2,1,1,Width,dwColor,pDevice);
	DrawBorder(PosX-3,PosY+3,1,1,Width,dwColor,pDevice);
	DrawBorder(PosX-4,PosY+4,1,1,Width,dwColor,pDevice);

	DrawBorder(PosX+(ToX),PosY+1,1,1,Width,dwColor,pDevice);
	DrawBorder(PosX+(ToX+1),PosY+2,1,1,Width,dwColor,pDevice);
	DrawBorder(PosX+(ToX+2),PosY+3,1,1,Width,dwColor,pDevice);
	DrawBorder(PosX+(ToX+3),PosY+4,1,1,Width,dwColor,pDevice);

	DrawBorder(PosX-4,PosY+4,1,ToY,Width,dwColor,pDevice);

	DrawBorder(PosX-4,PosY+(ToY+4),1,1,Width,dwColor,pDevice);
	DrawBorder(PosX-3,PosY+(ToY+5),1,1,Width,dwColor,pDevice);
	DrawBorder(PosX-2,PosY+(ToY+6),1,1,Width,dwColor,pDevice);
	DrawBorder(PosX-1,PosY+(ToY+7),1,1,Width,dwColor,pDevice);

	DrawBorder(PosX,PosY+(ToY+7),ToX,1,Width,dwColor,pDevice);

	DrawBorder(PosX+(ToX+3),PosY+(ToY+4),1,1,Width,dwColor,pDevice);
	DrawBorder(PosX+(ToX+2),PosY+(ToY+5),1,1,Width,dwColor,pDevice);
	DrawBorder(PosX+(ToX+1),PosY+(ToY+6),1,1,Width,dwColor,pDevice);
	DrawBorder(PosX+(ToX+0),PosY+(ToY+7),1,1,Width,dwColor,pDevice);

	DrawBorder(PosX+(ToX+3),PosY+4,1,ToY,Width,dwColor,pDevice);
	
	

}
An Example ?

Code:
DrawRoundedBorder(20,30,90,20,1,RED,pDevice);
=


From CyberRazzer Base you have make a rounded menu but so coding cyber
SilverRazzer <3 is offline  
Old 05/24/2013, 05:00   #992
 
elite*gold: 0
Join Date: May 2013
Posts: 4
Received Thanks: 0
#Request: Please, Ehsvc Bypass for that version in attachment.


VirusScan:

ineedhacksok is offline  
Old 05/24/2013, 08:38   #993
 
elite*gold: 0
Join Date: May 2013
Posts: 4
Received Thanks: 1
#Request Speedhack and Unl. Stamina
Is these codes right?

Dunno why
Quote:
//SPEED
*(double*)(ADR_Speed) = +200.0f;
//STAMINA
*(float*)(ADR_Stamina1) = 1000;
*(float*)(ADR_Stamina2) = 1000;
*(float*)(ADR_Stamina3) = 0;
*(float*)(ADR_Stamina4) = 0;
*(float*)(ADR_Stamina5) = 0;
playncheat99 is offline  
Old 05/25/2013, 15:51   #994
 
elite*gold: 0
Join Date: May 2013
Posts: 109
Received Thanks: 145
Quote:
Originally Posted by playncheat99 View Post
#Request Speedhack and Unl. Stamina
Is these codes right?

Dunno why
Code:
#define ADR_SPEED 0x8C9EF0

char * Speedy [4] = {"SET PLAYER SPEED","100","200","300"};

if( cServer.Speed )
{
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -100;
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -200;
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -300;
}

Credits: Me
SilverRazzer <3 is offline  
Old 05/25/2013, 16:01   #995
 
elite*gold: 1
Join Date: Apr 2013
Posts: 461
Received Thanks: 216
Quote:
Originally Posted by SilverRazzer <3 View Post
Code:
#define ADR_SPEED 0x8C9EF0

char * Speedy [4] = {"SET PLAYER SPEED","100","200","300"};

if( cServer.Speed )
{
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -100;
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -200;
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -300;
}

Credits: Me

Fail: Speed will always be -300.
My solution:

Code:
*(float*)(dwPlayerCheck+ADR_SPEED) = (cServer.Speed ? -(cServer.Speed * 100.0f) : -100.0f); // dunno if -100.0f is default?
.BlackHat is offline  
Thanks
1 User
Old 05/25/2013, 16:22   #996
 
n4n033's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 726
Received Thanks: 1,128
Or maybe simply like this :
Code:
switch(iPlayer.Speed)
{
	case 0:*(double*)(Adr_Speed) = 96;break;
	case 1:*(double*)(Adr_Speed) = 0;break;
	case 2:*(double*)(Adr_Speed) = 110;break;
	case 3:*(double*)(Adr_Speed) = 200;break;
	case 4:*(double*)(Adr_Speed) = 300;break;
	case 5:*(double*)(Adr_Speed) = 400;break;
	case 6:*(double*)(Adr_Speed) = 500;break;
	case 7:*(double*)(Adr_Speed) = 600;break;
	case 8:*(double*)(Adr_Speed) = 700;break;
	case 9:*(double*)(Adr_Speed) = 800;break;
	case 10:*(double*)(Adr_Speed) = 900;break;
	case 11:*(double*)(Adr_Speed) = 1000;break;
}
n4n033 is offline  
Old 05/25/2013, 16:25   #997
 
elite*gold: 73
Join Date: Mar 2011
Posts: 2,908
Received Thanks: 8,548
use the offset for speed

DWORD ADR_OFFSET_PLAYERSPEED = 0x1010C; // 18/5/2013
Kazbah__ is offline  
Old 05/25/2013, 16:35   #998
 
xXrussXx's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 643
Received Thanks: 846
Exclamation

Quote:
Originally Posted by SilverRazzer <3 View Post
Code:
#define ADR_SPEED 0x8C9EF0

char * Speedy [4] = {"SET PLAYER SPEED","100","200","300"};

if( cServer.Speed )
{
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -100;
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -200;
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -300;
}

Credits: Me
Größter Mist den ich jeeeee gesehen hab!!

Quote:
Originally Posted by n4n033 View Post
Or maybe simply like this :
Code:
switch(iPlayer.Speed)
{
	case 0:*(double*)(Adr_Speed) = 96;break;
	case 1:*(double*)(Adr_Speed) = 0;break;
	case 2:*(double*)(Adr_Speed) = 110;break;
	case 3:*(double*)(Adr_Speed) = 200;break;
	case 4:*(double*)(Adr_Speed) = 300;break;
	case 5:*(double*)(Adr_Speed) = 400;break;
	case 6:*(double*)(Adr_Speed) = 500;break;
	case 7:*(double*)(Adr_Speed) = 600;break;
	case 8:*(double*)(Adr_Speed) = 700;break;
	case 9:*(double*)(Adr_Speed) = 800;break;
	case 10:*(double*)(Adr_Speed) = 900;break;
	case 11:*(double*)(Adr_Speed) = 1000;break;
}
Und das ist auch nicht besser!

Machts doch einfach soo:
if( Speed )
{
*reinterpret_cast<float*>(PlayerCheck + ADR_OFS_PlayerSpeed) = Speed*-100;
}
xXrussXx is offline  
Thanks
3 Users
Old 05/25/2013, 18:15   #999
 
elite*gold: 1
Join Date: Apr 2013
Posts: 461
Received Thanks: 216
Quote:
Originally Posted by xXrussXx View Post
Machts doch einfach soo:
if( Speed )
{
*reinterpret_cast<float*>(PlayerCheck + ADR_OFS_PlayerSpeed) = Speed*-100;
}
Größter mist den ICH gesehn hab! Logischerweise wollte er Normalspeed, -100, -200, -300. Also wäre meine Lösung eigentlich die beste, da deine = 0 ist, wenn Speed auch 0 (OFF) ist.

Code:
*reinterpret_cast<float*>(dwPlayerCheck+ofsSpeed) = (cServer.Speed ? -(cServer.Speed * 100.0f) : -100.0f); // dunno if -100.0f is default?
.BlackHat is offline  
Thanks
1 User
Old 05/25/2013, 21:58   #1000


 
elite*gold: 123
The Black Market: 188/0/0
Join Date: Sep 2009
Posts: 1,920
Received Thanks: 1,052
Quote:
Originally Posted by playncheat99 View Post
#Request Speedhack and Unl. Stamina
Is these codes right?

Dunno why
if(x_Speed >= 0 && x_Speed < 7)
Patch<double>(reinterpret_cast<void*>(ADR_SPEED), 96.0 * (x_Speed + 1));

Credits: Underscore / Raz9r
Chowniiqhtz™ is offline  
Thanks
1 User
Old 05/26/2013, 02:09   #1001
 
elite*gold: 0
Join Date: May 2013
Posts: 4
Received Thanks: 0
please someone help me:

ineedhacksok is offline  
Old 05/26/2013, 04:03   #1002
 
elite*gold: 73
Join Date: Mar 2011
Posts: 2,908
Received Thanks: 8,548
Quote:
please someone help me:

Warrock - Code Snippets
at the moment only 2-3 people have a full hs bypass and im sure they dont share it
Kazbah__ is offline  
Thanks
1 User
Old 05/26/2013, 11:44   #1003
 
elite*gold: 0
Join Date: Apr 2013
Posts: 27
Received Thanks: 2
Quote:
Originally Posted by playncheat99 View Post
#Request Speedhack and Unl. Stamina
Is these codes right?

Dunno why
Or you can do this.

WriteFunction.h:

Code:
#include <Windows.h>

void WriteFunction(void *adr, void *ptr, int size)
{
        DWORD dwback;
        VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &dwback);
        memcpy(adr,ptr,size);
        VirtualProtect(adr,size,dwback, &dwback);
}

template <typename T>void WriteFunction(void* adr,T Vaule,T *Input = NULL)
{
        if(Input == 0)
                WriteFunction((void*)adr,(void*)&Vaule,sizeof(T));
        else
                WriteFunction((void*)Input,(void*)adr,sizeof(T));
}

Speed Hack Source (Remember to include WriteFunction.h in main.cpp):

Code:
void PLAYERSPEED()
{
	if(GetAsyncKeyState(VK_F2) &1)
	{
		WriteFunction<DOUBLE>((void *)ADR_PlayerSpeed, 4.5); // On
	}
	if (GetAsyncKeyState(VK_F3) &1)
	{
		WriteFunction<DOUBLE>((void *)ADR_PlayerSpeed, 1.5); // Off
	}

}
winkabean is offline  
Old 05/26/2013, 16:29   #1004
 
elite*gold: 0
Join Date: May 2013
Posts: 4
Received Thanks: 0
Quote:
Originally Posted by Zyzz__ View Post
at the moment only 2-3 people have a full hs bypass and im sure they dont share it
Version - Ehsvc.dll - 5.6.14.310

I need a bypass only for it not to be detected by signatures for strings or functions, I do not use DIP, CE.

I do not know if this is considered a full bypass, I am newbie in these terms.
ineedhacksok is offline  
Old 05/27/2013, 23:04   #1005
 
elite*gold: 0
Join Date: May 2013
Posts: 109
Received Thanks: 145
Code:
BYTE DelayOld[2];
void NoDelay ()
{
	DWORD dwPlayerPtr = *(DWORD*) ADR_PLAYERPOINTER;
	if(dwPlayerPtr != 0)
	{
		if ( DelayOld[0] == 0 && DelayOld[1] == 0 )
		{
			DWORD dwProtect;
			VirtualProtect((void*)(ADR_NODELAY), 2, PAGE_EXECUTE_READWRITE, &dwProtect);
			memcpy(DelayOld,(void*)(ADR_NODELAY), 2);
			VirtualProtect((void*)(ADR_NODELAY), 2, dwProtect, NULL);
		}
		if((GetAsyncKeyState(VK_LBUTTON)<0)==true)
		{
			*(float*) (dwPlayerPtr+OFS_NORECOIL1) = 0.0f;
			*(float*) (dwPlayerPtr+OFS_NORECOIL2) = 0.0f;
			*(float*) (dwPlayerPtr+OFS_NORECOIL3) = 0.0f;
			*(float*) ADR_NOSPREAD = 0.0f;
			
			const BYTE nop[2] = {0x90,0x90};
			DWORD dwProtect;
			VirtualProtect((void*)(ADR_NODELAY), 2, PAGE_EXECUTE_READWRITE, &dwProtect);
			memcpy((void*)(ADR_NODELAY), nop, 2);
			VirtualProtect((void*)(ADR_NODELAY), 2, dwProtect, NULL);
		}
		else
		{  
			*(float*) (dwPlayerPtr+OFS_NORECOIL1) = 0.000000001f;
			*(float*) (dwPlayerPtr+OFS_NORECOIL2) = 0.000000001f;
			*(float*) (dwPlayerPtr+OFS_NORECOIL3) = 0.000000001f;
			*(float*) ADR_NOSPREAD = 0.000000001f;
			
			const BYTE nop[2] = {166,67};
			DWORD dwProtect;
			VirtualProtect((void*)(ADR_NoDelay), 2, PAGE_EXECUTE_READWRITE, &dwProtect);
			memcpy((void*)(ADR_NoDelay),DelayOld, 2);
			VirtualProtect((void*)(ADR_NoDelay), 2, dwProtect, NULL);
		}
	}
}

Credits: UnknownPK
SilverRazzer <3 is offline  
Thanks
1 User
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 13:26.


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.