Question about offsets

Posts 1–5 of 5 · Page 1 of 1
Question about offsets
I recently started coding my own hacks witch will be realeased soon. Ive been using the *(float*) method witch has worked all the way threw it except for 2 hacks gold premium and opk. Through analysis i noticed that.


Code:
#define ADR_Spread 0x00B042B0
#define OFS_PREMIUM 0x00374
Spread has ADR_nospread as premuim has OFS...
Now just an educated guess that ADR = address and OFS = offset..how would i find the address of the offset if not how would i code he offset for gold prem.

Also here is how ive coded my nospread witch works perfectly
Code:
//No Spread
void Spread()
{
*(float*) ADR_Spread = 0;
}
This is from a tutorial, not sure if it works

Code:
void premium () //Gold Premium
{
DWORD dwPlayerPtr = *(DWORD*)Serverpointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+Premium_OffSet) = 3, 10; // 1 = bronze  2 = silver 3 = gold
}
}
Yeh you would just add the offset to the base pointer, which in this case is the PlayerPointer, just like Booya said.
YES!!!
Quote Originally Posted by BooYa View Post
This is from a tutorial, not sure if it works

Code:
void premium () //Gold Premium
{
DWORD dwPlayerPtr = *(DWORD*)Serverpointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+Premium_OffSet) = 3, 10; // 1 = bronze  2 = silver 3 = gold
}
}
Thank you so much !!!......i would love you to be added to my msn messenger or yahoo im
Yahoo: johnjohn51392@yahoo.com
msn:cnttuchme@hotmail.com

As a matter of fact anyone who codes can add me b/c im just starting to learn to code...
Code:
//STAMINA
void STAMINA()//unlimited stamina
{
DWORD dwplayerPtr = *(DWORD*)Serverpointer;
if(dwPlayerPtr != 0)
{
*(long*) (dwplayerPtr+OFS_STAMINA) = 5000, 5000;
}
}
undeclared identifier???
any suggestions...
Sorry for double post
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us