Realm of the Mad God Hacking/Hex Editing Tutorial


Posted on 30th October, by CrisNMP in Flash Cheats, Realm Of The Mad God. 39 Comments



ROTMG Forum for hacks

I’ll leave this well written tutorial of a different approach but still same method to the one I did written by j4ke from opiumtest.blogspot.com

How to cheat in Realm of the Mad God

I couldn’t pass on some hacking Realm of the Mad God fun so I searched the AS3 code with Sothink for anything that would be helpful in doing so. I found a couple locations in the AS3 code or raw data which would handle cheaters in game(“handleCheater”) with one being the actual function and other calling the function. If you try changing any values in game without first stopping the function the game deletes your character and kicks you.

I chose both the function and function call shown below to NOP(02) using the free hex editor called HxD. You could use Cheat Engine or Memory Hacking Software but I believe this program makes the process simple and quick. I tried the hex editor tool in MHS but it didn’t work for me. You do not have to just rely on hex editing/replacing AoB’s you find but can change any values you find using CE or MHS as long as you NOP the handleCheater function first. I found that for Google Chrome browser the first process listed is the one you would need and for FireFox browser you need to locate the plugin-container.exe process when using HxD.

com>company>assembleegameclient>game>GameSprite :
//66 18
_as3_getproperty _-82
//66 42
_as3_getproperty player_
//46 26 00
_as3_callproperty toString(param count:0)
//4f d9 0a 02
_as3_callpropvoid failure(param count:2)
//47

and

com>company>assembleegameclient>object>Player :

//4f d3 18 00
_as3_callpropvoid handleCheater(param count:0)
//26
_as3_pushtrue
//48

I was fooling around with this function I found which obviously involves damage amount and shooting. I replaced the get damage_ property with a different one in the code. I wasn’t sure what to expect but I ended up with completely disabling all enemies shooting projectiles.

com>company>assembleegameclient>net>_-Gs :

private function _-GL(param1:Shoot) : void
{
……
//66 94 05
_as3_getproperty damage_
//4f d4 0d 05
_as3_callpropvoid _-q(param count:5)
//d0
_as3_getlocal <0>
//66 1d

and chose the getproperty //66940c from GameObject to replace it.

I was using MHS/CE for searching my STR in game using long/4byte and changing the value for doing absurd damage. You would have to find the correct address every time you entered/exited a dungeon using this method so why not find a way to permanently set your attack with a value already used in the game by replacing some AoB’s in memory. I did just that and it didn’t take very long to do. I found that the game loads all your char attributes through a function after you selected a server and if you search through the code you’ll find “HitPoints”, “MaxHitPoints” or through the decrypted SWF you’ll find “Attack”, etc. You will find that “Attack” is associated with “_-Ka” throughout the whole code. I found a beneficial variable used in the same object that we can use instead of the “_-Ka”. You’ll notice it is used twice from the object below but we’ll just replace both.

com>company>assembleegameclient>object>Player :

override public function toString() : String
{
……..
var _loc_1:* = …+ “” + _-Ka + “” +…

//11 72 00 00
_as3_iftrue offset: 114
//60 99 08
_as3_getlex _-Ka
//a0
_as3_add
//2c ab 05

and we’ll replace with :
//60 86 0c
_as3_getlex _-6E (10000)
public static const _-6E:int = 10000;

The AoB’s needed for cheating Realm of the Mad God are found below which I’ll try and update once the game has been updated or you could find them yourself.

//Disable anti-cheat in game – Must replace at title screen – Need to Update
Search for: 661866424626004fd90a0247
Replace with: 020202020202000202020202
Datatype: hex-values

//Disable anti-cheat in game – Must replace when in game – Need to Update
Search for: 4fd318002648
Replace with: 020218000202
Datatype: hex-values

//Disable enemy shooting/damage – Must replace at title screen – Build #106 NEW – 10/22/10
Search for: 66d2034fcd0b05d06628
Replace with: 66f9014fcd0b05d06628
Datatype: hex-values

//Change Attack Damage – Must replace at title screen – Need to Update
Search for: 123b0000609908244ba3
Replace with: 123b000060860c244ba3
Datatype: hex-values

//Change Attack Damage – Must replace at title screen – Need to Update
Search for: 11720000609908a02cab05
Replace with: 1172000060860ca02cab05
Datatype: hex-values

 





39 Responses to “Realm of the Mad God Hacking/Hex Editing Tutorial”

  1. Chance says:

    Could you please update this for 119? If you can.

  2. James says:

    Please, update this for build 119 if possible. Anxious to play with it.

  3. Chris says:

    119 Build!

  4. Alex says:

    Has this been updated yet? I really would like to use it :)

  5. clive says:

    could someone make a tut on utube for this and give me a link plzzz

  6. devlin says:

    DUDE UPDATE THIS ;(

  7. bob says:

    Look at the date.

    1. The location of the code that handles cheaters changed.
    2. The designation of the code that handles cheaters changed.
    3. Nobody is going to post updated AOBs, because reason 4, takes time, nobody wants to work for others for free.
    4. You have to decrypt the .swf and spend minutes to hours checking the code looking at the symbols and drawing relations between them to discover what everything could be, based on the code and then trying to identify what is the cheat handler and what is the usefull stats to hack and depending how smart you might find a bunch of codes worth changing to test.
    5. Eventually you should be able to find where is the snip of code that handles cheaters and the one containing the the interesting possible changes for your character.
    6. What exactly you change remains the same. Its pure logic. Add a few 0′s, or change a few values or jump/skip a few lines of code here and there, add/remove some processes, change what symbol the game uses for another one with a higher/lower value and so on to benefit in offense/defense/break the game for you.
    7. Even then you will be doing dozens of test runs, mostly on assumption for hours. Wasting too much time.
    8. Once you make the changes, verify they work and get the new aobs, the moment you post them here, many people will start using, this creates awareness to the hack, the devs take note, change 1 and 2 again intentionally, or just change a few things in the next build that irrevocably will indirectly affect the code as well.
    9. If devs change 1 and 2, it will require more time to update, because the whole process of searching what and where begin again. If the game just updates, then the location is slightly the same, while the designation remain the same, so its an easy update.

  8. I have fun with, result in I discovered just what I used to be taking a look for. You’ve ended my 4 day long hunt! God Bless you man. Have a great day. Bye

  9. Quentin says:

    Build 121 plz…..

  10. Pop says:

    “All you have to do is a sczrhyonine after that, and BAM, you’re done.”Could you please explain what did you mean by synchronizing?

  11. Jermajesty says:

    That’s the smart tihknnig we could all benefit from.

  12. URL says:

    … [Trackback]…

    [...] Read More Infos here: cris.hobo-studios.org/blog/?p=459 [...]…

  13. love spells says:

    … [Trackback]…

    [...] Infos to that Topic: cris.hobo-studios.org/blog/?p=459 [...]…

  14. blog link says:

    … [Trackback]…

    [...] Find More Informations here: cris.hobo-studios.org/blog/?p=459 [...]…

  15. about says:

    … [Trackback]…

    [...] Find More: cris.hobo-studios.org/blog/?p=459 [...]…

  16. … [Trackback]…

    [...] Infos to that Topic: cris.hobo-studios.org/blog/?p=459 [...]…

  17. … [Trackback]…

    [...] Informations on that Topic: cris.hobo-studios.org/blog/?p=459 [...]…

  18. Homepage says:

    … [Trackback]…

    [...] Informations on that Topic: cris.hobo-studios.org/blog/?p=459 [...]…

  19. free beats says:

    … [Trackback]…

    [...] Read More Infos here: cris.hobo-studios.org/blog/?p=459 [...]…

  20. … [Trackback]…

    [...] Read More: cris.hobo-studios.org/blog/?p=459 [...]…

  21. … [Trackback]…

    [...] Infos to that Topic: cris.hobo-studios.org/blog/?p=459 [...]…

  22. watch arrow says:

    … [Trackback]…

    [...] Read More here: cris.hobo-studios.org/blog/?p=459 [...]…

  23. … [Trackback]…

    [...] Find More Informations here: cris.hobo-studios.org/blog/?p=459 [...]…

  24. … [Trackback]…

    [...] Read More Infos here: cris.hobo-studios.org/blog/?p=459 [...]…

  25. … [Trackback]…

    [...] Infos to that Topic: cris.hobo-studios.org/blog/?p=459 [...]…

  26. … [Trackback]…

    [...] Read More here: cris.hobo-studios.org/blog/?p=459 [...]…

  27. … [Trackback]…

    [...] Find More: cris.hobo-studios.org/blog/?p=459 [...]…

  28. … [Trackback]…

    [...] Find More on: cris.hobo-studios.org/blog/?p=459 [...]…

  29. slots says:

    … [Trackback]…

    [...] Informations on that Topic: cris.hobo-studios.org/blog/?p=459 [...]…

  30. … [Trackback]…

    [...] Find More on: cris.hobo-studios.org/blog/?p=459 [...]…

  31. … [Trackback]…

    [...] Read More Infos here: cris.hobo-studios.org/blog/?p=459 [...]…

  32. … [Trackback]…

    [...] Find More Informations here: cris.hobo-studios.org/blog/?p=459 [...]…

  33. … [Trackback]…

    [...] Read More here: cris.hobo-studios.org/blog/?p=459 [...]…

  34. …Visitor recommendations…

    [...]I am no longer certain the place you’re getting your information, but great topic.[...]…

  35. My Homepage says:

    … [Trackback]…

    [...] Read More here: cris.hobo-studios.org/blog/?p=459 [...]…

  36. Homepage says:

    … [Trackback]…

    [...] Read More: cris.hobo-studios.org/blog/?p=459 [...]…

  37. Oakley outlet…

    I抦 gone to convey my little brother, that he should also go to see this weblog on regular basis to take updated from latest news update….

  38. wwHWGKOq says:

    wwHWGKOq…

    Realm of the Mad God Hacking/Hex Editing Tutorial | Cris’ Blog…

Leave a Reply

You must be logged in to post a comment.