Re: [Request] Battle Pirates.
I'll preface this with that this might be an example of when modifying the swf is not the best option. It is meant to be one of the short term hacks that you use when you need it and turn it off once you max the base. This is because once you start attacking bases you will crash when loading others bases with it on.
You seem to have found the right area except you dont need all of the maxlevel function just the
//d0
_as3_getlocal <0>
//66 50
_as3_getproperty _buildingProps
//66 61
_as3_getproperty costs
//66 0f
_as3_getproperty length
which is 7 bytes
The other part I chose a longer byte string just to find a unique value while using wild card bytes for version compatibility. The only part that actually needs to be changed is
//5d 01
_as3_findpropstrict int
//d1
_as3_getlocal <1>
//66 a3 3c
_as3_getproperty l
//46 01 01
_as3_callproperty int(param count:1)
This being 9 bytes you need to add a couple nop "02" to the end of the 7 byte replacement.