Results 1 to 8 of 8
  1. #1
    XToitkimini's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    3

    Lightbulb Something wrong with my code ?

    Hey guys i' m working on my first dayz hack (if we can call this a hack)
    Anyway i'm trying to do a nofatigue, norecoil and nospread (with the breath)


    My nograss works great by the way.

    So what i did :

    Offset for my local player : 0x16FC
    Offset for the base : 0x1065DA8

    My nograss is working so i assume dat my base is correct.


    The 3 others doesn' t work.

    I use :
    plocal + 0x0C70, 0f for fatigue
    plocal + 0x0C74, 1f for fatigueDiff
    plocal + 0x0c6c, 0f for breath


    Did i do something wrong ?

    Thanks for the help mates

  2. #2
    TheJamesp55's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    756
    Use world instead of plocal, I think.

  3. #3
    XToitkimini's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    3
    Quote Originally Posted by TheJamesp55 View Post
    Use world instead of plocal, I think.

    Hey dude, thx for your reply !

    I' ve try with the world but i think i' m doing this wrong, my dayz crash !

    What is your world offset ?

    Thanks bro'

  4. #4
    gtaplayer2's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Dancing with my kawaii friend
    Posts
    588
    Reputation
    22
    Thanks
    1,984
    Do you go 4 bytes into pLocal?

    Like this:
    Object = Mem.Read<uintptr_t>(pBase + BaseOffsets.LocalPlayer);
    Object = Mem.Read<uintptr_t>(Object + 0x4);

  5. #5
    I'M GONNA HAVE TO EAT EVERY F--KING CHICKEN
    MPGH Member
    Chris's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    1,086
    Reputation
    29
    Thanks
    2,780
    My Mood
    Psychedelic
    Quote Originally Posted by gtaplayer2 View Post
    Do you go 4 bytes into pLocal?

    Like this:
    uintptr_t ftw.
    Vouch Thread
    Thank or +rep me if I helped you ★


  6. The Following 2 Users Say Thank You to Chris For This Useful Post:

    gtaplayer2 (12-28-2014),XToitkimini (12-28-2014)

  7. #6
    XToitkimini's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    3
    Thank you guys for the helpp but it still doesn' t work.


    Here is what i do :

    int mylittleplayer = memread(mybase + 0x16FC)
    mylittleplayer = memread(mylittleplayer + 0x4)


    Then

    int norecoil = 0xC8C

    and then

    writefloatblablabla(mylittleplayer + norecoil, 0f);


    Hum i think i' m close but ...

  8. #7
    I'M GONNA HAVE TO EAT EVERY F--KING CHICKEN
    MPGH Member
    Chris's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    1,086
    Reputation
    29
    Thanks
    2,780
    My Mood
    Psychedelic
    Quote Originally Posted by XToitkimini View Post
    Thank you guys for the helpp but it still doesn' t work.


    Here is what i do :

    int mylittleplayer = memread(mybase + 0x16FC)
    mylittleplayer = memread(mylittleplayer + 0x4)


    Then

    int norecoil = 0xC8C

    and then

    writefloatblablabla(mylittleplayer + norecoil, 0f);


    Hum i think i' m close but ...
    Are you reading the World?
    You need to dereference from that first.
    Vouch Thread
    Thank or +rep me if I helped you ★


  9. The Following User Says Thank You to Chris For This Useful Post:

    XToitkimini (12-28-2014)

  10. #8
    XToitkimini's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    3
    Quote Originally Posted by darkwrath505 View Post

    Are you reading the World?
    You need to dereference from that first.

    Yes my friend,

    In my fist line i have

    Memory.ReadInt(0x1065DA8)

    My no grass is working so i think my world is fine !

Similar Threads

  1. [Help] DBased, Help Me, Something Wrong With The Code
    By Proyiehong in forum Mission Against Terror Discussions
    Replies: 0
    Last Post: 03-10-2011, 10:10 PM
  2. help with code(something wrong with it)
    By tremaster in forum Visual Basic Programming
    Replies: 31
    Last Post: 11-10-2010, 06:27 AM
  3. something wrong with the hacks
    By gerry123456 in forum WarRock - International Hacks
    Replies: 2
    Last Post: 12-31-2008, 07:42 PM
  4. Whats wrong with this code ?
    By bohnenbong in forum WarRock - International Hacks
    Replies: 7
    Last Post: 10-26-2007, 06:57 AM
  5. Whats wrong with my code? =(
    By SadisticGrin in forum C++/C Programming
    Replies: 13
    Last Post: 08-03-2007, 11:39 AM