Go Back   GamerzPlanet - For All Your Online Gaming Needs!! > ijji Games > Gunz Online > Gunz Hacks/Bots Discussion

Gunz Hacks/Bots Discussion Gunz Hacks/Bots Discussion only. No begging.


GetAmmoCount function?

Gunz Hacks/Bots Discussion


Reply
 
Thread Tools Display Modes
Old 11-08-2009, 10:25 AM   #1
WaffleByte
Registered User
 
WaffleByte's Avatar
 
Last Online: Yesterday 03:05 PM
Join Date: Sep 2009
Location: Canada
Posts: 121
Rep Power: 2
Rep Points: 173
WaffleByte has a spectacular aura aboutWaffleByte has a spectacular aura about
Feedback: (0)
Points: 351.00
Bank: 2,887.93
Total Points: 3,238.93
Re: GetAmmoCount function?

I explored Gunz.exe a bit more and I found out how to properly do it.

Code:
int GetAmmo()
{
    int Ammo;
    __asm
    {
        Call ZMyCharacter
        LEA ECX,DWORD PTR DS:[EAX+0x38]
        MOV EAX,GetSelectedWeaponAddr
        CALL EAX
        LEA EAX,DWORD PTR DS:[EAX+0x3C]
        MOV EAX,DWORD PTR DS:[EAX]
        MOV Ammo,EAX
    }
    return Ammo;
}
This code successfully returns the amount of ammo in my current weapon.
HitatchiHex, thanks for pointing me in the right direction.
WaffleByte is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

All times are GMT -7. The time now is 01:15 AM.

 

Copyright ©2009, GamerzPlanet.Net
Visits: