Note: Found at Elit****.com ( NOT MINE ) i edited to specificly hack ROTMG
I welcome all who want to learn how to edit SWF files.
I use the same program DarkCube does to edit SWF's. It is RABCDASM. This program disassembles the ActionScript from the SWF file to enable editing. The ActionScript contains all the juicy stuff you want to edit, like costs and production times.
Here is a link to the RABCDASM download page :
https://github.com/CyberShadow/RABCDAsm/downloads
There is a readme file in the directory called README.md which you can open in a text editor, such as Notepad++. It is very helpful. For my short tutorial here I am going through the commands shown in the README file.
Here is a quick tutorial for after you have downloaded and extracted RABCDASM.
1. Open up a Command Prompt window (CMD.exe)
2. navigate to the directory where you extracted RABCDASM. (Use cd "Directory here" and cd ... to go back)
3. Put the SWF you want to edit, in this case doggy.swf, in the RABCDASM directory
4. You must disassemble the ActionScript from the SWF. Do this with the following command in the Command Prompt (using your own swf in the place of doggy.swf):
abcexport doggy.swf
5. This creates the file named 'doggy-1.abc'
6. You then enter the following command into the Command Prompt to disassemble the abc file:
rabcdasm doggy-1.abc
7. This creates an export directory named 'doggy-1' which contains all of the files you will be editing and ultimately reassembling into the hacked swf file.
7.5 Go to the doggy-1 (or whatever the name of your swf is) directory and find the files you want to change. Edit them with a text editor or a program like Notepad++.
8. Once you have made the changes you like then you will use two files of interest, 'file-1.main.asasm' (the main program file) and `doggy-1.main.abc`
9. You now need to assemble the edited ActionScript classes back into a usable SWF file. To do this, enter the following commands into the Command Prompt:
rabcasm doggy-1/doggy-1.main.asasm
abcreplace doggy.swf 1 doggy-1/doggy-1.main.abc
This includes the spaces and one between the two parts of the abcreplace command
Now you have a hacked SWF! It's name is the name of the original SWF file that you copied into the RABCDASM directory.
Good luck hacking! Ask questions if you have them.