WEAPON AMMO NUMBER

Posts 1–11 of 11 · Page 1 of 1
WEAPON AMMO NUMBER
Hi it's me again. I was surfing the net for warrock hacks tutorials and C++ tutorials and then i found a code for changing some weapon data(I'm not sure though). Modified some of it and i'm not quite sure if i did it correctly. so here's the code.

Code:
class CWeaponInformations
{
public:
     char padd1[132];
     DWORD dwDamage; // 0x84  
     DWORD dwDefence; //0x88
     DWORD dwRange; // 0x8C   
     DWORD dwAmmoNum; //0x90   
     DWORD dwMagazineNum; //0x94 
     DWORD dwEffectRange; //0x98  
     DWORD dwParabola; // 0x9C
	 char padd2[12];
     DWORD dwShotSpeed; //0xAC 
     DWORD dwWeight; //0xB0
};

CWeaponInformations* getWeaponInfo(int index, DWORD ptr)
{
    DWORD dwPtrToWeapons = *(DWORD *)(ptr + 0x40);
    if(!dwPtrToWeapons)   
        return 0;       

    DWORD dwPtrToDesiredWeapon = *(DWORD *)(dwPtrToWeapons + index);
    
    if(!dwPtrToDesiredWeapon)
        return 0;    
    
    return (CWeaponInformations*)(dwPtrToDesiredWeapon);
}

// Initialize Class
CWeaponInformations* weaponInformations = getWeaponInfo(66, ADR_WeaponGlobal1);
CWeaponInformations* weaponInformations2 = getWeaponInfo(66, ADR_WeaponGlobal2);

// How To Use

void AMMO()
{
	weaponInformations->dwAmmoNum = 9;
        weaponInformations->dwRange = 9000000;
        weaponInformations->dwEffectRange = 90000;
}
after compiling and tested it in-game, the game crash after the spawn wait counter set to 0. Can someone help me out on how to fix this?
Update addresses, might be better
Quote Originally Posted by n4n033 View Post
Update addresses, might be better
Thank you, I'll do it then.
Dont Forget to Add this one

Struct WeaponInfoIUse
{
DWORD dwDamage; // 0x84
DWORD dwDefence; //0x88
DWORD dwRange; // 0x8C
DWORD dwAmmoNum; //0x90
DWORD dwMagazineNum; //0x94
DWORD dwEffectRange; //0x98
DWORD dwParabola; // 0x9C
}
Quote Originally Posted by WhiteHat PH View Post
Dont Forget to Add this one

Struct WeaponInfoIUse
{
DWORD dwDamage; // 0x84
DWORD dwDefence; //0x88
DWORD dwRange; // 0x8C
DWORD dwAmmoNum; //0x90
DWORD dwMagazineNum; //0x94
DWORD dwEffectRange; //0x98
DWORD dwParabola; // 0x9C
}
does the code i got is correct? and all i need is to add the WeaponInfoIUse struct?
This won't work on international, it's already patched.
Quote Originally Posted by AeroMan View Post
This won't work on international, it's already patched.
I only play in PH.
Quote Originally Posted by AeroMan View Post
This won't work on international, it's already patched.
good for WarRock Int.
Quote Originally Posted by AeroMan View Post
This won't work on international, it's already patched.
Still works on int the offsets on the Dump are just a bit wrong. the dump on ph and int is almost the same on other parts of the module.
Quote Originally Posted by AeroMan View Post
This won't work on international, it's already patched.
It Still working in int ....
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?