Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > WarRock
You last visited: Today at 18:41

  • 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 08/18/2012, 16:48   #196
 
elite*gold: 0
Join Date: Nov 2007
Posts: 24
Received Thanks: 1
Quote:
Originally Posted by GigaByte™ View Post
Well ESP uses CPlayer for the positioning, is it Updated? CBase updated?
I guess they are? I got them from Pointer und Offsets thread, still haven't figured it out, names wont pop above players head but instead they are outside of the map
Code:
struct CPlayer
{
CHAR hacker1377[0xC4C4];//0x00
BYTE PlayerState;//0xC4C4
CHAR hacker13772[0x3CDD];//0xC4C5
FLOAT Pitch;//0x101A0
CHAR hacker13773[0x18];//0x101A4
FLOAT Yaw;//0x101BC
CHAR hacker13774[0xC];//0x101C0
FLOAT ViewX;//0x101CC
FLOAT ViewY;//0x101D4
FLOAT ViewZ;//0x101D0
CHAR hacker13776[0x124];//0x101D4
FLOAT PosX;//0x102F8
CHAR hacker13777[0x4];//0x102FC
FLOAT PosY;//0x10300
CHAR hacker13778[0x4];//0x10304
FLOAT PosZ;//0x10308
};
struct c_Base
{
	CPlayer* pLocal;//playerpointer
	char cJump1[1197020];
	CPlayer** pGlobal;//remotepointer
};
c_Base *p_Player = (c_Base*)ADR_PLAYERPOINTER;


struct CPlayerInfo
{	
		char unknown0[1724]; //0x0000
	__int32 ping; //0x06BC  
		char unknown1728[20]; //0x06C0
	char ip[16]; //0x06D4  
		char unknown1764[136]; //0x06E4
	__int32 exp; //0x076C  
		char unknown1904[596]; //0x0770
	char Name[20]; //0x09C4  
		char unknown2520[4500]; //0x09D8
	__int32 points; //0x1B6C  
		char unknown7024[16]; //0x1B70
	__int32 kills; //0x1B80  
	__int32 deaths; //0x1B84  
		char unknown7048[12]; //0x1B88
	__int32 health; //0x1B94  
		char unknown7064[312]; //0x1B98
	BYTE team; //0x1CD0 
};
jeffrey1994 is offline  
Old 08/18/2012, 19:54   #197
 
~ExoduS~*'s Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 1,426
Received Thanks: 1,370
than change pos man ! y and x ka man your source is fail
~ExoduS~* is offline  
Old 08/18/2012, 20:24   #198
 
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 4,650
Received Thanks: 5,731
Quote:
Originally Posted by jeffrey1994 View Post
I guess they are? I got them from Pointer und Offsets thread, still haven't figured it out, names wont pop above players head but instead they are outside of the map
Code:
struct CPlayer
{
CHAR hacker1377[0xC4C4];//0x00
BYTE PlayerState;//0xC4C4
CHAR hacker13772[0x3CDD];//0xC4C5
FLOAT Pitch;//0x101A0
CHAR hacker13773[0x18];//0x101A4
FLOAT Yaw;//0x101BC
CHAR hacker13774[0xC];//0x101C0
FLOAT ViewX;//0x101CC
FLOAT ViewY;//0x101D4
FLOAT ViewZ;//0x101D0
CHAR hacker13776[0x124];//0x101D4
FLOAT PosX;//0x102F8
CHAR hacker13777[0x4];//0x102FC
FLOAT PosY;//0x10300
CHAR hacker13778[0x4];//0x10304
FLOAT PosZ;//0x10308
};
struct c_Base
{
	CPlayer* pLocal;//playerpointer
	char cJump1[1197020];
	CPlayer** pGlobal;//remotepointer
};
c_Base *p_Player = (c_Base*)ADR_PLAYERPOINTER;


struct CPlayerInfo
{	
		char unknown0[1724]; //0x0000
	__int32 ping; //0x06BC  
		char unknown1728[20]; //0x06C0
	char ip[16]; //0x06D4  
		char unknown1764[136]; //0x06E4
	__int32 exp; //0x076C  
		char unknown1904[596]; //0x0770
	char Name[20]; //0x09C4  
		char unknown2520[4500]; //0x09D8
	__int32 points; //0x1B6C  
		char unknown7024[16]; //0x1B70
	__int32 kills; //0x1B80  
	__int32 deaths; //0x1B84  
		char unknown7048[12]; //0x1B88
	__int32 health; //0x1B94  
		char unknown7064[312]; //0x1B98
	BYTE team; //0x1CD0 
};
FLOAT ViewX;//0x101CC
FLOAT ViewY;//0x101D4
FLOAT ViewZ;//0x101D0


you failed hard

FLOAT ViewX;//0x101CC
FLOAT ViewZ;//0x101D4
FLOAT ViewY;//0x101D0


and i think you use a public esp source and there are alle thinks (names,health....)
under the foot of the player not at the head
Angel-Piece is offline  
Thanks
1 User
Old 08/18/2012, 21:45   #199
 
elite*gold: 0
Join Date: Nov 2007
Posts: 24
Received Thanks: 1
Quote:
Originally Posted by ~ExoduS~* View Post
than change pos man ! y and x ka man your source is fail
I already noticed that I just copy pasted what I found in the "Pointer und Offsets" thread, so you better blame the person that posted these structs

Quote:
Originally Posted by Angel-Piece View Post
FLOAT ViewX;//0x101CC
FLOAT ViewY;//0x101D4
FLOAT ViewZ;//0x101D0


you failed hard

FLOAT ViewX;//0x101CC
FLOAT ViewZ;//0x101D4
FLOAT ViewY;//0x101D0


and i think you use a public esp source and there are alle thinks (names,health....)
under the foot of the player not at the head
I had already seen that mistake by the creator of the structures but that still didn't work, but I already figured out what the problem was.

My next problem is checking if a player is an enemy or not
jeffrey1994 is offline  
Old 08/18/2012, 23:22   #200
 
elite*gold: 0
Join Date: Apr 2012
Posts: 594
Received Thanks: 810
Quote:
Originally Posted by jeffrey1994 View Post
I already noticed that I just copy pasted what I found in the "Pointer und Offsets" thread, so you better blame the person that posted these structs


I had already seen that mistake by the creator of the structures but that still didn't work, but I already figured out what the problem was.

My next problem is checking if a player is an enemy or not
Easy peasy, just make team check
GigaByte™ is offline  
Old 08/19/2012, 02:06   #201
 
elite*gold: 0
Join Date: Nov 2007
Posts: 24
Received Thanks: 1
Quote:
Originally Posted by GigaByte™ View Post
Easy peasy, just make team check
Yeah but it's not working. I now got it like this but no matter what it, displays all drawings on all players
Code:
if (CH_ESPEnemyOnly == 0)
{
       //ESP code here, works fine displays names on all players
}
if (CH_ESPEnemyOnly == 1)
{
  if (GetGlobalInfo(GetLocalInfo())->Team != GetGlobalInfo(i)->Team){
       // ESP code here, displays names on all players
 }
}
You mean like that right?
jeffrey1994 is offline  
Old 08/19/2012, 08:22   #202
 
CyberVeezy :)'s Avatar
 
elite*gold: 1
Join Date: Oct 2011
Posts: 1,117
Received Thanks: 1,520
Code:
BOOL PatchInvi;
if(X3_Invisible == 1 && PatchInvi == false){ if(dwServerPtr!=0){ *(long*)(dwServerPtr+ADR_INVISIBLE) -= 2; PatchInvi = true;}} 
if(X3_Invisible == 0 && PatchInvi == true){ *(long*)(dwServerPtr+ADR_INVISIBLE) += 2; PatchInvi = false;}
Credits: Willi35
CyberVeezy :) is offline  
Old 08/19/2012, 11:16   #203
 
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 4,650
Received Thanks: 5,731
Quote:
Originally Posted by jeffrey1994 View Post
Yeah but it's not working. I now got it like this but no matter what it, displays all drawings on all players
Code:
if (CH_ESPEnemyOnly == 0)
{
       //ESP code here, works fine displays names on all players
}
if (CH_ESPEnemyOnly == 1)
{
  if (GetGlobalInfo(GetLocalInfo())->Team != GetGlobalInfo(i)->Team){
       // ESP code here, displays names on all players
 }
}
You mean like that right?
yeah it should work but, if you want to have a good enemy online you need to calculate, if you in ffa or not too because in your code 50% of player are green other 50% are red but in ffa all people are enemy...


and your code isn't clean you could do it realy shorter,cleaner & better....
Angel-Piece is offline  
Old 08/19/2012, 12:56   #204
 
elite*gold: 0
Join Date: Nov 2007
Posts: 24
Received Thanks: 1
Quote:
Originally Posted by Angel-Piece View Post
yeah it should work but, if you want to have a good enemy online you need to calculate, if you in ffa or not too because in your code 50% of player are green other 50% are red but in ffa all people are enemy...


and your code isn't clean you could do it realy shorter,cleaner & better....
Well this check causes nothing to work cant figure it out
Code:
if (GetGlobalInfo(GetLocalInfo())->Team != GetGlobalInfo(i)->Team)
jeffrey1994 is offline  
Old 08/19/2012, 15:03   #205
 
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 4,650
Received Thanks: 5,731
Quote:
Originally Posted by jeffrey1994 View Post
Well this check causes nothing to work cant figure it out
Code:
if (GetGlobalInfo(GetLocalInfo())->Team != GetGlobalInfo(i)->Team)
maybe wrong structs?
Angel-Piece is offline  
Thanks
2 Users
Old 08/19/2012, 17:30   #206
 
elite*gold: 0
Join Date: Apr 2012
Posts: 594
Received Thanks: 810
Quote:
Originally Posted by Angel-Piece View Post
maybe wrong structs?
What he said + addies used in GetGlobal and Local Info?
GigaByte™ is offline  
Old 08/19/2012, 20:14   #207
 
elite*gold: 0
Join Date: Nov 2007
Posts: 24
Received Thanks: 1
Quote:
Originally Posted by GigaByte™ View Post
What he said + addies used in GetGlobal and Local Info?
I checked them they seem right, I kinda gave up on the ESP part, if someone is willing to help me PM me or something
Code:
struct CPlayerInfo
{	
		char unknown0[1724]; //0x0000
	__int32 Ping; //0x06BC  
		char unknown1728[20]; //0x06C0
	char Ip[16]; //0x06D4  
		char unknown1764[136]; //0x06E4
	__int32 Exp; //0x076C  
		char unknown1904[596]; //0x0770
	char Name[20]; //0x09C4  
		char unknown2520[4500]; //0x09D8
	__int32 Points; //0x1B6C  
		char unknown7024[16]; //0x1B70
	__int32 Kills; //0x1B80  
	__int32 Deaths; //0x1B84  
		char unknown7048[12]; //0x1B88
	__int32 Health; //0x1B94  
		char unknown7064[312]; //0x1B98
	BYTE Team; //0x1CD0 
};
The structures look OK if you look at all the offsets and padding in between, I dont know how to create structures I only know how to read them.

Addy's
Code:
#define ADR_BASEPOINTER			0x00A8C178
#define ADR_SERVERPOINTER		        0x00A35268
#define OFS_LOCALSIZE			0x00A404
#define OFS_GLOBALSIZE			0x001D00
jeffrey1994 is offline  
Old 08/20/2012, 01:55   #208
 
elite*gold: 0
Join Date: Apr 2012
Posts: 594
Received Thanks: 810
Quote:
Originally Posted by jeffrey1994 View Post
I checked them they seem right, I kinda gave up on the ESP part, if someone is willing to help me PM me or something
Code:
struct CPlayerInfo
{	
		char unknown0[1724]; //0x0000
	__int32 Ping; //0x06BC  
		char unknown1728[20]; //0x06C0
	char Ip[16]; //0x06D4  
		char unknown1764[136]; //0x06E4
	__int32 Exp; //0x076C  
		char unknown1904[596]; //0x0770
	char Name[20]; //0x09C4  
		char unknown2520[4500]; //0x09D8
	__int32 Points; //0x1B6C  
		char unknown7024[16]; //0x1B70
	__int32 Kills; //0x1B80  
	__int32 Deaths; //0x1B84  
		char unknown7048[12]; //0x1B88
	__int32 Health; //0x1B94  
		char unknown7064[312]; //0x1B98
	BYTE Team; //0x1CD0 
};
The structures look OK if you look at all the offsets and padding in between, I dont know how to create structures I only know how to read them.

Addy's
Code:
#define ADR_BASEPOINTER			0x00A8C178
#define ADR_SERVERPOINTER		        0x00A35268
#define OFS_LOCALSIZE			0x00A404
#define OFS_GLOBALSIZE			0x001D00
Hmm seems right, then it might be at the beginning of your ESP code where Get screen coordinates from world is :/
GigaByte™ is offline  
Old 08/20/2012, 13:29   #209
 
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 4,650
Received Thanks: 5,731
Quote:
Originally Posted by jeffrey1994 View Post
I checked them they seem right, I kinda gave up on the ESP part, if someone is willing to help me PM me or something
Code:
struct CPlayerInfo
{	
		char unknown0[1724]; //0x0000
	__int32 Ping; //0x06BC  
		char unknown1728[20]; //0x06C0
	char Ip[16]; //0x06D4  
		char unknown1764[136]; //0x06E4
	__int32 Exp; //0x076C  
		char unknown1904[596]; //0x0770
	char Name[20]; //0x09C4  
		char unknown2520[4500]; //0x09D8
	__int32 Points; //0x1B6C  
		char unknown7024[16]; //0x1B70
	__int32 Kills; //0x1B80  
	__int32 Deaths; //0x1B84  
		char unknown7048[12]; //0x1B88
	__int32 Health; //0x1B94  
		char unknown7064[312]; //0x1B98
	BYTE Team; //0x1CD0 
};
The structures look OK if you look at all the offsets and padding in between, I dont know how to create structures I only know how to read them.

Addy's
Code:
#define ADR_BASEPOINTER			0x00A8C178
#define ADR_SERVERPOINTER		        0x00A35268
#define OFS_LOCALSIZE			0x00A404
#define OFS_GLOBALSIZE			0x001D00
idk but i think your strucs are fail...

because my team offset is at: 0x001CE0


and yours at 0x1CD0 ...

and kills isn't 0x1b80 it is 0x1b88...
death isn't 0x1b84 it is 0x1b8c
and i think ip is 0x6d8


blablabla
Angel-Piece is offline  
Thanks
2 Users
Old 08/20/2012, 14:19   #210
 
elite*gold: 0
Join Date: Nov 2007
Posts: 24
Received Thanks: 1
Quote:
Originally Posted by Angel-Piece View Post
idk but i think your strucs are fail...

because my team offset is at: 0x001CE0


and yours at 0x1CD0 ...

and kills isn't 0x1b80 it is 0x1b88...
death isn't 0x1b84 it is 0x1b8c
and i think ip isn't 0x6d8


blablabla
You are right, now its working

I need to make a Vehicle Finder like the User finder using the CPlayerInfo struct, is it also possible for vehicles? Or is there also a way to determine what is the current map of the user playing?
jeffrey1994 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 18:41.


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.