Results 1 to 1 of 1
  1. #1
    Shillu's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    209
    My Mood
    Relaxed

    Help creating hacked mags Add me on skype if you can help me Shylon356 is my skype

    To create hacked / Infi-mags, you have to either call the function itself, or remove the
    isServerOwner check from the function. Also the funny thing about this script, is that it is not in any other arma game, and is very visible in the dayz source code.

    In both methods, you will need to find the script function first, seen in this image:

    https://gyazo.com/0ff538c6ab797e67c773eeeea6edf6bc

    Method 1, Using it as a Script.

    1. Hook the function and remove the isServerOwner check, just hooking it will not work and will make this only local. Setting yourself as the serverowner
    will block all client->server messages. This is because you are setting yourself as the server so your client is sending the messages to yourself.

    Here is the isServerCheck in this image:

    https://gyazo.com/16c17170f3184cfda80b0c55a1c606db

    2. Go to the following PBO: weapon_magazines.pbo
    and set the max amount of ammo each type of mag may hold

    3. Go in game and execute setMagazineAmmo 1, which will set the mag to the max value, if you do not follow step 2, the mag will just be refiled. If you are a scripts, just create a script to set all mags around you to max, i do know scripting so i do not do this method.

    Method 2, Calling the actual function through memory

    1. You will have to find the actual function in IDA, which will be under __RTDynamicCast which
    is way down within the script function. As this is the same as the DayZ 0.45 Source code.

    Here is an image of the actual function setting the mag's ammo:

    https://gyazo.com/72480e9f716f5341b98f6231d78b1

    2. You will need to go within the function and grab the arguments

    This is an image of the function decompiled in IDA

    https://gyazo.com/f1a342fa3d970742d16a59d88e712525

    3. Next you will need to create your function, i just did:

    Code:

    // 0x6CABB0 is the address of the actual function in the immage above
    class Magazine {
    public:
    void setAmmo (float amount) {
    typedef void(__thiscall *tSetMagAmmo)(Magazine*, float);
    tSetMagAmmo oSetMagAmmo = (tFunction)(0x6CABB0);
    oSetMagAmmo(this, amount);
    };
    };

    4. You will need to write a way to grab your current magazine, or make it find all the magazines in your area.
    usage of that class
    Code:

    Magazine* myMag = CameraOn()->GetCurrentMag();
    myMag->setAmmo(99999999);

    - - - Updated - - -

    Credits to XCH4OSX
    Last edited by Shillu; 11-24-2015 at 09:00 AM.

Similar Threads

  1. Need help creating hacks from professional hacker
    By substituteaccount in forum Xbox Hacking
    Replies: 9
    Last Post: 04-24-2015, 03:47 PM
  2. Need help TM/startMenu.sqf not found Skype If You Can Help Me!
    By diego4realz in forum DayZ Discussion
    Replies: 3
    Last Post: 02-07-2013, 07:23 AM
  3. [Help] how to make a hack :D plz till me if you can help me
    By ra3dpop in forum CrossFire Discussions
    Replies: 2
    Last Post: 10-16-2011, 10:35 AM
  4. need help with a map, rep and thanks given if you can help
    By supercarz1991 in forum Combat Arms Mod Discussion
    Replies: 7
    Last Post: 03-08-2011, 04:47 PM
  5. About the HACK, VPN or w\e it called - I can HELP
    By fishka in forum Combat Arms Europe Hacks
    Replies: 28
    Last Post: 01-08-2009, 03:38 AM