top of page

How to hack - public static functions

Public static function can be called anywhere in the flash file.

by using certain files, the such as SndVortex from Cursed Treasure 2. in this case, adding new function alone will not make change how the game works unless the new function is used. For example, changing name of the skills in cursed treasure 2 

psf 0.bmp
psf 1.png

of course, the rest of the skills (27) still uses the same address and nothing else has changed either except for the code is deobfuscated. so here is the result

psf 2.png

In order to duplicate this, 

step 1: 

add public static function to the scripts not in folders

deobfuscate metagame > Skill

​

step 2:

remove or exclude all  the protected static const from the control flow obfuscation 

​

step 3: 

directly edit on skills, the function that determines the effectivity of the skills.

Replace the call on textres.instance.skillsname that determines the skill name with the (file name ).(added function)

bottom of page