• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Page 1 of 2 12 LastLast
    Results 1 to 10 of 12
    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      BeginerHere's Avatar
      Join Date
      Aug 2012
      Posts
      16
      Thanks (-->)
      0
      Thanks (<--)
      0

      I have made a hack for diablo 2, Im crashing in the game please help

      John Kittz
      I have made this code. And I seem to be crashing in the game. Here is the codes I used. Do you maybe know why Im crashing?
      Code:
      if (Packet[0] == 0x4C &amp;&amp; Packet[1] == UNIT_TYPE_PLAYER)
        {
         LPUNITANY pUnit = GetUnit(*(LPDWORD)&amp;Packet[2], UNIT_TYPE_PLAYER);
      
           if (!pUnit)
           return TRUE;
      
         D2SpellInfo Spell;
         GetSkillInfo(*(LPDWORD)&amp;Packet[6], &amp;Spell);
      
         //Print(0, 5, "%s casted level c3%d c5%s", pUnit-&gt;pPlayerData-&gt;szName, Packet[8], Spell.szSpellName);
      
         if (*(LPDWORD)&amp;Packet[10] == Me-&gt;dwUnitId &amp;&amp; !InTown(Me) &amp;&amp; V_TPWhenAttacked)
         {
           if (Spell.dwSpellInfoFlag &amp; DSI_PARTYCAST)
            return TRUE;
      
           LPROSTERUNIT pRoster = FindPartyById(pUnit-&gt;dwUnitId);
      
           if (!pRoster)
            return TRUE;
      
           DWORD dwFlags = GetPvPFlags(pRoster-&gt;dwUnitId);
      
           if (dwFlags &amp; PVP_HOSTILED_BY_YOU || dwFlags &amp; PVP_HOSTILED_YOU)
           {
            Print(0, 4, "c5Escape: c-1%s attacked you", pRoster-&gt;szName);
      
            if (Portal())
              V_TP = TRUE;
            else
              ExitGame();
           }
         }
      
         return TRUE;
        }
      
        if (Packet[0] == 0x4D &amp;&amp; Packet[1] == UNIT_TYPE_PLAYER)
        {
         LPUNITANY pUnit = GetUnit(*(LPDWORD)&amp;Packet[2], UNIT_TYPE_PLAYER);
      
         if (!pUnit)
           return TRUE;
      
         D2SpellInfo Spell;
         GetSkillInfo(*(LPWORD)&amp;Packet[6], &amp;Spell);
      
         Print(0, 5, "%s casted level c3%d c5%s", pUnit-&gt;pPlayerData-&gt;szName, Packet[10], Spell.szSpellName);
      
         return TRUE;
        }
      Edit:Use code tags [#]
      Attached Files Attached Files

    2. #2
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      BeginerHere's Avatar
      Join Date
      Aug 2012
      Posts
      16
      Thanks (-->)
      0
      Thanks (<--)
      0

      Re: I have made a hack for diablo 2, Im crashing in the game please help

      Well Bascially I dont crash until The hack prints something on the screen.

    3. #3
      Hacker
      Learning to hack games!
       
      Pawning
       
      Fleep's Avatar
      Join Date
      May 2012
      Posts
      626
      Thanks (-->)
      208
      Thanks (<--)
      727

      Re: I have made a hack for diablo 2, Im crashing in the game please help

      I don't have much experience with packets, maybe someone like Konsowa can give you some insight on this.

      Fleep

    4. #4
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      konsowa's Avatar
      Join Date
      May 2012
      Posts
      184
      Thanks (-->)
      1
      Thanks (<--)
      2

      Re: I have made a hack for diablo 2, Im crashing in the game please help

      Well check if spell is casted if u don't print anything

    5. #5
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      BeginerHere's Avatar
      Join Date
      Aug 2012
      Posts
      16
      Thanks (-->)
      0
      Thanks (<--)
      0

      Re: I have made a hack for diablo 2, Im crashing in the game please help

      Well basically. What this does is reads and prints what every charater in the game is casting. And what level it is.

      If nothing is casted. Nor printed onthe screen. I dont crash

    6. #6
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      BeginerHere's Avatar
      Join Date
      Aug 2012
      Posts
      16
      Thanks (-->)
      0
      Thanks (<--)
      0

      Re: I have made a hack for diablo 2, Im crashing in the game please help

      https://tinypic.com/r/a3gh0y/6
      I have made a hack for diablo 2, Im crashing in the game please help

      here is what it looks like. after it prints anything along those lines. it crashes

    7. #7
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      konsowa's Avatar
      Join Date
      May 2012
      Posts
      184
      Thanks (-->)
      1
      Thanks (<--)
      2

      Re: I have made a hack for diablo 2, Im crashing in the game please help

      can i see how ur printing the actual text?

    8. #8
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      BeginerHere's Avatar
      Join Date
      Aug 2012
      Posts
      16
      Thanks (-->)
      0
      Thanks (<--)
      0

      Re: I have made a hack for diablo 2, Im crashing in the game please help

      Well the packets it self prints into the game. I have attached my packets.cpp to this post.
      It doesnt use the chat functions when it prints

    9. #9
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      BeginerHere's Avatar
      Join Date
      Aug 2012
      Posts
      16
      Thanks (-->)
      0
      Thanks (<--)
      0

      Re: I have made a hack for diablo 2, Im crashing in the game please help

      Its Packet 0x4C &amp; 0x4D

    10. #10
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      wessie's Avatar
      Join Date
      Jul 2012
      Posts
      22
      Thanks (-->)
      0
      Thanks (<--)
      0

      Re: I have made a hack for diablo 2, Im crashing in the game please help

      Cheats'n'Trainers
      A few things can be wrong:

      1) Offsets
      2) Structures (i dont see the full code, but every code is build on them)
      3) Did you included the right libs?

      What you can try is get OllyDBG &amp; Reclass and start reversing all the stuff again, it might be a bit of work but if the hack is that impotent it will payout

    Page 1 of 2 12 LastLast

    Similar Game Hacker Threads

    1. [VideoTutorial] Game Hacker Tutorial - CoM Zombies Fly Hack for any Game
      By binomi in forum Binomi's Android Hacking
      Replies: 1
      Last Post: 04-18-2016, 08:27 PM
    2. Replies: 5
      Last Post: 06-22-2015, 06:27 AM
    3. Replies: 4
      Last Post: 08-28-2014, 02:49 AM
    4. [Help] C++ DLL | After Memorywriting game is crashing.(AssaultCube)
      By CANBERRA in forum Hacking Help
      Replies: 5
      Last Post: 03-22-2014, 02:41 PM