Hi, I've been trying to hack this flash game. I exported the .swf file and decompiled it using Sothink Decompiler. However, bytecode is far from familiar to me and I don't know much about it as well as how to deal with. I can change simple values but this is a little too much for me.
Original Source code:
Code:
public function set coin(param1:Number) : void
{
this._coin = param1;
return;
}// end function
Raw data:
Code:
public function set coin(param1:Number) : void
{
1 0 207//f1 03
_as3_debugfile "C:\Documents and Settings\mymaji\Adobe Flash Builder 4\SanGuo_MVC_Beauty_1_27_VN\src;com\powmen\sanguo\mvc\model\vo;PlayVo.as"
//f0 cf 01
_as3_debugline line number: 207
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//ef 01 0b 00 cf 01
_as3_debug 1, 11, 0, 207
//f0 d1 01
_as3_debugline line number: 209
//d0
_as3_getlocal <0>
//d1
_as3_getlocal <1>
//68 18
_as3_initproperty com.powmen.sanguo.mvc.model.vo:PlayVo::_coin
//f0 d2 01
_as3_debugline line number: 210
//47
_as3_returnvoid
}// end function
-> bytecode: f1 03 f0 cf 01 d0 30 ef 01 0b 00 cf 01 f0 d1 01 d0 d1 68 18 f0 d2 01 47
Intending to modify to:
Code:
this._coin = param1*2;
Or
Code:
this._coin = 87654;
I used Cheat Engine and found the above bytecode but don't know how to change it into what I want. Please help.